net/i40e: enable PPC altivec support for meson builds

Message ID 20200409182055.14418-1-drc@linux.vnet.ibm.com (mailing list archive)
State Accepted, archived
Delegated to: xiaolong ye
Headers
Series net/i40e: enable PPC altivec support for meson builds |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/travis-robot warning Travis build: failed
ci/iol-testing success Testing PASS
ci/Intel-compilation success Compilation OK

Commit Message

David Christensen April 9, 2020, 6:20 p.m. UTC
  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>
---
 drivers/net/i40e/meson.build | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Bruce Richardson April 10, 2020, 9:48 a.m. UTC | #1
On Thu, Apr 09, 2020 at 11:20:55AM -0700, David Christensen wrote:
> 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>
  
Xiaolong Ye April 22, 2020, 7:20 a.m. UTC | #2
On 04/09, David Christensen wrote:
>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>
>---
> drivers/net/i40e/meson.build | 3 +++
> 1 file changed, 3 insertions(+)
>
>diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build
>index b01babba1..cb278696f 100644
>--- a/drivers/net/i40e/meson.build
>+++ b/drivers/net/i40e/meson.build
>@@ -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')
>-- 
>2.18.1
>

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

Patch

diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build
index b01babba1..cb278696f 100644
--- a/drivers/net/i40e/meson.build
+++ b/drivers/net/i40e/meson.build
@@ -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')