mbuf: fix debug checks for headroom and tailroom
authorVasily Philipov <vasilyf@mellanox.com>
Wed, 28 Jun 2017 12:25:12 +0000 (15:25 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 1 Jul 2017 10:18:29 +0000 (12:18 +0200)
commit814baffdb6910c1a949bd7c5ce3c6807f703c799
treeb49d691fa006c7a5a1ca9b55ef04aa9b22a8d5eb
parentcb327a78021c5f3574a14dac4844d7b1b640d4f1
mbuf: fix debug checks for headroom and tailroom

rte_pktmbuf_headroom() and rte_pktmbuf_tailroom() should be usable
with any segment, not only with headered ones, so is_header should be 0
when we call for sanity check inside them.

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Vasily Philipov <vasilyf@mellanox.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mbuf/rte_mbuf.h