mbuf: add C++ include guard for dynamic fields header
authorAshish Sadanandan <ashish.sadanandan@gmail.com>
Thu, 7 Jan 2021 01:31:14 +0000 (18:31 -0700)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 11 Jan 2021 14:34:21 +0000 (15:34 +0100)
commit397fb6a8d96cf06fc83bd87cadf46d2226fc42ed
tree5585478feac4791e69b1fe248ce07fb639c983e2
parente3e9c87c0fc7c8e65e8f13c7bef133a552d0a597
mbuf: add C++ include guard for dynamic fields header

The header was missing the extern "C" directive which causes name
mangling of functions by C++ compilers, leading to linker errors
complaining of undefined references to these functions.

Fixes: 4958ca3a443a ("mbuf: support dynamic fields and flags")
Cc: stable@dpdk.org
Signed-off-by: Ashish Sadanandan <ashish.sadanandan@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mbuf/rte_mbuf_dyn.h