From: Ruifeng Wang Date: Wed, 7 Jul 2021 13:25:38 +0000 (+0200) Subject: net/bnxt: fix aarch32 build X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=746d6f83888cfd1bd3c2a1fc849372424b9aa815;p=dpdk.git net/bnxt: fix aarch32 build NEON vector path of the PMD needs aarch64 support. But it was enabled for aarch32 build as well because aarch32 build had cpu_family set to aarch64. So build for aarch32 will fail due to unsupported intrinsics. Fix aarch32 build by updating meson file to exclude NEON vector implementation for aarch32. Fixes: 398358341419 ("net/bnxt: support NEON") Cc: stable@dpdk.org Signed-off-by: Ruifeng Wang Reviewed-by: Lance Richardson --- diff --git a/drivers/net/bnxt/meson.build b/drivers/net/bnxt/meson.build index 12ecd37d54..81cbe0381f 100644 --- a/drivers/net/bnxt/meson.build +++ b/drivers/net/bnxt/meson.build @@ -66,6 +66,6 @@ if arch_subdir == 'x86' c_args: [cflags, '-mavx2']) objs += bnxt_avx2_lib.extract_objects('bnxt_rxtx_vec_avx2.c') endif -elif arch_subdir == 'arm' and host_machine.cpu_family().startswith('aarch64') +elif arch_subdir == 'arm' and dpdk_conf.get('RTE_ARCH_64') sources += files('bnxt_rxtx_vec_neon.c') endif