diff mbox series

[8/8] net/hns3: fix meson build for enabling SVE Rx/Tx

Message ID 1603970094-37384-9-git-send-email-oulijun@huawei.com (mailing list archive)
State Superseded, archived
Delegated to: Ferruh Yigit
Headers show
Series hns3 misc updates | expand


Context Check Description
ci/travis-robot success Travis build: passed
ci/Intel-compilation success Compilation OK
ci/checkpatch success coding style OK

Commit Message

Lijun Ou Oct. 29, 2020, 11:14 a.m. UTC
The ARM SVE vector inplementaion defined macro is
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 <oulijun@huawei.com>
 drivers/net/hns3/meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series


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')