[dpdk-stable] [PATCH v18 2/7] net/bnxt: fix aarch32 build

Juraj Linkeš juraj.linkes at pantheon.tech
Wed Jul 7 15:25:38 CEST 2021


From: Ruifeng Wang <ruifeng.wang at arm.com>

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: lance.richardson at broadcom.com
Cc: stable at dpdk.org

Signed-off-by: Ruifeng Wang <ruifeng.wang at arm.com>
Reviewed-by: Lance Richardson <lance.richardson at broadcom.com>
---
 drivers/net/bnxt/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/bnxt/meson.build b/drivers/net/bnxt/meson.build
index 41c4796366..53a324b4a8 100644
--- a/drivers/net/bnxt/meson.build
+++ b/drivers/net/bnxt/meson.build
@@ -99,6 +99,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
-- 
2.20.1



More information about the stable mailing list