[PATCH 2/2] net/ice: Tx path check mbuf sub-segment

Li, HongboX hongbox.li at intel.com
Thu Mar 21 03:10:19 CET 2024


> -----Original Message-----
> From: Mingjin Ye <mingjinx.ye at intel.com>
> Sent: Friday, March 15, 2024 6:24 PM
> To: dev at dpdk.org
> Cc: Ye, MingjinX <mingjinx.ye at intel.com>; stable at dpdk.org
> Subject: [PATCH 2/2] net/ice: Tx path check mbuf sub-segment
> 
> Add check mbuf sub-segment to Tx diagnostic path.
> 
> Fixes: 2a0244d611b4 ("net/ice: support mbuf checks in Tx path")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Mingjin Ye <mingjinx.ye at intel.com>
> ---
>  drivers/net/ice/ice_rxtx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index
> 13aabe97a5..31a3a35c1d 100644
> --- a/drivers/net/ice/ice_rxtx.c
> +++ b/drivers/net/ice/ice_rxtx.c
> @@ -3713,7 +3713,7 @@ ice_xmit_pkts_check(void *tx_queue, struct
> rte_mbuf **tx_pkts, uint16_t nb_pkts)
>  		ol_flags = mb->ol_flags;
> 
>  		if ((adapter->devargs.mbuf_check &
> ICE_MBUF_CHECK_F_TX_MBUF) &&
> -		    (rte_mbuf_check(mb, 0, &reason) != 0)) {
> +		    (rte_mbuf_check(mb, 1, &reason) != 0)) {
>  			PMD_TX_LOG(ERR, "INVALID mbuf: %s\n", reason);
>  			pkt_error = true;
>  			break;
> --
> 2.25.1

Tested-by: Li, HongboX <hongbox.li at intel.com>


More information about the dev mailing list