From patchwork Thu Oct 29 11:14:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lijun Ou X-Patchwork-Id: 82729 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3262EA04B5; Thu, 29 Oct 2020 12:14:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C7836CA0C; Thu, 29 Oct 2020 12:14:31 +0100 (CET) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by dpdk.org (Postfix) with ESMTP id 2FE1ACA02 for ; Thu, 29 Oct 2020 12:14:30 +0100 (CET) Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CMNBF2NYjzkbrN for ; Thu, 29 Oct 2020 19:14:29 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.487.0; Thu, 29 Oct 2020 19:14:21 +0800 From: Lijun Ou To: CC: , Date: Thu, 29 Oct 2020 19:14:54 +0800 Message-ID: <1603970094-37384-9-git-send-email-oulijun@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1603970094-37384-1-git-send-email-oulijun@huawei.com> References: <1603970094-37384-1-git-send-email-oulijun@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH 8/8] net/hns3: fix meson build for enabling SVE Rx/Tx X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The ARM SVE vector inplementaion defined macro is __ARM_FEATURE_SVE and RTE_MACHINE_CPUFLAG macros have replaced by regular compiler macros. Besides, we remove the unused macro RTE_LIBRTE_HNS3_INC_VECTOR_SVE. Fixes: 952ebacce4f2 ("net/hns3: support SVE Rx") Signed-off-by: Lijun Ou --- drivers/net/hns3/meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/hns3/meson.build b/drivers/net/hns3/meson.build index ca0f21a..0ad28e5 100644 --- a/drivers/net/hns3/meson.build +++ b/drivers/net/hns3/meson.build @@ -31,8 +31,7 @@ deps += ['hash'] if arch_subdir == 'arm' and dpdk_conf.get('RTE_ARCH_64') sources += files('hns3_rxtx_vec.c') - if (dpdk_conf.has('RTE_MACHINE_CPUFLAG_SVE')) - dpdk_conf.set('RTE_LIBRTE_HNS3_INC_VECTOR_SVE', 1) + if cc.get_define('__ARM_FEATURE_SVE', args: machine_args) != '' cflags = ['-DCC_SVE_SUPPORT'] sources += files('hns3_rxtx_vec_sve.c') endif