[dpdk-dev] [PATCH] net/tap: define __NR_bpf for powerpc
Gowrishankar
gowrishankar.m at linux.vnet.ibm.com
Tue Jan 30 08:05:13 CET 2018
From: Gowrishankar Muthukrishnan <gowrishankar.m at linux.vnet.ibm.com>
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 at linux.vnet.ibm.com>
---
drivers/net/tap/tap_bpf.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/tap/tap_bpf.h b/drivers/net/tap/tap_bpf.h
index 8d6f9a2..06e9509 100644
--- a/drivers/net/tap/tap_bpf.h
+++ b/drivers/net/tap/tap_bpf.h
@@ -97,6 +97,8 @@ enum bpf_map_type {
# 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
--
1.9.1
More information about the dev
mailing list