net/i40e: enable PPC AltiVec path in meson build
authorDavid Christensen <drc@linux.vnet.ibm.com>
Thu, 9 Apr 2020 18:20:55 +0000 (11:20 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 22 Apr 2020 10:31:12 +0000 (12:31 +0200)
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.

Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/net/i40e/meson.build

index 886e8da..c452420 100644 (file)
@@ -44,6 +44,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')