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)
commit9a710863decb1cdb98efbdd5e11df3ebcfcc37b6
tree5edbef05bc9611e978103e5b51df1eb4eb05e28d
parent9956d900439328c92ab03c908e8c42492f72e7db
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: 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>
examples/bpf/mbuf.h