Skip to contentSkip to conversation

Tx path check mbuf sub-segment

PATCH In review Mingjin Ye 3 participants 6 messages Mar 15, 2024 – Apr 4, 2024 Network drivers

lore
Share & tools
lore

Mingjin Ye

author
#0 lore raw

cover Tx path check mbuf sub-segment

Add check mbuf sub-segment to Tx diagnostic path.

Mingjin Ye (2):
net/i40e: Tx path check mbuf sub-segment
net/ice: Tx path check mbuf sub-segment

 drivers/net/i40e/i40e_rxtx.c | 2 +-
 drivers/net/ice/ice_rxtx.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1
author
#1 lore raw

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

Add check mbuf sub-segment to Tx diagnostic path.

Fixes 82b03af55a1b ("net/i40e: support mbuf checks in Tx path")
---
 drivers/net/i40e/i40e_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/i40e/i40e_rxtx.c +1 -1
index 5d25ab4d3a..2c69e96e4b 100644
@@ -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;
Signature · 1 line
2.25.1
author
#2 lore raw

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

In reply to Mingjin Ye

Add check mbuf sub-segment to Tx diagnostic path.

Fixes 2a0244d611b4 ("net/ice: support mbuf checks in Tx path")
---
 drivers/net/ice/ice_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_rxtx.c +1 -1
index 13aabe97a5..31a3a35c1d 100644
@@ -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;
Signature · 1 line
2.25.1
Tested-by on v1 2/2
#3 lore raw

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

Quoted 33 lines

-----Original Message-----
From: Mingjin Ye <[email protected]>
Sent: Friday, March 15, 2024 6:24 PM
To: [email protected]
Cc: Ye, MingjinX <[email protected]>; [email protected]
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")
---
 drivers/net/ice/ice_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/ice_rxtx.c index renamed from drivers/net/ice/ice_rxtx.c +0 -0

13aabe97a5..31a3a35c1d 100644

drivers/net/ice/ice_rxtx.c +0 -0
@@ -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) &&

drivers/net/ice/ice_rxtx.c +1 -2
-		    (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;
--
Quoted 1 line

2.25.1

Tested-by on the v1 series
#4 lore raw
In reply to Mingjin Ye
Quoted 13 lines

-----Original Message-----
From: Mingjin Ye <[email protected]>
Sent: Friday, March 15, 2024 6:24 PM
To: [email protected]
Cc: Ye, MingjinX <[email protected]>
Subject: [PATCH 0/2] Tx path check mbuf sub-segment

Add check mbuf sub-segment to Tx diagnostic path.

Mingjin Ye (2):
net/i40e: Tx path check mbuf sub-segment
net/ice: Tx path check mbuf sub-segment

Quoted 6 lines
 drivers/net/i40e/i40e_rxtx.c | 2 +-
 drivers/net/ice/ice_rxtx.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--
2.25.1

#5 lore raw
Quoted 13 lines · HongboX
Quoted 13 lines

-----Original Message-----
From: Mingjin Ye <[email protected]>
Sent: Friday, March 15, 2024 6:24 PM
To: [email protected]
Cc: Ye, MingjinX <[email protected]>
Subject: [PATCH 0/2] Tx path check mbuf sub-segment

Add check mbuf sub-segment to Tx diagnostic path.

Mingjin Ye (2):
net/i40e: Tx path check mbuf sub-segment
net/ice: Tx path check mbuf sub-segment

Quoted 8 lines
Quoted 6 lines
 drivers/net/i40e/i40e_rxtx.c | 2 +-
 drivers/net/ice/ice_rxtx.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--
2.25.1

Series applied to dpdk-next-net-intel

Thanks,
/Bruce