[PATCH v3] net/iavf: add debug checks for mbuf

Zhang, Qi Z qi.z.zhang at intel.com
Sun Feb 19 09:30:46 CET 2023



> -----Original Message-----
> From: Mingjin Ye <mingjinx.ye at intel.com>
> Sent: Monday, February 13, 2023 4:32 PM
> To: dev at dpdk.org
> Cc: Yang, Qiming <qiming.yang at intel.com>; stable at dpdk.org; Zhou, YidingX
> <yidingx.zhou at intel.com>; Ye, MingjinX <mingjinx.ye at intel.com>; Wu,
> Jingjing <jingjing.wu at intel.com>; Xing, Beilei <beilei.xing at intel.com>
> Subject: [PATCH v3] net/iavf: add debug checks for mbuf
> 
> The scalar Tx path would send wrong mbuf that causes the kernel driver to
> fire the MDD event.
> 
> This patch adds mbuf detection in tx_prepare and enables it by defining
> `RTE_ETHDEV_DEBUG_TX` macro to fix this issue. If validation fails, rte_errno

This is a debug utility but not a fix, enable this check will significantly downgrade the performance
Removed  "to fix this issue"

> will be set to EINVAL and returned.
> 
> Fixes: 3fd32df381f8 ("net/iavf: check Tx packet with correct UP and queue")
> Fixes: 12b435bf8f2f ("net/iavf: support flex desc metadata extraction")
> Fixes: f28fbd1e6b50 ("net/iavf: check max SIMD bitwidth")

Removed all the fix lines

> Cc: stable at dpdk.org
> 
> Signed-off-by: Mingjin Ye <mingjinx.ye at intel.com>

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

Applied to dpdk-next-net-intel after apply above change.

Thanks
Qi



More information about the stable mailing list