git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/bnxt: fix L2 filter allocation
[dpdk.git]
/
drivers
/
net
/
bnxt
/
bnxt_rxtx_vec_neon.c
diff --git
a/drivers/net/bnxt/bnxt_rxtx_vec_neon.c
b/drivers/net/bnxt/bnxt_rxtx_vec_neon.c
index
488a0b4
..
bf76c2a
100644
(file)
--- a/
drivers/net/bnxt/bnxt_rxtx_vec_neon.c
+++ b/
drivers/net/bnxt/bnxt_rxtx_vec_neon.c
@@
-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) {