[dpdk-dev] [PATCH v2] net/ice: optimize the FlexiMD hardware check

Zhang, Qi Z qi.z.zhang at intel.com
Mon Aug 31 05:53:27 CEST 2020



> -----Original Message-----
> From: Wang, Haiyue <haiyue.wang at intel.com>
> Sent: Wednesday, August 12, 2020 8:58 AM
> To: dev at dpdk.org; Yang, Qiming <qiming.yang at intel.com>; Zhang, Qi Z
> <qi.z.zhang at intel.com>
> Cc: Guo, Junfeng <junfeng.guo at intel.com>; Wang, Haiyue
> <haiyue.wang at intel.com>
> 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 <haiyue.wang at intel.com>

Acked-by: Qi Zhang <qi.z.zhang at intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi


More information about the dev mailing list