On 09/23, Wang, Haiyue wrote:

>> >+{
>> >+   static uint8_t rxdid_map[] = {
>Add this line:
>               [PROTO_XTR_NONE]      = ICE_RXDID_COMMS_GENERIC,

This makes sense.

>> >+           [PROTO_XTR_VLAN]      = ICE_RXDID_COMMS_AUX_VLAN,
>> >+           [PROTO_XTR_IPV4]      = ICE_RXDID_COMMS_AUX_IPV4,
>> >+           [PROTO_XTR_IPV6]      = ICE_RXDID_COMMS_AUX_IPV6,
>> >+           [PROTO_XTR_IPV6_FLOW] = ICE_RXDID_COMMS_AUX_IPV6_FLOW,
>> >+           [PROTO_XTR_TCP]       = ICE_RXDID_COMMS_AUX_TCP,
>> >+   };
>> >+   uint8_t rxdid;
>> >+
>> >+   rxdid = xtr_tpye < RTE_DIM(rxdid_map) ? rxdid_map[xtr_tpye] : 0;
>> >+
>> >+   return rxdid != 0 ? rxdid : ICE_RXDID_COMMS_GENERIC;
>> 
>> Maybe just
>> 
>>      return xtr_type < RTE_DIM(rxdid_map) ?
>>                              rxdid_map[xtr_type] : ICE_RXDID_COMMS_GENERIC;
>> 
>
>Then this, will be updated in next version.
>
>> as previous ice_rxdid_to_proto_xtr_type.
>> 
>> 
>> Thanks,
>> Xiaolong

Reply via email to