mbuf: rework check on mbuf freeing
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 17 Feb 2014 19:15:19 +0000 (20:15 +0100)
committerDavid Marchand <david.marchand@6wind.com>
Tue, 25 Feb 2014 20:29:18 +0000 (21:29 +0100)
commit48a0cc25f1752fab08e0c0c7bef3fb71241cb843
tree8e3340cd10a24bf8d40563e3bc8f5a8aa7114f67
parent657eabecd878194c362b30c53bdeddfbe0dcd5ef
mbuf: rework check on mbuf freeing

Allow poll-mode drivers to maintain their own caches of mbufs, by allowing them
to check if it's ok to free an mbuf (to their local cache) without actually
freeing it back to the memory pool itself.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
lib/librte_mbuf/rte_mbuf.h