[PATCH] net/mana: support building the driver on arm64
longli at linuxonhyperv.com
longli at linuxonhyperv.com
Tue Aug 27 00:38:58 CEST 2024
From: Long Li <longli at 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 at 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
More information about the dev
mailing list