[dpdk-dev] [PATCH] examples/bpf: fix compilation issue
Varghese, Vipin
vipin.varghese at intel.com
Wed Jul 31 05:16:41 CEST 2019
snipped
> 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.
> 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`. Using the same did not cause compilation issues. Is there specific reason not to use the same?
Snipped
The code is tested and verified with clang6.0 and clang8.0 on Ubuntu 18.04.2 LTS.
Tested-by: Vipin Varghese <vipin.varghese at intel.com>
More information about the dev
mailing list