net/bnxt: fix L2 filter allocation
[dpdk.git] / drivers / net / bnxt / bnxt_rxtx_vec_neon.c
index 488a0b4..bf76c2a 100644 (file)
@@ -329,6 +329,8 @@ bnxt_tx_cmp_vec(struct bnxt_tx_queue *txq, int nr_pkts)
                tx_buf = &txr->tx_buf_ring[cons];
                cons = RING_NEXT(txr->tx_ring_struct, cons);
                mbuf = rte_pktmbuf_prefree_seg(tx_buf->mbuf);
+               if (unlikely(mbuf == NULL))
+                       continue;
                tx_buf->mbuf = NULL;
 
                if (blk && mbuf->pool != free[0]->pool) {