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

Mingjin Ye mingjinx.ye at intel.com
Fri Mar 15 11:24:08 CET 2024


Add check mbuf sub-segment to Tx diagnostic path.

Fixes: 82b03af55a1b ("net/i40e: support mbuf checks in Tx path")
Cc: stable at dpdk.org

Signed-off-by: Mingjin Ye <mingjinx.ye at intel.com>
---
 drivers/net/i40e/i40e_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c
index 5d25ab4d3a..2c69e96e4b 100644
--- a/drivers/net/i40e/i40e_rxtx.c
+++ b/drivers/net/i40e/i40e_rxtx.c
@@ -1554,7 +1554,7 @@ i40e_xmit_pkts_check(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts
 		ol_flags = mb->ol_flags;
 
 		if ((adapter->mbuf_check & I40E_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



More information about the stable mailing list