From: Ophir Munk Date: Wed, 31 Jan 2018 16:03:58 +0000 (+0000) Subject: net/tap: fix build on ARM32 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e56447980ece8ea01717f41ff82cf8122635e7ec;p=dpdk.git net/tap: fix build on ARM32 This commit adds eBPF system call definitions for ARM architecture. Old Linux header files may not define eBPF system call numbers. In order to successful compile eBPF on all Linux platforms - the missing ARM system call definition is explicitly added. Fixes: b02d85e1 ("net/tap: add eBPF API") Signed-off-by: Ophir Munk --- diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h index 06e95099a2..1a70ffe21b 100644 --- a/drivers/net/tap/tap_bpf.h +++ b/drivers/net/tap/tap_bpf.h @@ -91,6 +91,8 @@ union bpf_attr { # define __NR_bpf 357 # elif defined(__x86_64__) # define __NR_bpf 321 +# elif defined(__arm__) +# define __NR_bpf 386 # elif defined(__aarch64__) # define __NR_bpf 280 # elif defined(__sparc__)