]> git.droids-corp.org - dpdk.git/commitdiff
net/memif: set memfd syscall ID for RISC-V
authorStanislaw Kardach <kda@semihalf.com>
Tue, 7 Jun 2022 10:46:12 +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_memfd_create syscall id to enable the memif 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/memif/meson.build
drivers/net/memif/rte_eth_memif.h

index 9784d7b9d32238a93fc9fae2930471c376a170fe..680bc8631c34c5a2302f6059c7a0280875216b21 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(
         'memif_socket.c',
index a5ee23d42ea555c244bc0006e855645d79da65e1..81e7dceae004932005e65a0051ff4504e131c7ad 100644 (file)
@@ -180,6 +180,8 @@ const char *memif_version(void);
 #define __NR_memfd_create 360
 #elif defined __i386__
 #define __NR_memfd_create 356
+#elif defined __riscv
+#define __NR_memfd_create 279
 #else
 #error "__NR_memfd_create unknown for this architecture"
 #endif