[1/2] net/i40e: Tx path check mbuf sub-segment
Checks
Commit Message
Add check mbuf sub-segment to Tx diagnostic path.
Fixes: 82b03af55a1b ("net/i40e: support mbuf checks in Tx path")
Cc: stable@dpdk.org
Signed-off-by: Mingjin Ye <mingjinx.ye@intel.com>
---
drivers/net/i40e/i40e_rxtx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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;