[v3,3/8] net/memif: set memfd syscall ID on RISC-V
Checks
Commit Message
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 | 5 -----
drivers/net/memif/rte_eth_memif.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(
'memif_socket.c',
@@ -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