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 <gowrishankar.m@linux.vnet.ibm.com>
Acked-by: Pascal Mazon <pascal.mazon@6wind.com>
This commit is contained in:
Gowrishankar Muthukrishnan 2018-01-30 12:35:13 +05:30 committed by Thomas Monjalon
parent fc1b5ec522
commit 3eaad8e530

View File

@ -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