[dpdk-dev] [PATCH v2 2/3] mbuf: move mbuf definition into a separate file
Olivier Matz
olivier.matz at 6wind.com
Wed Oct 16 10:18:18 CEST 2019
On Fri, Sep 27, 2019 at 02:50:53PM +0100, Konstantin Ananyev wrote:
> 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 at intel.com>
Acked-by: Olivier Matz <olivier.matz at 6wind.com>
More information about the dev
mailing list