Skip to contentSkip to conversation

net/mlx5: add support for vectorized code on Power systems

PATCH Superseded David Christensen 2 participants 4 messages Aug 15, 2019 – Oct 23, 2019

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

PATCH 1/1 net/mlx5: add support for vectorized code on Power systems

Added mlx5_rxtx_vec_altivec.h which supports vectorized RX using Altivec vector code. Modified associated build files to use the new code.

---
 drivers/net/mlx5/Makefile                |    1 +
 drivers/net/mlx5/meson.build             |    4 +-
 drivers/net/mlx5/mlx5_rxtx_vec.c         |    2 +
 drivers/net/mlx5/mlx5_rxtx_vec_altivec.h | 1074 ++++++++++++++++++++++++++++++
 4 files changed, 1080 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/mlx5/mlx5_rxtx_vec_altivec.h
drivers/net/mlx5/Makefile +1 -0
index dbb2a4e..9f6a7b4 100644
@@ -19,6 +19,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rxq.c
 SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_txq.c
 SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rxtx.c
 ifneq ($(filter y,$(CONFIG_RTE_ARCH_X86_64) \
+			$(CONFIG_RTE_ARCH_PPC_64) \
 		  $(CONFIG_RTE_ARCH_ARM64)),)
 SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rxtx_vec.c
 endif
drivers/net/mlx5/meson.build +3 -1
index 62b41ca..090b4d4 100644
@@ -59,7 +59,9 @@ if build
 		'mlx5_vlan.c',
 		'mlx5_devx_cmds.c',
 	)
-	if dpdk_conf.has('RTE_ARCH_X86_64') or dpdk_conf.has('RTE_ARCH_ARM64')
+	if dpdk_conf.has('RTE_ARCH_X86_64')
+		or dpdk_conf.has('RTE_ARCH_ARM64')
+		or dpdk_conf.has('RTE_ARCH_PPC_64')
 		sources += files('mlx5_rxtx_vec.c')
 	endif
 	if not pmd_dlopen
drivers/net/mlx5/mlx5_rxtx_vec.c +2 -0
index 3925f4d..d85f908 100644
@@ -35,6 +35,8 @@
 #include "mlx5_rxtx_vec_sse.h"
 #elif defined RTE_ARCH_ARM64
 #include "mlx5_rxtx_vec_neon.h"
+#elif defined RTE_ARCH_PPC_64
+#include "mlx5_rxtx_vec_altivec.h"
 #else
 #error "This should not be compiled if SIMD instructions are not supported."
 #endif
drivers/net/mlx5/mlx5_rxtx_vec_altivec.h new file +1074 -0

1,074 lines not on this page · raw message

Signature · 1 line
1.8.3.1
#1 lore raw

PATCH v2 1/1 net/mlx5: add support for vectorized code on Power systems

Added mlx5_rxtx_vec_altivec.h which supports vectorized RX using Altivec vector code. Modified associated build files to use the new code.

---
Changelog since v1:
- Resovled meson build issue

 drivers/net/mlx5/Makefile                |    1 +
 drivers/net/mlx5/meson.build             |    4 +-
 drivers/net/mlx5/mlx5_rxtx_vec.c         |    2 +
 drivers/net/mlx5/mlx5_rxtx_vec_altivec.h | 1074 ++++++++++++++++++++++++++++++
 4 files changed, 1080 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/mlx5/mlx5_rxtx_vec_altivec.h
drivers/net/mlx5/Makefile +1 -0
index dbb2a4e..9f6a7b4 100644
@@ -19,6 +19,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rxq.c
 SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_txq.c
 SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rxtx.c
 ifneq ($(filter y,$(CONFIG_RTE_ARCH_X86_64) \
+			$(CONFIG_RTE_ARCH_PPC_64) \
 		  $(CONFIG_RTE_ARCH_ARM64)),)
 SRCS-$(CONFIG_RTE_LIBRTE_MLX5_PMD) += mlx5_rxtx_vec.c
 endif
drivers/net/mlx5/meson.build +3 -1
index 62b41ca..3072c44 100644
@@ -59,7 +59,9 @@ if build
 		'mlx5_vlan.c',
 		'mlx5_devx_cmds.c',
 	)
-	if dpdk_conf.has('RTE_ARCH_X86_64') or dpdk_conf.has('RTE_ARCH_ARM64')
+	if (dpdk_conf.has('RTE_ARCH_X86_64')
+		or dpdk_conf.has('RTE_ARCH_ARM64')
+		or dpdk_conf.has('RTE_ARCH_PPC_64'))
 		sources += files('mlx5_rxtx_vec.c')
 	endif
 	if not pmd_dlopen
drivers/net/mlx5/mlx5_rxtx_vec.c +2 -0
index 3925f4d..d85f908 100644
@@ -35,6 +35,8 @@
 #include "mlx5_rxtx_vec_sse.h"
 #elif defined RTE_ARCH_ARM64
 #include "mlx5_rxtx_vec_neon.h"
+#elif defined RTE_ARCH_PPC_64
+#include "mlx5_rxtx_vec_altivec.h"
 #else
 #error "This should not be compiled if SIMD instructions are not supported."
 #endif
drivers/net/mlx5/mlx5_rxtx_vec_altivec.h new file +1074 -0

1,074 lines not on this page · raw message

Signature · 1 line
1.8.3.1
#2 lore raw

Hi,

Quoted 13 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of David Christensen
Sent: Friday, August 16, 2019 8:56 PM
To: Shahaf Shuler <[email protected]>; Yongseok Koh <[email protected]>; Slava Ovsiienko <[email protected]>
Cc: [email protected]; David Christensen <[email protected]>
Subject: [dpdk-dev] [PATCH v2] net/mlx5: add support for vectorized code on Power systems

Added mlx5_rxtx_vec_altivec.h which supports vectorized RX using Altivec vector code. Modified associated build files to use the new code.

Quoted 8 lines

---
Changelog since v1:
- Resovled meson build issue

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

Acked-by Viacheslav Ovsiienko Tested-by
#3 lore raw

Added,

Kindest regards,
Raslan Darawsheh

Quoted 38 lines

-----Original Message-----
From: Raslan Darawsheh
Sent: Wednesday, October 23, 2019 5:33 PM
To: David Christensen <[email protected]>; Shahaf Shuler <[email protected]>; Yongseok Koh <[email protected]>; Slava Ovsiienko <[email protected]>
Cc: [email protected]
Subject: RE: [dpdk-dev] [PATCH v2] net/mlx5: add support for vectorized code on Power systems

Hi,

Quoted 13 lines

-----Original Message-----
From: dev <[email protected]> On Behalf Of David Christensen
Sent: Friday, August 16, 2019 8:56 PM
To: Shahaf Shuler <[email protected]>; Yongseok Koh <[email protected]>; Slava Ovsiienko <[email protected]>
Cc: [email protected]; David Christensen <[email protected]>
Subject: [dpdk-dev] [PATCH v2] net/mlx5: add support for vectorized code on Power systems

Added mlx5_rxtx_vec_altivec.h which supports vectorized RX using Altivec vector code. Modified associated build files to use the new code.

Quoted 8 lines

---
Changelog since v1:
- Resovled meson build issue

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh