numam-dpdk/examples/bpf
Konstantin Ananyev 9a710863de examples/bpf: fix build
Example BPF programs t2.c, t3.c in folder examples/bpf are
failing to compile with latest dpdk.org master.
The reason is changes in some core DPDK header files, that causes
now inclusion of x86 specific headers.
To overcome the issue, minimize inclusion of DPDK header files
into BPF source code.

Bugzilla ID: 321

Fixes: 9dfc06c26a ("test/bpf: add samples")
Cc: stable@dpdk.org

Reported-by: Michel Machado <michel@digirati.com.br>
Suggested-by: Michel Machado <michel@digirati.com.br>
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2019-08-06 12:30:11 +02:00
..
dummy.c examples/bpf: move from test directory 2019-02-26 15:29:07 +01:00
mbuf.h examples/bpf: fix build 2019-08-06 12:30:11 +02:00
meson.build examples/bpf: move from test directory 2019-02-26 15:29:07 +01:00
README examples/bpf: move from test directory 2019-02-26 15:29:07 +01:00
t1.c examples/bpf: move from test directory 2019-02-26 15:29:07 +01:00
t2.c examples/bpf: move from test directory 2019-02-26 15:29:07 +01:00
t3.c examples/bpf: move from test directory 2019-02-26 15:29:07 +01:00

This folder contains example BPF programs for use with the DPDK bpf
library. To get details of each program and how to compile it, see
the header on the '.c' file itself.

Once compiled, these example programs can be loaded into `testpmd`
for execution on a packet stream. See `bpf-load` and `bpf-unload`
commands documented in the `Testpmd Application User Guide` for
details on how to do so.