[v1,23/24] memif: add system call number for LoongArch

Message ID 20220528093311.123946-24-zhoumin@loongson.cn (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers
Series Support LoongArch architecture |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Min Zhou May 28, 2022, 9:33 a.m. UTC
This patch adds system call number of memfd_create for LoongArch
architecture.

Signed-off-by: Min Zhou <zhoumin@loongson.cn>
---
 drivers/net/memif/rte_eth_memif.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/drivers/net/memif/rte_eth_memif.h b/drivers/net/memif/rte_eth_memif.h
index a5ee23d42e..b751037b79 100644
--- a/drivers/net/memif/rte_eth_memif.h
+++ b/drivers/net/memif/rte_eth_memif.h
@@ -174,7 +174,7 @@  const char *memif_version(void);
 #define __NR_memfd_create 1073742143
 #elif defined __arm__
 #define __NR_memfd_create 385
-#elif defined __aarch64__
+#elif defined __aarch64__ || defined __loongarch__
 #define __NR_memfd_create 279
 #elif defined __powerpc__
 #define __NR_memfd_create 360