mbuf: add explanation for confusing checks when freeing
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 26 Mar 2015 21:14:54 +0000 (21:14 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 30 Mar 2015 17:10:09 +0000 (19:10 +0200)
commit29115712328d22ae63ef542b3c514f19bfe02613
tree3816b2d4a8279e542fa497b8f63cc7e81600f807
parent2f95a470b80df115a0a0c9fba4bfbae73f4d66ae
mbuf: add explanation for confusing checks when freeing

The logic used in the condition check before freeing an mbuf is
sometimes confusing, so explain it in a proper comment.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_mbuf/rte_mbuf.h