This commit adds eBPF system call definitions for ARM and POWERPC architectures. Old Linux header files may not define eBPF system call numbers. In order to enable a successful eBPF compilation on all Linux platforms - the missing system call definitions are explicitly added.
#elif defined(__powerpc__) # define __NR_bpf 361 #elif defined(__arm__) # define __NR_bpf 386 Signed-off-by: Ophir Munk <ophi...@mellanox.com> --- drivers/net/tap/tap_bpf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h index 8d6f9a2..58e6d25 100644 --- a/drivers/net/tap/tap_bpf.h +++ b/drivers/net/tap/tap_bpf.h @@ -97,6 +97,10 @@ union bpf_attr { # define __NR_bpf 349 # elif defined(__s390__) # define __NR_bpf 351 +# elif defined(__powerpc__) +# define __NR_bpf 361 +# elif defined(__arm__) +# define __NR_bpf 386 # else # error __NR_bpf not defined # endif -- 2.7.4