Skip to contentSkip to conversation

net/i40e: enable PPC altivec support for meson builds

PATCH Applied David Christensen 3 participants 3 messages Apr 9, 2020 – Apr 22, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40e: enable PPC altivec support for meson builds

The meson build file does not enable i40e vectorization support for PPC/altivec systems, even though the existing Makefile does enable the support. Add the required architecture check and sources line.

---
 drivers/net/i40e/meson.build | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/i40e/meson.build +3 -0
index b01babba1..cb278696f 100644
@@ -45,6 +45,9 @@ if arch_subdir == 'x86'
 				c_args: [cflags, '-mavx2'])
 		objs += i40e_avx2_lib.extract_objects('i40e_rxtx_vec_avx2.c')
 	endif
+elif arch_subdir == 'ppc'
+       dpdk_conf.set('RTE_LIBRTE_I40E_INC_VECTOR', 1)
+       sources += files('i40e_rxtx_vec_altivec.c')
 endif
 
 install_headers('rte_pmd_i40e.h')
Signature · 1 line
2.18.1
Applied
#2 lore raw
In reply to David Christensen
Quoted 22 lines · David Christensen

The meson build file does not enable i40e vectorization support for PPC/altivec systems, even though the existing Makefile does enable the support. Add the required architecture check and sources line.

---
drivers/net/i40e/meson.build | 3 +++

1 file changed, 3 insertions(+)
drivers/net/i40e/meson.build +3 -0
index b01babba1..cb278696f 100644
@@ -45,6 +45,9 @@ if arch_subdir == 'x86'
 				c_args: [cflags, '-mavx2'])
 		objs += i40e_avx2_lib.extract_objects('i40e_rxtx_vec_avx2.c')
 	endif
+elif arch_subdir == 'ppc'
+       dpdk_conf.set('RTE_LIBRTE_I40E_INC_VECTOR', 1)
+       sources += files('i40e_rxtx_vec_altivec.c')

endif

Quoted 4 lines

install_headers('rte_pmd_i40e.h')

Signature · 1 line
2.18.1

Applied to dpdk-next-net-intel, Thanks.