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
mbuf: ensure next pointer is set to null on free
[dpdk.git]
/
lib
/
librte_pmd_ixgbe
/
ixgbe_rxtx.c
diff --git
a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c
b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c
index
9a664c3
..
d345885
100644
(file)
--- a/
lib/librte_pmd_ixgbe/ixgbe_rxtx.c
+++ b/
lib/librte_pmd_ixgbe/ixgbe_rxtx.c
@@
-145,6
+145,7
@@
ixgbe_tx_free_bufs(struct igb_tx_queue *txq)
/* free buffers one at a time */
if ((txq->txq_flags & (uint32_t)ETH_TXQ_FLAGS_NOREFCOUNT) != 0) {
for (i = 0; i < txq->tx_rs_thresh; ++i, ++txep) {
+ txep->mbuf->next = NULL;
rte_mempool_put(txep->mbuf->pool, txep->mbuf);
txep->mbuf = NULL;
}