> -----Original Message-----
> From: Wang, Haiyue <[email protected]>
> Sent: Wednesday, August 12, 2020 8:58 AM
> To: [email protected]; Yang, Qiming <[email protected]>; Zhang, Qi Z
> <[email protected]>
> Cc: Guo, Junfeng <[email protected]>; Wang, Haiyue
> <[email protected]>
> Subject: [PATCH v2] net/ice: optimize the FlexiMD hardware check
>
> The Flexible Metadata #4 and #5 in the Rx Flex Descriptor are defined to
> extract the protocol specified fields or its offset. Its function relays on
> the DDP
> package support in hardware.
>
> Optimize to only check the hardware support when the user specifies the
> 'proto_xtr' devargs. And not require all the types need to be support in
> hardware, otherwise if new protocol extraction type is introduced, it is hard
> to
> maintain the compatibility. Just check the type support in need.
>
> And the protocol IDs are 8 bits length, so the uint8_t is the right type to be
> used. Also introduce the 'opcode' variable to specify the metadata extraction
> type: it can be protocol fields or offset report.
>
> Signed-off-by: Haiyue Wang <[email protected]>
Acked-by: Qi Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi