mbuf: decrease reference counter when detaching
authorHiroyuki Mikita <h.mikita89@gmail.com>
Wed, 18 May 2016 14:41:03 +0000 (23:41 +0900)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 19 May 2016 12:40:12 +0000 (14:40 +0200)
commit49e29ac2cb7278ca62bad6d3ca15dfdf817ce4af
treef6f6bb8d7ecf37625ddfb3299f664c55f2272e10
parent661d97ba0b56897c0eb21e61a8b12a5cc227f07e
mbuf: decrease reference counter when detaching

The rte_pktmbuf_detach() function should decrease refcnt on a direct
buffer as stated in doc/guides/prog_guide/mbuf_lib.rst:
"whenever the indirect buffer is detached, the reference counter on the
direct buffer is decremented."

Signed-off-by: Hiroyuki Mikita <h.mikita89@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
app/test/test_mbuf.c
doc/guides/rel_notes/release_16_07.rst
lib/librte_mbuf/rte_mbuf.h