From: Gowrishankar Muthukrishnan Date: Tue, 30 Jan 2018 07:05:13 +0000 (+0530) Subject: net/tap: fix build on ppc X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3eaad8e53084eb797a4ea994cc7275f75e67027c;p=dpdk.git net/tap: fix build on ppc This patch defines __NR_bpf for powerpc architecture and hence, fixes compiling tap driver for this architecture. Fixes: b02d85e1 ("net/tap: add eBPF API") Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Pascal Mazon --- diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h index 8d6f9a2e53..06e95099a2 100644 --- a/drivers/net/tap/tap_bpf.h +++ b/drivers/net/tap/tap_bpf.h @@ -97,6 +97,8 @@ union bpf_attr { # define __NR_bpf 349 # elif defined(__s390__) # define __NR_bpf 351 +# elif defined(__powerpc__) +# define __NR_bpf 361 # else # error __NR_bpf not defined # endif