From: Lijun Ou Date: Thu, 29 Oct 2020 12:51:57 +0000 (+0800) Subject: net/hns3: fix enabling SVE Rx/Tx X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8c25b02b082aea2e9a1648ab5efc8207923cb0c0;p=dpdk.git net/hns3: fix enabling SVE Rx/Tx The ARM SVE vector implementation 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 --- diff --git a/drivers/net/hns3/meson.build b/drivers/net/hns3/meson.build index ca0f21a8e1..0ad28e59bf 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