mbuf: ensure next pointer is set to null on free
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 23 Sep 2014 11:08:13 +0000 (12:08 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 8 Oct 2014 12:12:31 +0000 (14:12 +0200)
commit7f78e6770144b2e3d485389c4c40d37e75270fb4
tree04d22e1ca54eef0871d23973d16b688a89fa7774
parent3043ce5011aa7075b32c80c79b9db96199938602
mbuf: ensure next pointer is set to null on free

The receive functions for packets do not modify the next pointer so
the next pointer should always be cleared on mbuf free, just in case.
The slow-path TX needs to clear it, and the standard mbuf free function
also needs to clear it. Fast path TX does not handle chained mbufs so
is unaffected

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
lib/librte_mbuf/rte_mbuf.h
lib/librte_pmd_ixgbe/ixgbe_rxtx.c