[dpdk-dev] [PATCH v2 2/3] mbuf: move mbuf definition into a separate file

Andrew Rybchenko arybchenko at solarflare.com
Fri Sep 27 16:42:29 CEST 2019


On 9/27/19 4:50 PM, 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: Andrew Rybchenko <arybchenko at solarflare.com>



More information about the dev mailing list