From: longli@linuxonhyperv.com
To: Ferruh Yigit <ferruh.yigit@amd.com>,
Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Cc: dev@dpdk.org, Long Li <longli@microsoft.com>
Subject: [PATCH] net/mana: support building the driver on arm64
Date: Mon, 26 Aug 2024 15:38:58 -0700 [thread overview]
Message-ID: <1724711938-3108-1-git-send-email-longli@linuxonhyperv.com> (raw)
From: Long Li <longli@microsoft.com>
The driver has been verified on Linux arm64. Enable this build option and
add a missing header file for arm64.
Signed-off-by: Long Li <longli@microsoft.com>
---
drivers/net/mana/meson.build | 4 ++--
drivers/net/mana/mp.c | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/mana/meson.build b/drivers/net/mana/meson.build
index 2d72eca5a8..330d30b2ff 100644
--- a/drivers/net/mana/meson.build
+++ b/drivers/net/mana/meson.build
@@ -1,9 +1,9 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2022 Microsoft Corporation
-if not is_linux or not dpdk_conf.has('RTE_ARCH_X86')
+if not is_linux or not (dpdk_conf.has('RTE_ARCH_X86') or dpdk_conf.has('RTE_ARCH_ARM64'))
build = false
- reason = 'only supported on x86 Linux'
+ reason = 'only supported on x86 or arm64 Linux'
subdir_done()
endif
diff --git a/drivers/net/mana/mp.c b/drivers/net/mana/mp.c
index 738487f65a..34b45ed832 100644
--- a/drivers/net/mana/mp.c
+++ b/drivers/net/mana/mp.c
@@ -5,6 +5,7 @@
#include <rte_malloc.h>
#include <ethdev_driver.h>
#include <rte_log.h>
+#include <stdlib.h>
#include <infiniband/verbs.h>
--
2.43.0
next reply other threads:[~2024-08-27 12:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-26 22:38 longli [this message]
2024-08-27 10:00 ` Ferruh Yigit
2024-08-27 12:54 ` David Marchand
2024-08-27 23:59 ` Long Li
2024-08-28 6:02 ` David Marchand
2024-08-28 8:18 ` Long Li
2024-08-27 14:35 ` Ferruh Yigit
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=1724711938-3108-1-git-send-email-longli@linuxonhyperv.com \
--to=longli@linuxonhyperv.com \
--cc=andrew.rybchenko@oktetlabs.ru \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@amd.com \
--cc=longli@microsoft.com \
/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).