]> git.droids-corp.org - dpdk.git/commitdiff
net/tap: fix build on ARM32
authorOphir Munk <ophirmu@mellanox.com>
Wed, 31 Jan 2018 16:03:58 +0000 (16:03 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 18:14:47 +0000 (19:14 +0100)
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 <ophirmu@mellanox.com>
drivers/net/tap/tap_bpf.h

index 06e95099a26933c04f2ca22cc60b30b5d03a6a9b..1a70ffe21b4be25535ab1822e9199f0df3b8f916 100644 (file)
@@ -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__)