From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 22B58A04B5; Tue, 27 Oct 2020 07:54:27 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8D5A32B9D; Tue, 27 Oct 2020 07:54:25 +0100 (CET) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by dpdk.org (Postfix) with ESMTP id 7A7991D9E for ; Tue, 27 Oct 2020 07:54:23 +0100 (CET) Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CL2W51L2qz15MDM for ; Tue, 27 Oct 2020 14:54:25 +0800 (CST) Received: from [10.67.103.119] (10.67.103.119) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Tue, 27 Oct 2020 14:54:16 +0800 To: References: <20201014100114.26596-1-huwei013@chinasoftinc.com> <20201014100114.26596-2-huwei013@chinasoftinc.com> From: oulijun Message-ID: <2f0dc579-ed54-3227-e414-e506d41d1f3f@huawei.com> Date: Tue, 27 Oct 2020 14:54:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.119] X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH 1/2] net/hns3: support SVE Rx 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" 在 2020/10/26 0:18, David Marchand 写道: > Hello Wei Hu, > >> diff --git a/drivers/net/hns3/meson.build b/drivers/net/hns3/meson.build >> index bf69ad4..ca0f21a 100644 >> --- a/drivers/net/hns3/meson.build >> +++ b/drivers/net/hns3/meson.build >> @@ -31,4 +31,9 @@ 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) >> + cflags = ['-DCC_SVE_SUPPORT'] >> + sources += files('hns3_rxtx_vec_sve.c') >> + endif >> endif > > This patch is already merged in main, but RTE_MACHINE_CPUFLAG_* have > been removed, see https://git.dpdk.org/dpdk/commit/?id=84fb33fec1 > I guess SVE support is not working because of this. > > Please use compiler flags to check for support. > If you need an example on how to do this, you can probably look at > what has been done for Intel vector stuff. > > Besides, RTE_LIBRTE_HNS3_INC_VECTOR_SVE is not used anywhere and can be removed. > Hi,David Marchand I have checked. I will send a fix patch for enabling. Thanks Lijun Ou >