From 077056ef50ec8e3717e4afcb6f89dcb77110e663 Mon Sep 17 00:00:00 2001 From: Long Li Date: Mon, 26 Aug 2024 15:38:58 -0700 Subject: [PATCH] net/mana: support arm64 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 --- 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 2d72eca5a8c..330d30b2ff5 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 738487f65a5..34b45ed8321 100644 --- a/drivers/net/mana/mp.c +++ b/drivers/net/mana/mp.c @@ -5,6 +5,7 @@ #include #include #include +#include #include