From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 08BC245878; Tue, 27 Aug 2024 14:44:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69F7140E0F; Tue, 27 Aug 2024 14:44:48 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E6BCF4027F for ; Tue, 27 Aug 2024 00:39:03 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1202) id 0DE3120B7165; Mon, 26 Aug 2024 15:39:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 0DE3120B7165 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxonhyperv.com; s=default; t=1724711943; bh=aBNSWBi5pFGCFtjviHlyS660WiUf3UAE9prezBPEv4M=; h=From:To:Cc:Subject:Date:From; b=S3Cccj1lgyZCa5YYiuAPdYiK6suXFiz6eirddhe8m4ywFOPPLQYum8BeHOWoPXcJK CvKz7DR2LMP/S009LfScP3luBod903WfZyXIZyDVOSLyFkFnJWBNzREBVAhhgY88b3 aPHMd9M/1EfU3LThkixMasfwJ+ugNVH4EFR2XyZk= From: longli@linuxonhyperv.com To: Ferruh Yigit , Andrew Rybchenko Cc: dev@dpdk.org, Long Li Subject: [PATCH] net/mana: support building the driver on arm64 Date: Mon, 26 Aug 2024 15:38:58 -0700 Message-Id: <1724711938-3108-1-git-send-email-longli@linuxonhyperv.com> X-Mailer: git-send-email 1.8.3.1 X-Mailman-Approved-At: Tue, 27 Aug 2024 14:44:43 +0200 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Long Li 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 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 #include #include +#include #include -- 2.43.0