mbuf: move definitions into a separate file
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Fri, 27 Sep 2019 13:50:53 +0000 (14:50 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 25 Oct 2019 17:30:38 +0000 (19:30 +0200)
commit3eb860b08eb794471b84a46d2c7f147957e66c04
tree58b2a760cd74e1f2fe1efc51ce82bea86ebeedb1
parent2dcb5f798729589f4d9e33ede598f70ac59281f5
mbuf: move definitions into a separate file

Right now inclusion of rte_mbuf.h header can cause inclusion of
some arch/os specific headers.
That prevents it to be included directly by some
non-DPDK (but related) entities: KNI, BPF programs, etc.
To overcome that problem usually a separate definitions of rte_mbuf
structure is created within these entities.
That aproach has a lot of drawbacks: code duplication, error prone, etc.
This patch moves rte_mbuf structure definition (and some related macros)
into a separate file that can be included by both rte_mbuf.h and
other non-DPDK entities.

Note that it doesn't introduce any change for current DPDK code.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Michel Machado <michel@digirati.com.br>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mbuf/Makefile
lib/librte_mbuf/meson.build
lib/librte_mbuf/rte_mbuf.h
lib/librte_mbuf/rte_mbuf_core.h [new file with mode: 0644]