> > > Example BPF programs t1.c, t2.c, t3.c in folder examples/bpf are failing to > > compile with latest dpdk.org master. > > As a note, the file t3.c is one which fails to get compiled.
t2.c also uses rte_mbuf, so same story for both. > > > The reason is changes in some core DPDK header files, that causes now > > inclusion > > of x86 specific headers. > > snipped > > > > > > #include <stdint.h> > > #include <rte_common.h> > > -#include <rte_memory.h> > > > > #ifdef __cplusplus > > extern "C" { > > @@ -364,6 +363,23 @@ typedef struct { > > volatile int16_t cnt; /**< An internal counter value. */ } > > rte_atomic16_t; > > > > +#define RTE_CACHE_LINE_MIN_SIZE 64 /**< Minimum Cache line size. */ > > The definition for RTE_CACHE_LINE_MIN_SIZE is present in ` rte_config.h`. I believe it is not: $ find lib config -type f | xargs grep CACHE_LINE_MIN_SIZE lib/librte_eal/linux/eal/include/rte_kni_common.h:#define RTE_CACHE_LINE_MIN_SIZE 64 lib/librte_eal/linux/eal/include/rte_kni_common.h: char pad3[8] __attribute__((__aligned__(RTE_CACHE_LINE_MIN_SIZE))); lib/librte_eal/common/include/rte_memory.h:#define RTE_CACHE_LINE_MIN_SIZE 64 /**< Minimum Cache line size. */ lib/librte_eal/common/include/rte_memory.h:#define __rte_cache_min_aligned __rte_aligned(RTE_CACHE_LINE_MIN_SIZE) Konstantin