]> git.droids-corp.org - dpdk.git/commitdiff
net/tap: set BPF syscall ID for RISC-V
authorStanislaw Kardach <kda@semihalf.com>
Tue, 7 Jun 2022 10:46:13 +0000 (12:46 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 8 Jun 2022 09:26:34 +0000 (11:26 +0200)
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
drivers/net/tap/tap_bpf.h

index 00df1e8d76e055005b9a59fe59de2169ef60fda7..c09713a67b9d87d595dd636bbfaf12ddf12b65c9 100644 (file)
@@ -5,11 +5,6 @@ if not is_linux
     build = false
     reason = 'only supported on Linux'
 endif
-if arch_subdir == 'riscv'
-    build = false
-    reason = 'not supported on RISC-V'
-    subdir_done()
-endif
 sources = files(
         'rte_eth_tap.c',
         'tap_bpf_api.c',
index f0b9fc7a2ce7f1e3e19ae42c44501711a449a67d..639bdf3a793c83af24f60c95945014caa9c64668 100644 (file)
@@ -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