[PATCH v2 2/2] common/idpf: enable AVX2 for single queue Tx

2023-12-06 Thread Wenzhuo Lu
In case some CPUs don't support AVX512. Enable AVX2 for them to get better per-core performance. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_24_03.rst | 3 + drivers/common/idpf/idpf_common_device.h| 1 + drivers/common/idpf/idpf_common_rxtx.h | 4 + dr

[PATCH v2 1/2] common/idpf: enable AVX2 for single queue Rx

2023-12-06 Thread Wenzhuo Lu
In case some CPUs don't support AVX512. Enable AVX2 for them to get better per-core performance. Signed-off-by: Wenzhuo Lu --- drivers/common/idpf/idpf_common_device.h| 1 + drivers/common/idpf/idpf_common_rxtx.h | 4 + drivers/common/idpf/idpf_common_rxtx_avx2.c

[PATCH v2 0/2] enable AVX2 for IDPF single queue

2023-12-06 Thread Wenzhuo Lu
In case some CPUs don't support AVX512. Enable AVX2 for them to get better per-core performance. --- v2: - Removed unused code. *** BLURB HERE *** Wenzhuo Lu (2): common/idpf: enable AVX2 for single queue Rx common/idpf: enable AVX2 for single queue Tx doc/guides/rel_notes/release_

[PATCH 2/2] common/idpf: enable AVX2 for single queue Tx

2023-12-06 Thread Wenzhuo Lu
In case some CPUs don't support AVX512. Enable AVX2 for them to get better per-core performance. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_24_03.rst | 3 + drivers/common/idpf/idpf_common_device.h| 1 + drivers/common/idpf/idpf_common_rxtx.h | 4 + dr

[PATCH 1/2] common/idpf: enable AVX2 for single queue Rx

2023-12-06 Thread Wenzhuo Lu
In case some CPUs don't support AVX512. Enable AVX2 for them to get better per-core performance. Signed-off-by: Wenzhuo Lu --- drivers/common/idpf/idpf_common_device.h| 1 + drivers/common/idpf/idpf_common_rxtx.h | 4 + drivers/common/idpf/idpf_common_rxtx_avx2.c

[PATCH 0/2] enable AVX2 for IDPF single queue

2023-12-06 Thread Wenzhuo Lu
In case some CPUs don't support AVX512. Enable AVX2 for them to get better per-core performance. Wenzhuo Lu (2): common/idpf: enable AVX2 for single queue Rx common/idpf: enable AVX2 for single queue Tx doc/guides/rel_notes/release_24_03.rst | 3 + drivers/common

[PATCH v2] net/iavf: fix VLAN insertion in vector path

2023-07-02 Thread Wenzhuo Lu
. To avoid any misleading, disable VLAN insertion in vector path. Fixes: 059f18ae2aec ("net/iavf: add offload path for Tx AVX512") Cc: sta...@dpdk.org Signed-off-by: Wenzhuo Lu --- v2: - Updated iavf.ini. doc/guides/nics/features/iavf.ini | 2 +- drivers/net/iavf/iavf_rxtx.h |

[PATCH] doc: update release note for iavf AVX2 feature

2023-06-28 Thread Wenzhuo Lu
Add the missed release note for iavf AVX2 feature in 23.07. Fixes: 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path") Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_23_07.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/release_23_07.

[PATCH] net/iavf: fix VLAN insertion in vector path

2023-06-20 Thread Wenzhuo Lu
. To avoid any misleading, disable VLAN insertion in vector path. Fixes: 059f18ae2aec ("net/iavf: add offload path for Tx AVX512") Cc: sta...@dpdk.org Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[PATCH] net/iavf: fix SCTP tunnel packet forwarding issue

2023-06-20 Thread Wenzhuo Lu
path is selected. Fixes: 5712bf9d6e14 ("net/iavf: add Tx AVX2 offload path") Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 4c59c1a..a2

[PATCH] usertools: enhance CPU layout

2023-04-17 Thread Wenzhuo Lu
ore-P'. An efficency core is shown as 'Core-E'. 3, All the E-cores which share the same L2-cache are grouped to one module. The known limitation. 1, To tell a core is P-core or E-core is based on if this core shares L2 cache with others. Signed-off-by: Wenzhuo Lu --- usertool

[PATCH 2/2] net/iavf: add Rx AVX2 offload path

2023-04-17 Thread Wenzhuo Lu
Add a specific path for RX AVX2. In this path, support the HW offload features, like, checksum, VLAN stripping, RSS hash. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by:

[PATCH 0/2] add offload path on iavf AVX2

2023-04-17 Thread Wenzhuo Lu
Add a specific path for RX/TX AVX2. In this path, support the HW offload features, like, checksum, VLAN stripping, RSS hash. These offload features are removed from the original path to make that path faster in case no HW feature needed. *** BLURB HERE *** Wenzhuo Lu (2): net/iavf: add Tx AVX2

[PATCH 1/2] net/iavf: add Tx AVX2 offload path

2023-04-17 Thread Wenzhuo Lu
Add a specific path for TX AVX2. In this path, support the HW offload features, like, checksum insertion, VLAN insertion. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by:

[RFC] usertools: enhance CPU layout

2023-02-10 Thread Wenzhuo Lu
be updated to show more. Signed-off-by: Wenzhuo Lu --- usertools/cpu_layout.py | 57 +++-- 1 file changed, 43 insertions(+), 14 deletions(-) diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py index 891b9238fa..9812df0503 100755 --- a/usertools/cpu

[PATCH v2] net/ice: remove avx512 specific Rx queue rearm code

2023-02-07 Thread Wenzhuo Lu
e the code easier to maintain and get the benefit from the enhancement of common lib. Reported-by: Haijun Chu Signed-off-by: Wenzhuo Lu --- v2: - Rebased on dpdk-next-net-intel drivers/net/ice/ice_rxtx_vec_avx512.c | 120 +- 1 file changed, 1 insertion(+), 119 deleti

[PATCH] net/i40e: remove avx512 specific Rx queue rearm code

2023-02-06 Thread Wenzhuo Lu
make the code easier to maintain and get the benefit from the enhancement of common lib. Reported-by: Haijun Chu Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_rxtx_vec_avx512.c | 125 +--- 1 file changed, 1 insertion(+), 124 deletions(-) diff --git a/drivers/net/i40e/i4

[PATCH] net/ice: remove avx512 specific Rx queue rearm code

2023-02-06 Thread Wenzhuo Lu
e the code easier to maintain and get the benefit from the enhancement of common lib. Reported-by: Haijun Chu Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx_vec_avx512.c | 115 +- 1 file changed, 1 insertion(+), 114 deletions(-) diff --git a/drivers/net/ice/ice_

[PATCH] net/i40e: remove avx512 specific Rx queue rearm code

2023-02-06 Thread Wenzhuo Lu
make the code easier to maintain and get the benefit from the enhancement of common lib. Reported-by: Haijun Chu Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_rxtx_vec_avx512.c | 125 +--- 1 file changed, 1 insertion(+), 124 deletions(-) diff --git a/drivers/net/i40e/i4

[PATCH] net/iavf: remove avx512 specific Rx queue rearm code

2023-02-06 Thread Wenzhuo Lu
make the code easier to maintain and get the benefit from the enhancement of common lib. Reported-by: Haijun Chu Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 126 +--- 1 file changed, 1 insertion(+), 125 deletions(-) diff --git a/drivers/net/iavf/ia

[PATCH] net/iavf: fix vlan offload issue

2022-11-01 Thread Wenzhuo Lu
HW VLAN offload cannot be enabled because the HW capability flags are not set correctly. Fixes: eff56a7b9f97 ("net/iavf: add offload path for Rx AVX512") Cc: sta...@dpdk.org Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git

[dpdk-dev] [PATCH v3 2/2] net/ice: add Rx AVX2 offload path

2021-06-28 Thread Wenzhuo Lu
Add a specific path for RX AVX2. In this path, support the HW offload features, like, checksum, VLAN stripping, RSS hash. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH v3 1/2] net/ice: add Tx AVX2 offload path

2021-06-28 Thread Wenzhuo Lu
Add a specific path for TX AVX2. In this path, support the HW offload features, like, checksum insertion, VLAN insertion. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by:

[dpdk-dev] [PATCH v3 0/2] add Rx/Tx offload paths for ICE AVX2

2021-06-28 Thread Wenzhuo Lu
newest code. Wenzhuo Lu (2): net/ice: add Tx AVX2 offload path net/ice: add Rx AVX2 offload path doc/guides/rel_notes/release_21_08.rst | 6 + drivers/net/ice/ice_rxtx.c | 87 +--- drivers/net/ice/ice_rxtx.h | 7 + drivers/net/ice/ice_rxtx_vec_avx2.c| 350

[dpdk-dev] [PATCH v2 2/2] net/ice: add Rx AVX2 offload path

2021-06-28 Thread Wenzhuo Lu
Add a specific path for RX AVX2. In this path, support the HW offload features, like, checksum, VLAN stripping, RSS hash. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH v2 1/2] net/ice: add Tx AVX2 offload path

2021-06-28 Thread Wenzhuo Lu
Add a specific path for TX AVX2. In this path, support the HW offload features, like, checksum insertion, VLAN insertion. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by:

[dpdk-dev] [PATCH v2 0/2] add Rx/Tx offload paths for ICE AVX2

2021-06-28 Thread Wenzhuo Lu
Add specific paths for RX/TX AVX2, called offload paths. In these paths, support the HW offload features, like, checksum, VLAN, RSS offload. These paths are chosen automatically according to the configuration. v2: - fdir should be supported by offload and normal path. Wenzhuo Lu (2): net/ice

[dpdk-dev] [PATCH 2/2] net/ice: add Rx AVX2 offload path

2021-06-01 Thread Wenzhuo Lu
Add a specific path for RX AVX2. In this path, support the HW offload features, like, checksum, VLAN stripping, RSS hash. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by: Wenzhuo Lu

[dpdk-dev] [PATCH 0/2] add Rx/Tx offload paths for ICE AVX2

2021-06-01 Thread Wenzhuo Lu
Add specific paths for RX/TX AVX2, called offload paths. In these paths, support the HW offload features, like, checksum, VLAN, RSS offload. These paths are chosen automatically according to the configuration. Wenzhuo Lu (2): net/ice: add Tx AVX2 offload path net/ice: add Rx AVX2 offload

[dpdk-dev] [PATCH 1/2] net/ice: add Tx AVX2 offload path

2021-06-01 Thread Wenzhuo Lu
Add a specific path for TX AVX2. In this path, support the HW offload features, like, checksum insertion, VLAN insertion. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by:

[dpdk-dev] [PATCH] net/iavf: fix coverity issue

2021-05-09 Thread Wenzhuo Lu
avf: fix Rx function selection") Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index 87f7eeb..74b5ab5 100644 --- a/drivers/net/iavf/iavf_rxtx.c +

[dpdk-dev] [PATCH] net/iavf: fix performance drop

2021-04-28 Thread Wenzhuo Lu
and AVX2 do support the offload features. No implement change about the data path. Fixes: eff56a7b9f97 ("net/iavf: add offload path for Rx AVX512") Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git

[dpdk-dev] [PATCH] net/iavf: fix l4 checksum error

2021-04-26 Thread Wenzhuo Lu
leverage the behavior of the scalar path, preparing packets is necessary for the checksum offload. Fixes: 059f18ae2aec ("net/iavf: add offload path for Tx AVX512") Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di

[dpdk-dev] [PATCH] net/iavf: fix performance drop

2021-04-25 Thread Wenzhuo Lu
AVX2 and SSE don't have the offload path. Not necessary doing any check. Or the scalar path will be chosen. Fixes: eff56a7b9f97 ("net/iavf: add offload path for Rx AVX512") Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 12 +--- 1 file changed, 5 i

[dpdk-dev] [PATCH] net/i40e: fix potential Tx hang

2021-04-19 Thread Wenzhuo Lu
Tx hang may happen if there's no memory barrier. Fixes: b4669bb95038 ("i40e: add vector Tx") Fixes: aed68d5b0e81 ("net/i40e: add AVX2 Tx function") Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: Tao Yang Signed-off-by

[dpdk-dev] [PATCH v5 4/4] net/iavf: add offload path for Rx AVX512 flex desc

2021-04-14 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_21_05.rst | 5 + drivers/net/iavf/iavf_rxtx.c| 27 +- drivers/net/iavf/iavf_rxtx.h| 6 + drivers/net/iavf/iavf_rxtx_vec_avx512.c | 436 ++-- 4 files changed, 281 insertions(+), 193

[dpdk-dev] [PATCH v5 3/4] net/iavf: add offload path for Rx AVX512

2021-04-14 Thread Wenzhuo Lu
ned-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c| 105 +++--- drivers/net/iavf/iavf_rxtx.h| 12 ++ drivers/net/iavf/iavf_rxtx_vec_avx512.c | 353 drivers/net/iavf/iavf_rxtx_vec_common.h | 17 +- 4 files changed, 324 insertions(+), 163

[dpdk-dev] [PATCH v5 2/4] net/iavf: add offload path for Tx AVX512

2021-04-14 Thread Wenzhuo Lu
Add a specific path for TX AVX512. In this path, support the HW offload features, like, checksum insertion, VLAN insertion. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by:

[dpdk-dev] [PATCH v5 1/4] net/iavf: store offload flag of Rx queue

2021-04-14 Thread Wenzhuo Lu
Add the offload flag for RX queues to know which offload features are set. Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 4 drivers/net/iavf/iavf_rxtx.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index

[dpdk-dev] [PATCH v5 0/4] add Rx/Tx offload paths for IAVF AVX512

2021-04-14 Thread Wenzhuo Lu
icate code. - some minor change. v4: - Rebased on next-net-intel. v5: - Minor change of release note. Wenzhuo Lu (4): net/iavf: store offload flag of Rx queue net/iavf: add offload path for Tx AVX512 net/iavf: add offload path for Rx AVX512 net/iavf: add offload path for Rx AVX512 flex desc

[dpdk-dev] [PATCH v5 3/3] net/i40e: fix segment fault in AVX512

2021-04-14 Thread Wenzhuo Lu
Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_rxtx_vec_avx2.c | 117 +-- drivers/net/i40e/i40e_rxtx_vec_avx512.c | 5 +- drivers/net/i40e/i40e_rxtx_vec

[dpdk-dev] [PATCH v5 2/3] net/ice: fix segment fault in AVX512

2021-04-14 Thread Wenzhuo Lu
Fixes: 7f85d5ebcfe1 ("net/ice: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx_vec_avx2.c | 120 +--- drivers/net/ice/ice_rxtx_vec_avx512.c | 5 +- drivers/net/ice/ice_rxtx_vec

[dpdk-dev] [PATCH v5 1/3] net/iavf: fix segment fault in AVX512

2021-04-14 Thread Wenzhuo Lu
Fixes: 31737f2b66fb ("net/iavf: enable AVX512 for legacy Rx") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 120 +-- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 5 +- drivers/net/iavf/iavf_rxtx_vec

[dpdk-dev] [PATCH v5 0/3] fix segment fault in avx512 code

2021-04-14 Thread Wenzhuo Lu
Fix no memory segment fault of iavf, ice, i40e. v2: - Drop the duplicate code. v3: - Fix compile error on no-x86 platform. v4: - Minor performance optimization. v5: - Fix a potential compile issue. - Some minor change. Wenzhuo Lu (3): net/iavf: fix segment fault in AVX512 net/ice

[dpdk-dev] [PATCH v4 4/4] net/iavf: add offload path for Rx AVX512 flex desc

2021-04-08 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_21_05.rst | 7 + drivers/net/iavf/iavf_rxtx.c| 27 +- drivers/net/iavf/iavf_rxtx.h| 6 + drivers/net/iavf/iavf_rxtx_vec_avx512.c | 436 ++-- 4 files changed, 283 insertions(+), 193

[dpdk-dev] [PATCH v4 3/4] net/iavf: add offload path for Rx AVX512

2021-04-08 Thread Wenzhuo Lu
ned-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c| 105 +++--- drivers/net/iavf/iavf_rxtx.h| 12 ++ drivers/net/iavf/iavf_rxtx_vec_avx512.c | 353 drivers/net/iavf/iavf_rxtx_vec_common.h | 17 +- 4 files changed, 324 insertions(+), 163

[dpdk-dev] [PATCH v4 2/4] net/iavf: add offload path for Tx AVX512

2021-04-08 Thread Wenzhuo Lu
Add a specific path for TX AVX512. In this path, support the HW offload features, like, checksum insertion, VLAN insertion. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by:

[dpdk-dev] [PATCH v4 1/4] net/iavf: store offload flag of Rx queue

2021-04-08 Thread Wenzhuo Lu
Add the offload flag for RX queues to know which offload features are set. Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 4 drivers/net/iavf/iavf_rxtx.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index

[dpdk-dev] [PATCH v4 0/4] add Rx/Tx offload paths for IAVF AVX512

2021-04-08 Thread Wenzhuo Lu
icate code. - some minor change. v4: - Rebased on next-net-intel. Wenzhuo Lu (4): net/iavf: store offload flag of Rx queue net/iavf: add offload path for Tx AVX512 net/iavf: add offload path for Rx AVX512 net/iavf: add offload path for Rx AVX512 flex desc doc/guides/rel_notes/release_21_05.

[dpdk-dev] [PATCH v4 3/3] net/i40e: fix segment fault in AVX512

2021-04-08 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_rxtx_vec_avx2.c | 117 +-- driver

[dpdk-dev] [PATCH v4 2/3] net/ice: fix segment fault in AVX512

2021-04-08 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: 7f85d5ebcfe1 ("net/ice: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx_vec_avx2.c | 120 +--- drive

[dpdk-dev] [PATCH v4 1/3] net/iavf: fix segment fault in AVX512

2021-04-08 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: 31737f2b66fb ("net/iavf: enable AVX512 for legacy Rx") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 120 +-- driver

[dpdk-dev] [PATCH v4 0/3] fix segment fault in avx512 code

2021-04-08 Thread Wenzhuo Lu
Fix no memory segment fault of iavf, ice, i40e. v2: - Drop the duplicate code. v3: - Fix compile error on no-x86 platform. v4: - minor performance optimization. Wenzhuo Lu (3): net/iavf: fix segment fault in AVX512 net/ice: fix segment fault in AVX512 net/i40e: fix segment fault in

[dpdk-dev] [PATCH v3 3/3] net/i40e: fix segment fault in AVX512

2021-03-29 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_rxtx_vec_avx2.c | 117 +-- driver

[dpdk-dev] [PATCH v3 2/3] net/ice: fix segment fault in AVX512

2021-03-29 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: 7f85d5ebcfe1 ("net/ice: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx_vec_avx2.c | 120 +--- drive

[dpdk-dev] [PATCH v3 1/3] net/iavf: fix segment fault in AVX512

2021-03-29 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: 31737f2b66fb ("net/iavf: enable AVX512 for legacy Rx") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 120 +-- driver

[dpdk-dev] [PATCH v3 0/3] fix segment fault in avx512 code

2021-03-29 Thread Wenzhuo Lu
Fix no memory segment fault of iavf, ice, i40e. v2: - Drop the duplicate code. v3: - Fix compile error on no-x86 platform. Wenzhuo Lu (3): net/iavf: fix segment fault in AVX512 net/ice: fix segment fault in AVX512 net/i40e: fix segment fault in AVX512 drivers/net/i40e

[dpdk-dev] [PATCH v2 3/3] net/i40e: fix segment fault in AVX512

2021-03-29 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_rxtx_vec_avx2.c | 117 +-- driver

[dpdk-dev] [PATCH v2 2/3] net/ice: fix segment fault in AVX512

2021-03-29 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: 7f85d5ebcfe1 ("net/ice: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx_vec_avx2.c | 120 +--- drive

[dpdk-dev] [PATCH v2 1/3] net/iavf: fix segment fault in AVX512

2021-03-29 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: 31737f2b66fb ("net/iavf: enable AVX512 for legacy Rx") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 120 +-- driver

[dpdk-dev] [PATCH v2 0/3] fix segment fault in avx512

2021-03-29 Thread Wenzhuo Lu
Fix no memory segment fault of iavf, ice, i40e. v2: - Drop the duplicate code. Wenzhuo Lu (3): net/iavf: fix segment fault in AVX512 net/ice: fix segment fault in AVX512 net/i40e: fix segment fault in AVX512 drivers/net/i40e/i40e_rxtx_vec_avx2.c | 117 +-- drivers/net

[dpdk-dev] [PATCH v3 4/4] net/iavf: add offload path for Rx AVX512 flex desc

2021-03-25 Thread Wenzhuo Lu
Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_21_05.rst | 7 + drivers/net/iavf/iavf_rxtx.c| 27 +- drivers/net/iavf/iavf_rxtx.h| 6 + drivers/net/iavf/iavf_rxtx_vec_avx512.c | 436 ++-- 4 files changed, 283 insertions(+), 193

[dpdk-dev] [PATCH v3 3/4] net/iavf: add offload path for Rx AVX512

2021-03-25 Thread Wenzhuo Lu
ned-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c| 105 +++--- drivers/net/iavf/iavf_rxtx.h| 12 ++ drivers/net/iavf/iavf_rxtx_vec_avx512.c | 355 drivers/net/iavf/iavf_rxtx_vec_common.h | 17 +- 4 files changed, 325 insertions(+), 164

[dpdk-dev] [PATCH v3 2/4] net/iavf: add offload path for Tx AVX512

2021-03-25 Thread Wenzhuo Lu
Add a specific path for TX AVX512. In this path, support the HW offload features, like, checksum insertion, VLAN insertion. This path is chosen automatically according to the configuration. 'inline' is used, then the duplicate code is generated by the compiler. Signed-off-by:

[dpdk-dev] [PATCH v3 1/4] net/iavf: store offload flag of Rx queue

2021-03-25 Thread Wenzhuo Lu
Add the offload flag for RX queues to know which offload features are set. Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 4 drivers/net/iavf/iavf_rxtx.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index

[dpdk-dev] [PATCH v3 0/4] add Rx/Tx offload paths for IAVF AVX512

2021-03-25 Thread Wenzhuo Lu
e. - some minor change. Wenzhuo Lu (4): net/iavf: store offload flag of Rx queue net/iavf: add offload path for Tx AVX512 net/iavf: add offload path for Rx AVX512 net/iavf: add offload path for Rx AVX512 flex desc doc/guides/rel_notes/release_21_05.rst | 7 + drivers/net/iavf/i

[dpdk-dev] [PATCH v2 4/4] net/iavf: add offload path for Rx AVX512 flex desc

2021-03-17 Thread Wenzhuo Lu
. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_21_05.rst | 7 + drivers/net/iavf/iavf_rxtx.c| 27 +- drivers/net/iavf/iavf_rxtx.h| 6 + drivers/net/iavf/iavf_rxtx_vec_avx512.c | 899 +--- 4 files changed, 746 insertions(+), 193

[dpdk-dev] [PATCH v2 3/4] net/iavf: add offload path for Rx AVX512

2021-03-17 Thread Wenzhuo Lu
-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c| 83 ++-- drivers/net/iavf/iavf_rxtx.h| 12 + drivers/net/iavf/iavf_rxtx_vec_avx512.c | 722 ++-- drivers/net/iavf/iavf_rxtx_vec_common.h | 15 +- 4 files changed, 682 insertions(+), 150 deletions

[dpdk-dev] [PATCH v2 2/4] net/iavf: add offload path for Tx AVX512

2021-03-17 Thread Wenzhuo Lu
Add a specific path for TX AVX512. In this path, support the HW offload features, like, checksum insertion, VLAN insertion. This path is chosen automatically according to the configuration. Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c| 50 ++ drivers/net/iavf

[dpdk-dev] [PATCH v2 1/4] net/iavf: store offload flag of Rx queue

2021-03-17 Thread Wenzhuo Lu
Add the offload flag for RX queues to know which offload features are set. Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 4 drivers/net/iavf/iavf_rxtx.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index

[dpdk-dev] [PATCH v2 0/4] add Rx/Tx offload paths for IAVF AVX512

2021-03-17 Thread Wenzhuo Lu
removed from the legacy path. v2: - Fixed compile error. Wenzhuo Lu (4): net/iavf: store offload flag of Rx queue net/iavf: add offload path for Tx AVX512 net/iavf: add offload path for Rx AVX512 net/iavf: add offload path for Rx AVX512 flex desc doc/guides/rel_notes/release_21_05.rst

[dpdk-dev] [PATCH 4/4] net/iavf: add offload path for Rx AVX512 flex desc

2021-03-16 Thread Wenzhuo Lu
. Signed-off-by: Wenzhuo Lu --- doc/guides/rel_notes/release_21_05.rst | 7 + drivers/net/iavf/iavf_rxtx.c| 27 +- drivers/net/iavf/iavf_rxtx.h| 6 + drivers/net/iavf/iavf_rxtx_vec_avx512.c | 899 +--- 4 files changed, 746 insertions(+), 193

[dpdk-dev] [PATCH 3/4] net/iavf: add offload path for Rx AVX512

2021-03-16 Thread Wenzhuo Lu
-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c| 81 ++-- drivers/net/iavf/iavf_rxtx.h| 12 + drivers/net/iavf/iavf_rxtx_vec_avx512.c | 722 ++-- drivers/net/iavf/iavf_rxtx_vec_common.h | 15 +- 4 files changed, 682 insertions(+), 148 deletions

[dpdk-dev] [PATCH 2/4] net/iavf: add offload path for Tx AVX512

2021-03-16 Thread Wenzhuo Lu
Add a specific path for TX AVX512. In this path, support the HW offload features, like, checksum insertion, VLAN insertion. This path is chosen automatically according to the configuration. Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c| 50 ++ drivers/net/iavf

[dpdk-dev] [PATCH 1/4] net/iavf: store offload flag of Rx queue

2021-03-16 Thread Wenzhuo Lu
Add the offload flag for RX queues to know which offload features are set. Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx.c | 4 drivers/net/iavf/iavf_rxtx.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c index

[dpdk-dev] [PATCH 0/4] add Rx/Tx offload paths for IAVF AVX512

2021-03-16 Thread Wenzhuo Lu
removed from the legacy path. Wenzhuo Lu (4): net/iavf: store offload flag of Rx queue net/iavf: add offload path for Tx AVX512 net/iavf: add offload path for Rx AVX512 net/iavf: add offload path for Rx AVX512 flex desc doc/guides/rel_notes/release_21_05.rst |7 + drivers/net/iavf

[dpdk-dev] [PATCH 3/3] net/i40e: fix segment fault in AVX512

2021-03-11 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/i40e/i40e_rxtx_vec_avx512.c | 128 1 fi

[dpdk-dev] [PATCH 2/3] net/ice: fix segment fault in AVX512

2021-03-11 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: 7f85d5ebcfe1 ("net/ice: add AVX512 vector path") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx_vec_avx512.c | 129 ++ 1 fi

[dpdk-dev] [PATCH 1/3] net/iavf: fix segment fault in AVX512

2021-03-11 Thread Wenzhuo Lu
Fix segment fault when failing to get the memory from the pool. Fixes: 31737f2b66fb ("net/iavf: enable AVX512 for legacy Rx") Cc: sta...@dpdk.org Reported-by: David Coyle Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 130 ++

[dpdk-dev] [PATCH] net/iavf: fix missed pointer check

2020-11-09 Thread Wenzhuo Lu
The return value of rte_mempool_default_cache should be checked as it can be NULL. Fixes: 9ab9514c150e ("net/iavf: enable AVX512 for Tx") Reported-by: Konstantin Ananyev Signed-off-by: Wenzhuo Lu --- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 8 +++- 1 file changed, 7 insert

[dpdk-dev] [PATCH] net/ice: fix missed pointer check

2020-11-09 Thread Wenzhuo Lu
The return value of rte_mempool_default_cache should be checked as it can be NULL. Fixes: a4e480de268e ("net/ice: optimize Tx by using AVX512") Reported-by: Konstantin Ananyev Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx_vec_avx512.c | 8 +++- 1 file changed, 7 insert

[dpdk-dev] [PATCH v7 3/3] net/iavf: enable AVX512 for Tx

2020-10-28 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the Tx descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- doc/guides/rel_notes/release_20_11.rst | 3 + drivers/net/iavf/iavf_ethdev.c

[dpdk-dev] [PATCH v7 2/3] net/iavf: enable AVX512 for flexible Rx

2020-10-28 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the flexible Rx descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 10 + drivers/net/iavf

[dpdk-dev] [PATCH v7 0/3] enable AVX512 for iavf

2020-10-28 Thread Wenzhuo Lu
fix compile issue for AVX512BW. v7: rebased on next-net_intel. Wenzhuo Lu (3): net/iavf: enable AVX512 for legacy Rx net/iavf: enable AVX512 for flexible Rx net/iavf: enable AVX512 for Tx doc/guides/rel_notes/release_20_11.rst |3 + drivers/net/iavf/iavf_ethdev.c |3 +-

[dpdk-dev] [PATCH v7 1/3] net/iavf: enable AVX512 for legacy Rx

2020-10-28 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the legacy Rx descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 29 +- drivers/net/iavf

[dpdk-dev] [PATCH v6 0/3] enable AVX512 for iavf

2020-10-27 Thread Wenzhuo Lu
fix compile issue for AVX512BW. Wenzhuo Lu (3): net/iavf: enable AVX512 for legacy RX net/iavf: enable AVX512 for flexible RX net/iavf: enable AVX512 for TX doc/guides/rel_notes/release_20_11.rst |3 + drivers/net/iavf/iavf_ethdev.c |3 +- drivers/net/iavf/iavf_rxtx.c

[dpdk-dev] [PATCH v6 2/3] net/iavf: enable AVX512 for flexible RX

2020-10-27 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the flexible RX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 10 + drivers/net/iavf

[dpdk-dev] [PATCH v6 1/3] net/iavf: enable AVX512 for legacy RX

2020-10-27 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the legacy RX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 29 +- drivers/net/iavf

[dpdk-dev] [PATCH v6 3/3] net/iavf: enable AVX512 for TX

2020-10-27 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the TX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- doc/guides/rel_notes/release_20_11.rst | 3 + drivers/net/iavf/iavf_ethdev.c

[dpdk-dev] [PATCH v5 0/3] enable AVX512 for iavf

2020-10-21 Thread Wenzhuo Lu
get a better per-code throughput. v2: Update meson.build. Repalce the deprecated 'buf_physaddr' by 'buf_iova'. v3: Fix compile errors. v4: Fix wrong info in commnets. Trivial adjustment of the arrangement. v5: Support "max SIMD bitwidth". Wenzhuo Lu (3): net/iav

[dpdk-dev] [PATCH v5 3/3] net/iavf: enable AVX512 for TX

2020-10-21 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the TX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- doc/guides/rel_notes/release_20_11.rst | 3 + drivers/net/iavf/iavf_ethdev.c

[dpdk-dev] [PATCH v5 2/3] net/iavf: enable AVX512 for flexible RX

2020-10-21 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the flexible RX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 10 + drivers/net/iavf

[dpdk-dev] [PATCH v5 1/3] net/iavf: enable AVX512 for legacy RX

2020-10-21 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the legacy RX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 28 +- drivers/net/iavf

[dpdk-dev] [PATCH v4 2/3] net/iavf: enable AVX512 for flexible RX

2020-09-26 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the flexible RX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 10 + drivers/net/iavf

[dpdk-dev] [PATCH v4 1/3] net/iavf: enable AVX512 for legacy RX

2020-09-26 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the legacy RX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 27 +- drivers/net/iavf

[dpdk-dev] [PATCH v4 3/3] net/iavf: enable AVX512 for TX

2020-09-26 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the TX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- doc/guides/rel_notes/release_20_11.rst | 3 + drivers/net/iavf/iavf_ethdev.c

[dpdk-dev] [PATCH v4 0/3] enable AVX512 for iavf

2020-09-26 Thread Wenzhuo Lu
get a better per-code throughput. v2: Update meson.build. Repalce the deprecated 'buf_physaddr' by 'buf_iova'. v3: Fix compile errors. v4: Fix wrong info in commnets. Trivial adjustment of the arrangement. Wenzhuo Lu (3): net/iavf: enable AVX512 for legacy RX net/iav

[dpdk-dev] [PATCH v3 3/3] net/iavf: enable AVX512 for TX

2020-09-21 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the TX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- doc/guides/rel_notes/release_20_11.rst | 3 + drivers/net/iavf/iavf_ethdev.c

[dpdk-dev] [PATCH v3 2/3] net/iavf: enable AVX512 for flexible RX

2020-09-21 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the flexible RX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 10 + drivers/net/iavf

[dpdk-dev] [PATCH v3 1/3] net/iavf: enable AVX512 for legacy RX

2020-09-21 Thread Wenzhuo Lu
To enhance the per-core performance, this patch adds some AVX512 instructions to the data path to handle the legacy RX descriptors. Signed-off-by: Wenzhuo Lu Signed-off-by: Bruce Richardson Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c| 27 +- drivers/net/iavf

  1   2   3   4   5   6   7   8   9   10   >