net/mlx5: add support for vectorized code on Power systems
Subsystems (2)
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
@@ -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
@@ -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
@@ -35,6 +35,8 @@#include "mlx5_rxtx_vec_sse.h" #elif definedRTE_ARCH_ARM64 #include "mlx5_rxtx_vec_neon.h" +#elif definedRTE_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
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
@@ -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
@@ -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
@@ -35,6 +35,8 @@#include "mlx5_rxtx_vec_sse.h" #elif definedRTE_ARCH_ARM64 #include "mlx5_rxtx_vec_neon.h" +#elif definedRTE_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
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 systemsAdded
mlx5_rxtx_vec_altivec.hwhich supports vectorized RX using Altivec vector code. Modified associated build files to use the new code.
Quoted 8 lines
Signed-off-by David Christensen <[email protected]>---
Changelog since v1:
- Resovled meson build issue
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
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 systemsHi,
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 systemsAdded
mlx5_rxtx_vec_altivec.hwhich supports vectorized RX using Altivec vector code. Modified associated build files to use the new code.Quoted 8 lines
Signed-off-by David Christensen <[email protected]>---
Changelog since v1:
- Resovled meson build issuePatch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh