examples/bpf: fix build
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Tue, 30 Jul 2019 10:19:27 +0000 (11:19 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Aug 2019 10:30:11 +0000 (12:30 +0200)
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: 9dfc06c26a8b ("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>

No differences found