[v2,4/8] net/tap: set BPF syscall ID for RISC-V
Checks
Commit Message
Define the missing __NR_bpf syscall id to enable the tap PMD.
Sponsored-by: Frank Zhao <Frank.Zhao@starfivetech.com>
Sponsored-by: Sam Grove <sam.grove@sifive.com>
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
---
drivers/net/tap/meson.build | 5 -----
drivers/net/tap/tap_bpf.h | 2 ++
2 files changed, 2 insertions(+), 5 deletions(-)
@@ -5,11 +5,6 @@ if not is_linux
build = false
reason = 'only supported on Linux'
endif
-if arch_subdir == 'riscv'
- build = false
- reason = 'riscv arch not supported'
- subdir_done()
-endif
sources = files(
'rte_eth_tap.c',
'tap_bpf_api.c',
@@ -101,6 +101,8 @@ union bpf_attr {
# define __NR_bpf 351
# elif defined(__powerpc__)
# define __NR_bpf 361
+# elif defined(__riscv)
+# define __NR_bpf 280
# else
# error __NR_bpf not defined
# endif