mbuf: detach mbuf with pinned external buffer
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Mon, 20 Jan 2020 19:16:23 +0000 (19:16 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 20 Jan 2020 22:36:15 +0000 (23:36 +0100)
commit6ef1107ad4c6d4fcb6be627367ee0b97bb13e822
treefd63eb046d9f3d5e7ccba6a6682f3e9766d6183b
parentc621a9b66bd24e363645b68f08b6f3ef7ab430cc
mbuf: detach mbuf with pinned external buffer

Update detach routine to check the mbuf pool type.
Introduce the special internal version of detach routine to handle
the special case of pinned external bufferon mbuf freeing.

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mbuf/rte_mbuf.h