From: Min Zhou <zhoumin@loongson.cn>
To: thomas@monjalon.net, david.marchand@redhat.com,
bruce.richardson@intel.com, anatoly.burakov@intel.com,
qiming.yang@intel.com, Yuying.Zhang@intel.com,
jgrajcia@cisco.com, konstantin.v.ananyev@yandex.ru,
zhoumin@loongson.cn
Cc: dev@dpdk.org, maobibo@loongson.cn
Subject: [PATCH v8 3/6] net/memif: set memfd syscall ID on LoongArch
Date: Tue, 4 Oct 2022 23:40:44 +0800 [thread overview]
Message-ID: <20221004154047.35276-4-zhoumin@loongson.cn> (raw)
In-Reply-To: <20221004154047.35276-1-zhoumin@loongson.cn>
Define the missing __NR_memfd_create syscall id to enable the memif
PMD on LoongArch.
Signed-off-by: Min Zhou <zhoumin@loongson.cn>
---
drivers/net/memif/meson.build | 6 ------
drivers/net/memif/rte_eth_memif.h | 2 ++
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/net/memif/meson.build b/drivers/net/memif/meson.build
index 30c0fbc798..680bc8631c 100644
--- a/drivers/net/memif/meson.build
+++ b/drivers/net/memif/meson.build
@@ -1,12 +1,6 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2018-2019 Cisco Systems, Inc. All rights reserved.
-if arch_subdir == 'loongarch'
- build = false
- reason = 'not supported on LoongArch'
- subdir_done()
-endif
-
if not is_linux
build = false
reason = 'only supported on Linux'
diff --git a/drivers/net/memif/rte_eth_memif.h b/drivers/net/memif/rte_eth_memif.h
index 81e7dceae0..eb692aee68 100644
--- a/drivers/net/memif/rte_eth_memif.h
+++ b/drivers/net/memif/rte_eth_memif.h
@@ -182,6 +182,8 @@ const char *memif_version(void);
#define __NR_memfd_create 356
#elif defined __riscv
#define __NR_memfd_create 279
+#elif defined __loongarch__
+#define __NR_memfd_create 279
#else
#error "__NR_memfd_create unknown for this architecture"
#endif
--
2.32.1 (Apple Git-133)
next prev parent reply other threads:[~2022-10-04 15:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-04 15:40 [PATCH v8 0/6] Introduce support for LoongArch architecture Min Zhou
2022-10-04 15:40 ` [PATCH v8 1/6] eal/loongarch: support " Min Zhou
2022-10-04 15:40 ` [PATCH v8 2/6] net/ixgbe: add vector stubs for LoongArch Min Zhou
2022-10-04 15:40 ` Min Zhou [this message]
2022-10-04 15:40 ` [PATCH v8 4/6] net/tap: set BPF syscall ID " Min Zhou
2022-10-04 15:40 ` [PATCH v8 5/6] examples/l3fwd: enable LoongArch operation Min Zhou
2022-10-04 15:40 ` [PATCH v8 6/6] test/cpuflags: add test for LoongArch cpu flag Min Zhou
2022-10-06 11:49 ` [PATCH v8 0/6] Introduce support for LoongArch architecture David Marchand
2022-10-06 12:48 ` zhoumin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221004154047.35276-4-zhoumin@loongson.cn \
--to=zhoumin@loongson.cn \
--cc=Yuying.Zhang@intel.com \
--cc=anatoly.burakov@intel.com \
--cc=bruce.richardson@intel.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=jgrajcia@cisco.com \
--cc=konstantin.v.ananyev@yandex.ru \
--cc=maobibo@loongson.cn \
--cc=qiming.yang@intel.com \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).