Add check mbuf sub-segment to Tx diagnostic path.
Fixes: 2a0244d611b4 ("net/ice: support mbuf checks in Tx path")
Cc: [email protected]
Signed-off-by: Mingjin Ye <[email protected]>
---
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