[PATCH v2] test/member: fix incorrect expression

2022-10-25 Thread Leyi Rong
Fix incorrect expression by cast division operand to type double to match ceil() and fabs() definitions. Coverity issue: 381398, 381401, 381402 Fixes: db354bd2e1f8 ("member: add NitroSketch mode") Signed-off-by: Leyi Rong --- v2: - resubmit as v1 performance CI fail maybe fals

[dpdk-dev] [PATCH v4 0/2] add alternative AVX512 offload path

2021-04-14 Thread Leyi Rong
. v2: - add "do_offload" parameter to according functions for reducing code duplication. Leyi Rong (2): net/ice: add Tx AVX512 offload path net/ice: add Rx AVX512 offload path drivers/net/ice/ice_rxtx.c| 78 +++-- drivers/net/ice/ice_rxtx.h| 10 + drive

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

2021-04-14 Thread Leyi Rong
Add alternative Tx data path for AVX512 which can support partial Tx offload features, including Tx checksum offload, vlan/QinQ insertion offload. Signed-off-by: Leyi Rong Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c| 28 +-- drivers/net/ice/ice_rxtx.h

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

2021-04-14 Thread Leyi Rong
Split AVX512 Rx data path into two, one is for basic, the other one can support additional Rx offload features, including Rx checksum offload, Rx vlan offload, RSS offload. Signed-off-by: Leyi Rong Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c| 50 +++- drivers/net/ice

[dpdk-dev] [PATCH v5 0/2] add alternative AVX512 offload path

2021-04-15 Thread Leyi Rong
. - complete tx/rx burst infos for new adding offload functions. v2: - add "do_offload" parameter to according functions for reducing code duplication. Leyi Rong (2): net/ice: add Tx AVX512 offload path net/ice: add Rx AVX512 offload path drivers/net/ice/ice_rxtx.c

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

2021-04-15 Thread Leyi Rong
Add alternative Tx data path for AVX512 which can support partial Tx offload features, including Tx checksum offload, vlan/QinQ insertion offload. Signed-off-by: Leyi Rong Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c| 28 +-- drivers/net/ice/ice_rxtx.h

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

2021-04-15 Thread Leyi Rong
Split AVX512 Rx data path into two, one is for basic, the other one can support additional Rx offload features, including Rx checksum offload, Rx vlan offload, RSS offload. Signed-off-by: Leyi Rong Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c| 50 +++- drivers/net/ice

[dpdk-dev] [PATCH v2] net/i40e: add Tx preparation for simple Tx data path

2021-04-19 Thread Leyi Rong
Introduce i40e_simple_prep_pkts() as the preparation function for simple Tx data path, as it's for sanity check for simple Tx. Suggested-by: Konstantin Ananyev Signed-off-by: Leyi Rong --- drivers/net/i40e/i40e_rxtx.c | 42 +++- drivers/net/i40e/i40e_rxtx.h

[dpdk-dev] [PATCH v3] net/i40e: add Tx preparation for simple Tx data path

2021-04-19 Thread Leyi Rong
Introduce i40e_simple_prep_pkts() as the preparation function for simple Tx data path, as it's for sanity check for simple Tx. Suggested-by: Konstantin Ananyev Signed-off-by: Leyi Rong --- drivers/net/i40e/i40e_rxtx.c | 39 +++- drivers/net/i40e/i40e_rxtx.h

[dpdk-dev] [PATCH] net/iavf: fix VLAN tag extraction handling in AVX512 path

2021-04-21 Thread Leyi Rong
: 9c9aa0040344 ("net/iavf: add offload path for Rx AVX512 flex descriptor") Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx_vec_avx512.c | 215 +++- 1 file changed, 174 insertions(+), 41 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_avx512.c b/driver

[dpdk-dev] [PATCH] net/i40e: add Tx preparation for vector data path

2021-03-31 Thread Leyi Rong
Fill up dev->tx_pkt_prepare to i40e_pkt_prepare when on vector and simple data path selection, as the sanity check is needed ideally. Signed-off-by: Leyi Rong --- drivers/net/i40e/i40e_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/i40e/i40e_rxtx.

[dpdk-dev] [PATCH v2 0/2] add alternative AVX512 offload path

2021-03-31 Thread Leyi Rong
Add alternative Rx/Tx offload path for AVX512, which can support Rx/Tx offload features, like checksum/vlan/RSS/QinQ offload. --- v2: - add "do_offload" parameter to according functions for reducing code duplication. Leyi Rong (2): net/ice: add Tx AVX512 offload path net/ice: add

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

2021-03-31 Thread Leyi Rong
Add alternative Tx data path for AVX512 which can support partial Tx offload features, including Tx checksum offload, vlan/QinQ insertion offload. Signed-off-by: Leyi Rong Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c| 27 +-- drivers/net/ice/ice_rxtx.h

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

2021-03-31 Thread Leyi Rong
Split AVX512 Rx data path into two, one is for basic, the other one can support additional Rx offload features, including Rx checksum offload, Rx vlan offload, RSS offload. Signed-off-by: Leyi Rong Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c| 46 +++- drivers/net/ice

[dpdk-dev] [PATCH v3 0/2] add alternative AVX512 offload path

2021-04-11 Thread Leyi Rong
fload" parameter to according functions for reducing code duplication. Leyi Rong (2): net/ice: add Tx AVX512 offload path net/ice: add Rx AVX512 offload path drivers/net/ice/ice_rxtx.c| 78 +++-- drivers/net/ice/ice_rxtx.h| 10 + drivers/net/ice/ice_rxtx_

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

2021-04-11 Thread Leyi Rong
Add alternative Tx data path for AVX512 which can support partial Tx offload features, including Tx checksum offload, vlan/QinQ insertion offload. Signed-off-by: Leyi Rong Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c| 28 +-- drivers/net/ice/ice_rxtx.h

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

2021-04-11 Thread Leyi Rong
Split AVX512 Rx data path into two, one is for basic, the other one can support additional Rx offload features, including Rx checksum offload, Rx vlan offload, RSS offload. Signed-off-by: Leyi Rong Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c| 50 +++- drivers/net/ice

[dpdk-dev] [PATCH v2 0/2] fix generic build error on FreeBSD

2021-10-18 Thread Leyi Rong
This patchset fix FreeBSD build error reported by https://bugs.dpdk.org/show_bug.cgi?id=788. Also splitting AVX-specific code into new xxx_common_avx.h header file. --- v2: - Decouple i40e_rxtx_common_avx.h/ice_rxtx_common_avx.h from i40e_rxtx_vec_common.h/ice_rxtx_vec_common.h Leyi Rong (2

[dpdk-dev] [PATCH v2 1/2] net/i40e: fix generic build on FreeBSD

2021-10-18 Thread Leyi Rong
i40e: fix crash in AVX512") Cc: wenzhuo...@intel.com Cc: sta...@dpdk.org Signed-off-by: Leyi Rong Signed-off-by: Bruce Richardson --- drivers/net/i40e/i40e_rxtx_common_avx.h | 214 drivers/net/i40e/i40e_rxtx_vec_avx2.c | 1 + drivers/net/i40e/i40e_rxtx_vec_avx5

[dpdk-dev] [PATCH v2 2/2] net/ice: fix generic build on FreeBSD

2021-10-18 Thread Leyi Rong
ice: optimize Tx by using AVX512") Fixes: 20daa1c978b7 ("net/ice: fix crash in AVX512") Cc: wenzhuo...@intel.com Cc: leyi.r...@intel.com Cc: sta...@dpdk.org Signed-off-by: Leyi Rong Signed-off-by: Bruce Richardson --- drivers/net/ice/ice_rxtx_common_avx.h | 213 +

[RFC,0/2] introduce NitroSketch Mode into membership library

2022-06-01 Thread Leyi Rong
This patchset introduce a brand new NitroSketch Mode into membership library. This algorithm provides high-fidelity approximate measurements and appears as a promissing alternative to triditional approches such as packet sampling. Leyi Rong (2): member: implement NitroSketch mode test/member

[RFC,1/2] member: implement NitroSketch mode

2022-06-01 Thread Leyi Rong
Braverman, Roy Friedman, Vyas Sekar, "NitroSketch: Robust and General Sketch-based Monitoring in Software Switches", in ACM SIGCOMM 2019. Signed-off-by: Alan Liu Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- lib/member/meson.build| 35 +- lib/member/rt

[RFC,2/2] test/member: add functional and perf tests for sketch

2022-06-01 Thread Leyi Rong
This patch adds functional and performance tests for sketch mode of membership library. Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- app/test/test_member.c | 258 app/test/test_member_perf.c | 153 - 2 files changed, 407

[dpdk-dev] [PATCH] net/i40e: fix mingw build error

2021-01-26 Thread Leyi Rong
Disable i40e avx512 code path for windows build to avoid the mingw build error. Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Signed-off-by: Leyi Rong --- config/x86/cross-mingw | 3 +++ drivers/net/i40e/meson.build | 2 +- 2 files changed, 4 insertions(+), 1 deletio

[dpdk-dev] [PATCH v2 0/2] fix mingw build error

2021-01-27 Thread Leyi Rong
This patchset fix mingw build error when avx512 is introduced. Leyi Rong (2): config: disable avx512 on mingw cross build net/i40e: fix mingw build error config/x86/cross-mingw | 3 +++ drivers/net/i40e/meson.build | 26 ++ 2 files changed, 17 insertions

[dpdk-dev] [PATCH v2 1/2] config: disable avx512 on mingw cross build

2021-01-27 Thread Leyi Rong
Disable avx512 when on mingw cross build, as .seh_savexmm build error reports if avx512 is enabled. Signed-off-by: Leyi Rong --- config/x86/cross-mingw | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/x86/cross-mingw b/config/x86/cross-mingw index 4c15a7fa2e..48a82b457e 100644

[dpdk-dev] [PATCH v2 2/2] net/i40e: fix mingw build error

2021-01-27 Thread Leyi Rong
Disable i40e avx512 code path for windows build to avoid the mingw build error. Fixes: e6a6a138919f ("net/i40e: add AVX512 vector path") Signed-off-by: Leyi Rong --- drivers/net/i40e/meson.build | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) di

[dpdk-dev] [PATCH v3 0/2] fix mingw build error

2021-01-27 Thread Leyi Rong
This patchset fix mingw build error when avx512 is introduced. --- v2: - Set i40e_avx512_cc_support to false to avoid the build error under windows with mingw. Leyi Rong (2): config: disable avx512 on mingw cross build net/i40e: fix mingw build error config/x86/cross-mingw | 3

[dpdk-dev] [PATCH v3 1/2] config: disable avx512 on mingw cross build

2021-01-27 Thread Leyi Rong
Disable avx512 when on mingw cross build, as .seh_savexmm build error reports if avx512 is enabled. Signed-off-by: Leyi Rong --- config/x86/cross-mingw | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/x86/cross-mingw b/config/x86/cross-mingw index 4c15a7fa2e..48a82b457e 100644

[dpdk-dev] [PATCH v3 2/2] net/i40e: fix mingw build error

2021-01-27 Thread Leyi Rong
Disable i40e avx512 code path for windows build to avoid the mingw build error. Signed-off-by: Leyi Rong --- drivers/net/i40e/meson.build | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index c0acdf4fd4..f5fc5a17e0 100644 --- a

[dpdk-dev] [PATCH] net/i40e: disable AVX512 with MinGW

2021-02-02 Thread Leyi Rong
Disable i40e AVX512 code path for Windows build regardless of CPU capability to avoid the MinGW build error: Error: invalid register for .seh_savexmm Signed-off-by: Leyi Rong --- drivers/net/i40e/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e

[dpdk-dev] [PATCH v2] net/i40e: fix avx code error on MinGW

2021-02-02 Thread Leyi Rong
Adds extra cflags '-fno-asynchronous-unwind-tables' to avoid the MinGW build error: Error: invalid register for .seh_savexmm Fixes: 5c38c33f7880 ("net/i40e: disable AVX512 with MinGW") Signed-off-by: Leyi Rong --- drivers/net/i40e/meson.build | 8 1 file c

[dpdk-dev] [PATCH] net/iavf: fix the VLAN tag extraction handling

2021-02-22 Thread Leyi Rong
VLAN capabilities") Signed-off-by: Haiyue Wang Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c | 62 + drivers/net/iavf/iavf_rxtx.h | 3 + drivers/net/iavf/iavf_rxtx_vec_avx2.c | 179 -- 3 files changed, 182 insertions(+), 62 deletion

[PATCH] eal/x86: remove redundant round to improve performance

2023-03-29 Thread Leyi Rong
In rte_memcpy_aligned(), one redundant round is taken in the 64 bytes block copy loops if the size is a multiple of 64. So, let the catch-up copy the last 64 bytes in this case. Suggested-by: Morten Brørup Signed-off-by: Leyi Rong --- lib/eal/x86/include/rte_memcpy.h | 2 +- 1 file changed, 1

[PATCH v3 0/2] introduce NitroSketch Mode into membership library

2022-09-14 Thread Leyi Rong
ental": rte_member_add_byte_count() rte_member_query_count() rte_member_report_heavyhitter() - meson build file rework for potential runtime issue. v2: - attach paper link to commit log. - fix potential memory leaks in test_member.c. - build error fix according to CI build fail log.

[PATCH v3 1/2] member: implement NitroSketch mode

2022-09-14 Thread Leyi Rong
Braverman, Roy Friedman, Vyas Sekar, "NitroSketch: Robust and General Sketch-based Monitoring in Software Switches", in ACM SIGCOMM 2019. https://dl.acm.org/doi/pdf/10.1145/3341302.3342076 Signed-off-by: Alan Liu Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- lib/member/m

[PATCH v3 2/2] test/member: add functional and perf tests for sketch

2022-09-14 Thread Leyi Rong
This patch adds functional and performance tests for sketch mode of membership library. Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- app/test/test_member.c | 272 app/test/test_member_perf.c | 153 +++- 2 files changed, 421

[PATCH v4 0/2] introduce NitroSketch Mode into membership library

2022-09-15 Thread Leyi Rong
t_member.c. - build error fix according to CI build fail log. Leyi Rong (2): member: implement NitroSketch mode test/member: add functional and perf tests for sketch app/test/test_member.c| 272 app/test/test_member_perf.c | 153 ++- lib/member/m

[PATCH v4 1/2] member: implement NitroSketch mode

2022-09-15 Thread Leyi Rong
Braverman, Roy Friedman, Vyas Sekar, "NitroSketch: Robust and General Sketch-based Monitoring in Software Switches", in ACM SIGCOMM 2019. https://dl.acm.org/doi/pdf/10.1145/3341302.3342076 Signed-off-by: Alan Liu Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- lib/member/m

[PATCH v4 2/2] test/member: add functional and perf tests for sketch

2022-09-15 Thread Leyi Rong
This patch adds functional and performance tests for sketch mode of membership library. Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- app/test/test_member.c | 272 app/test/test_member_perf.c | 153 +++- 2 files changed, 421

[PATCH v5 0/2] introduce NitroSketch Mode into membership library

2022-09-15 Thread Leyi Rong
potential memory leaks in test_member.c. - build error fix according to CI build fail log. Leyi Rong (2): member: implement NitroSketch mode test/member: add functional and perf tests for sketch app/test/test_member.c| 272 app/test/test_member_perf.c

[PATCH v5 1/2] member: implement NitroSketch mode

2022-09-15 Thread Leyi Rong
Braverman, Roy Friedman, Vyas Sekar, "NitroSketch: Robust and General Sketch-based Monitoring in Software Switches", in ACM SIGCOMM 2019. https://dl.acm.org/doi/pdf/10.1145/3341302.3342076 Signed-off-by: Alan Liu Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- lib/member/m

[PATCH v5 2/2] test/member: add functional and perf tests for sketch

2022-09-15 Thread Leyi Rong
This patch adds functional and performance tests for sketch mode of membership library. Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- app/test/test_member.c | 272 app/test/test_member_perf.c | 153 +++- 2 files changed, 421

[dpdk-dev] [PATCH 1/2] net/i40e: fix generic build on FreeBSD

2021-09-29 Thread Leyi Rong
i40e: fix crash in AVX512") Cc: wenzhuo...@intel.com Cc: sta...@dpdk.org Signed-off-by: Leyi Rong Signed-off-by: Bruce Richardson --- drivers/net/i40e/i40e_rxtx_common_avx.h | 214 drivers/net/i40e/i40e_rxtx_vec_common.h | 200 +- 2 files c

[dpdk-dev] [PATCH 2/2] net/ice: fix generic build on FreeBSD

2021-09-29 Thread Leyi Rong
ice: optimize Tx by using AVX512") Fixes: 20daa1c978b7 ("net/ice: fix crash in AVX512") Cc: wenzhuo...@intel.com Cc: leyi.r...@intel.com Cc: sta...@dpdk.org Signed-off-by: Leyi Rong Signed-off-by: Bruce Richardson --- drivers/net/ice/ice_rxtx_common_avx.h | 213 +++

[PATCH] member: fix build failure with GCC 5.4.0

2022-10-10 Thread Leyi Rong
This patch fixes the build failure by typecasting to match _mm512_i32gather_epi64() definition. Bugzilla ID: 1096 Fixes: db354bd2e1f8 ("member: add NitroSketch mode") Signed-off-by: Leyi Rong --- lib/member/rte_member_sketch_avx512.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH] test/member: fix incorrect expression

2022-10-12 Thread Leyi Rong
Fix incorrect expression by cast division operand to type double to match ceil() and fabs() definitions. Coverity issue: 381398, 381401, 381402 Fixes: db354bd2e1f8 ("member: add NitroSketch mode") Signed-off-by: Leyi Rong --- app/test/test_member.c | 16

[dpdk-dev] [PATCH 0/2] add alternative AVX512 offload path

2021-03-17 Thread Leyi Rong
Add alternative Rx/Tx offload path for AVX512, which can support Rx/Tx offload features, like checksum/vlan/RSS/QinQ offload. Leyi Rong (2): net/ice: add Tx AVX512 offload path net/ice: add Rx AVX512 offload path drivers/net/ice/ice_rxtx.c| 73 ++- drivers/net/ice/ice_rxtx.h

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

2021-03-17 Thread Leyi Rong
Add alternative Tx data path for AVX512 which can support partial Tx offload features, including Tx checksum offload, vlan/QinQ insertion offload. Signed-off-by: Leyi Rong Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c| 27 - drivers/net/ice/ice_rxtx.h

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

2021-03-17 Thread Leyi Rong
Split AVX512 Rx data path into two, one is for basic, the other one can support additional Rx offload features, including Rx checksum offload, Rx vlan offload, RSS offload. Signed-off-by: Leyi Rong Signed-off-by: Wenzhuo Lu --- drivers/net/ice/ice_rxtx.c| 46 ++- drivers/net/ice

[dpdk-dev] [PATCH] net/iavf: fix pkt len parsing in AVX512

2021-03-17 Thread Leyi Rong
Fix pkt_len parsing when DEV_RX_OFFLOAD_KEEP_CRC is set in AVX512 path. Fixes: 31737f2b66fb ("net/iavf: enable AVX512 for legacy Rx") Fixes: 6df587028e57 ("net/iavf: enable AVX512 for flexible Rx") Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx_vec_avx512.c

[PATCH 0/2] introduce NitroSketch Mode into membership library

2022-08-10 Thread Leyi Rong
This patchset introduce a brand new NitroSketch Mode into membership library. This algorithm provides high-fidelity approximate measurements and appears as a promissing alternative to triditional approches such as packet sampling. Leyi Rong (2): member: implement NitroSketch mode test/member

[PATCH 1/2] member: implement NitroSketch mode

2022-08-10 Thread Leyi Rong
Braverman, Roy Friedman, Vyas Sekar, "NitroSketch: Robust and General Sketch-based Monitoring in Software Switches", in ACM SIGCOMM 2019. Signed-off-by: Alan Liu Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- lib/member/meson.build| 37 +- lib/member/rt

[PATCH 2/2] test/member: add functional and perf tests for sketch

2022-08-10 Thread Leyi Rong
This patch adds functional and performance tests for sketch mode of membership library. Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- app/test/test_member.c | 258 app/test/test_member_perf.c | 153 - 2 files changed, 407

[PATCH v2 0/2] introduce NitroSketch Mode into membership library

2022-08-30 Thread Leyi Rong
leaks in test_member.c. - build error fix according to CI build fail log. Leyi Rong (2): member: implement NitroSketch mode test/member: add functional and perf tests for sketch app/test/test_member.c| 272 app/test/test_member_perf.c | 153 ++- lib

[PATCH v2 1/2] member: implement NitroSketch mode

2022-08-30 Thread Leyi Rong
Braverman, Roy Friedman, Vyas Sekar, "NitroSketch: Robust and General Sketch-based Monitoring in Software Switches", in ACM SIGCOMM 2019. https://dl.acm.org/doi/pdf/10.1145/3341302.3342076 Signed-off-by: Alan Liu Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- lib/member/m

[PATCH v2 2/2] test/member: add functional and perf tests for sketch

2022-08-30 Thread Leyi Rong
This patch adds functional and performance tests for sketch mode of membership library. Signed-off-by: Yipeng Wang Signed-off-by: Leyi Rong --- app/test/test_member.c | 272 app/test/test_member_perf.c | 153 +++- 2 files changed, 421

[PATCH] net/iavf: fix potential out of bounds access

2022-03-07 Thread Leyi Rong
.@dpdk.org Signed-off-by: Leyi Rong --- 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 cb779879cb..16e8d021f9 100644 --- a/drivers/net/iavf/iavf_rxtx.c +++ b/drivers/net/iavf/iav

[dpdk-dev] [PATCH] net/ice: add AVX512BW flag check both in build and runtime

2020-10-27 Thread Leyi Rong
Intrinsic function __mm512_bsrli_epi128 should be used in the environment which supports AVX512BW, so adds check for this flag. Fixes: 5dd3b8f3af34 ("net/ice: add AVX512 vector path") Signed-off-by: Leyi Rong --- drivers/net/ice/ice_rxtx.c | 12 ++-- drivers/net/ice/meson.

[dpdk-dev] [PATCH] examples/l3fwd: enable multiple Tx queues on a lcore

2020-11-01 Thread Leyi Rong
This patch enable multiple Tx queues handling on a lcore. Signed-off-by: Leyi Rong --- examples/l3fwd/l3fwd_common.h| 6 ++--- examples/l3fwd/l3fwd_em.c| 2 +- examples/l3fwd/l3fwd_em_hlm.h| 4 ++-- examples/l3fwd/l3fwd_em_sequential.h | 5 +++-- examples/l3fwd

[dpdk-dev] [PATCH] examples/l3fwd: enable multiple Tx queues on a lcore

2020-11-02 Thread Leyi Rong
This patch enable multiple Tx queues handling on a lcore. Signed-off-by: Leyi Rong --- examples/l3fwd/l3fwd_common.h| 6 ++--- examples/l3fwd/l3fwd_em.c| 2 +- examples/l3fwd/l3fwd_em_hlm.h| 4 ++-- examples/l3fwd/l3fwd_em_sequential.h | 5 +++-- examples/l3fwd

[dpdk-dev] [PATCH] net/ice: fix firmware-version in the drvinfo result of ethtool

2019-01-09 Thread Leyi Rong
Fix the drvinfo dumped firmware-version when using dpdk ethtool, change it to the same result as linux ethtool shown info. Fixes: e31cb9a36298 ("net/ice: support FW version getting") Signed-off-by: Leyi Rong --- drivers/net/ice/ice_ethdev.c | 17 ++--- 1 file changed, 14

[dpdk-dev] [PATCH 2/2] doc: rename avf to iavf

2019-02-21 Thread Leyi Rong
This patch renames avf to iavf only for the doc files. Signed-off-by: Leyi Rong --- MAINTAINERS| 6 +++--- doc/guides/nics/features/{avf.ini => iavf.ini} | 2 +- .../nics/features/{avf_vec.ini => iavf_vec.ini}| 2 +- doc/guide

[dpdk-dev] [PATCH v2 0/3] rename avf to iavf

2019-02-25 Thread Leyi Rong
Leyi Rong (3): net/iavf: rename avf to iavf net/iavf: rename remaining avf strings doc: rename avf to iavf MAINTAINERS |6 +- config/common_base| 16 +- .../nics/features/{avf.ini => iavf.ini} |2 +- .../featu

[dpdk-dev] [PATCH v2 3/3] doc: rename avf to iavf

2019-02-25 Thread Leyi Rong
This patch renames avf to iavf only for the doc files. Signed-off-by: Leyi Rong --- MAINTAINERS| 6 +++--- doc/guides/nics/features/{avf.ini => iavf.ini} | 2 +- .../nics/features/{avf_vec.ini => iavf_vec.ini}| 2 +- doc/guide

[dpdk-dev] [PATCH v2 1/3] net/iavf: rename avf to iavf

2019-02-25 Thread Leyi Rong
Rename Intel Ethernet Adaptive Virtual Function driver avf to iavf. This is the first patch which will only renames the directory name, lib name, filenames and updates the new name in makefile and meson files. Also updates the #include files in source files. Signed-off-by: Leyi Rong

[dpdk-dev] [PATCH] doc: update release notes for iavf renaming

2019-02-26 Thread Leyi Rong
Update DPDK 19.05 release notes for iavf renaming. Signed-off-by: Leyi Rong --- doc/guides/rel_notes/release_19_05.rst | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/guides/rel_notes/release_19_05.rst b/doc/guides/rel_notes/release_19_05.rst index c0390ca16

[dpdk-dev] [PATCH] net/ice: speed up to retrieve EEPROM

2019-03-17 Thread Leyi Rong
Replace ice_read_sr_word with ice_read_sr_buf in ice_get_eeprom. Fixes: d0dd1c8e1997 ("net/ice: support EEPROM information getting") Signed-off-by: Leyi Rong --- drivers/net/ice/ice_ethdev.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git

[dpdk-dev] [PATCH v5 02/11] net/iavf: return error if opcode is mismatched

2020-04-16 Thread Leyi Rong
Adds error return when the opcode of read message is mismatched which is received from adminQ. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_vchnl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index

[dpdk-dev] [PATCH v5 00/11] framework for advanced iAVF PMD

2020-04-16 Thread Leyi Rong
using GCC compile option -O0. Leyi Rong (11): net/iavf: flexible Rx descriptor definitions net/iavf: return error if opcode is mismatched net/iavf: flexible Rx descriptor support in normal path net/iavf: flexible Rx descriptor support in AVX path net/iavf: flexible Rx descriptor support in S

[dpdk-dev] [PATCH v5 01/11] net/iavf: flexible Rx descriptor definitions

2020-04-16 Thread Leyi Rong
Add definitions for flexible Rx descriptor structures and macros. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.h | 200 +++ 1 file changed, 200 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h index 09b5bd99e

[dpdk-dev] [PATCH v5 03/11] net/iavf: flexible Rx descriptor support in normal path

2020-04-16 Thread Leyi Rong
Support flexible Rx descriptor format in normal path of iAVF PMD. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf.h| 2 + drivers/net/iavf/iavf_ethdev.c | 8 + drivers/net/iavf/iavf_rxtx.c | 485 ++--- drivers/net/iavf/iavf_rxtx.h | 9 + drivers

[dpdk-dev] [PATCH v5 04/11] net/iavf: flexible Rx descriptor support in AVX path

2020-04-16 Thread Leyi Rong
Support flexible Rx descriptor format in AVX path of iAVF PMD. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c | 24 +- drivers/net/iavf/iavf_rxtx.h | 6 + drivers/net/iavf/iavf_rxtx_vec_avx2.c | 550 +- 3 files changed, 570 insertions

[dpdk-dev] [PATCH v5 05/11] net/iavf: flexible Rx descriptor support in SSE path

2020-04-16 Thread Leyi Rong
Support flexible Rx descriptor format in SSE path of iAVF PMD. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c | 4 +- drivers/net/iavf/iavf_rxtx.h | 5 + drivers/net/iavf/iavf_rxtx_vec_sse.c | 414 +++ 3 files changed, 421 insertions(+), 2

[dpdk-dev] [PATCH v5 08/11] net/iavf: support flow mark in AVX path

2020-04-16 Thread Leyi Rong
Support Flow Director mark ID parsing from Flex Rx descriptor in AVX path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 72 +-- 1 file changed, 67 insertions(+), 5 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_avx2.c b/drivers/net

[dpdk-dev] [PATCH v5 06/11] net/iavf: add flow director enabled switch value

2020-04-16 Thread Leyi Rong
The commit adds fdir_enabled flag into iavf_rx_queue structure to identify if fdir id is active. Rx data path can be benefit if fdir id parsing is not needed, especially in vector path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf.h | 1 + drivers/net/iavf/iavf_rxtx.h | 30

[dpdk-dev] [PATCH v5 07/11] net/iavf: support flow mark in normal data path

2020-04-16 Thread Leyi Rong
Support Flow Director mark ID parsing in normal path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf.h | 3 +++ drivers/net/iavf/iavf_rxtx.c | 51 +++- 2 files changed, 47 insertions(+), 7 deletions(-) diff --git a/drivers/net/iavf/iavf.h b/drivers/net

[dpdk-dev] [PATCH v5 09/11] net/iavf: support flow mark in SSE path

2020-04-16 Thread Leyi Rong
Support Flow Director mark ID parsing from Flex Rx descriptor in SSE path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx_vec_sse.c | 52 +++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_sse.c b/drivers/net/iavf

[dpdk-dev] [PATCH v5 11/11] net/iavf: add RSS hash parsing in SSE path

2020-04-16 Thread Leyi Rong
Support RSS hash parsing from Flex Rx descriptor in SSE data path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx_vec_sse.c | 88 +++- 1 file changed, 72 insertions(+), 16 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_sse.c b/drivers/net/iavf

[dpdk-dev] [PATCH v5 10/11] net/iavf: add RSS hash parsing in AVX path

2020-04-16 Thread Leyi Rong
Support RSS hash parsing from Flex Rx descriptor in AVX data path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 94 ++- 1 file changed, 92 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_avx2.c b/drivers/net/iavf

[dpdk-dev] [PATCH v6 00/11] framework for advanced iAVF PMD

2020-04-19 Thread Leyi Rong
. - Unfold _mm_extract_epi32(fdir_id0_3, i) to fix build error when using GCC compile option -O0. Leyi Rong (11): net/iavf: flexible Rx descriptor definitions net/iavf: return error if opcode is mismatched net/iavf: flexible Rx descriptor support in normal path net/iavf: flexible Rx descript

[dpdk-dev] [PATCH v6 02/11] net/iavf: return error if opcode is mismatched

2020-04-19 Thread Leyi Rong
Adds error return when the opcode of read message is mismatched which is received from adminQ. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_vchnl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index

[dpdk-dev] [PATCH v6 03/11] net/iavf: flexible Rx descriptor support in normal path

2020-04-19 Thread Leyi Rong
Support flexible Rx descriptor format in normal path of iAVF PMD. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf.h| 2 + drivers/net/iavf/iavf_ethdev.c | 8 + drivers/net/iavf/iavf_rxtx.c | 485 ++--- drivers/net/iavf/iavf_rxtx.h | 9 + drivers

[dpdk-dev] [PATCH v6 04/11] net/iavf: flexible Rx descriptor support in AVX path

2020-04-19 Thread Leyi Rong
Support flexible Rx descriptor format in AVX path of iAVF PMD. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c | 24 +- drivers/net/iavf/iavf_rxtx.h | 6 + drivers/net/iavf/iavf_rxtx_vec_avx2.c | 539 ++ 3 files changed, 563 insertions

[dpdk-dev] [PATCH v6 01/11] net/iavf: flexible Rx descriptor definitions

2020-04-19 Thread Leyi Rong
Add definitions for flexible Rx descriptor structures and macros. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.h | 200 +++ 1 file changed, 200 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h index 09b5bd99e

[dpdk-dev] [PATCH v6 05/11] net/iavf: flexible Rx descriptor support in SSE path

2020-04-19 Thread Leyi Rong
Support flexible Rx descriptor format in SSE path of iAVF PMD. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c | 4 +- drivers/net/iavf/iavf_rxtx.h | 5 + drivers/net/iavf/iavf_rxtx_vec_sse.c | 414 +++ 3 files changed, 421 insertions(+), 2

[dpdk-dev] [PATCH v6 06/11] net/iavf: add flow director enabled switch value

2020-04-19 Thread Leyi Rong
The commit adds fdir_enabled flag into iavf_rx_queue structure to identify if fdir id is active. Rx data path can be benefit if fdir id parsing is not needed, especially in vector path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf.h | 1 + drivers/net/iavf/iavf_rxtx.h | 30

[dpdk-dev] [PATCH v6 08/11] net/iavf: support flow mark in AVX path

2020-04-19 Thread Leyi Rong
Support Flow Director mark ID parsing from Flex Rx descriptor in AVX path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 72 +-- 1 file changed, 67 insertions(+), 5 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_avx2.c b/drivers/net

[dpdk-dev] [PATCH v6 07/11] net/iavf: support flow mark in normal data path

2020-04-19 Thread Leyi Rong
Support Flow Director mark ID parsing in normal path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf.h | 3 +++ drivers/net/iavf/iavf_rxtx.c | 51 +++- 2 files changed, 47 insertions(+), 7 deletions(-) diff --git a/drivers/net/iavf/iavf.h b/drivers/net

[dpdk-dev] [PATCH v6 09/11] net/iavf: support flow mark in SSE path

2020-04-19 Thread Leyi Rong
Support Flow Director mark ID parsing from Flex Rx descriptor in SSE path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx_vec_sse.c | 52 +++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_sse.c b/drivers/net/iavf

[dpdk-dev] [PATCH v6 10/11] net/iavf: add RSS hash parsing in AVX path

2020-04-19 Thread Leyi Rong
Support RSS hash parsing from Flex Rx descriptor in AVX data path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx_vec_avx2.c | 94 ++- 1 file changed, 92 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_avx2.c b/drivers/net/iavf

[dpdk-dev] [PATCH v6 11/11] net/iavf: add RSS hash parsing in SSE path

2020-04-19 Thread Leyi Rong
Support RSS hash parsing from Flex Rx descriptor in SSE data path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx_vec_sse.c | 88 +++- 1 file changed, 72 insertions(+), 16 deletions(-) diff --git a/drivers/net/iavf/iavf_rxtx_vec_sse.c b/drivers/net/iavf

[dpdk-dev] [PATCH] net/iavf: delete unused value

2020-05-11 Thread Leyi Rong
Fix coverity defects of unused value. Coverity issue: 357745, 357769 Fixes: b8b4c54ef9b0 ("net/iavf: support flexible Rx descriptor in normal path") Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/net/iavf/iav

[dpdk-dev] [PATCH] net/iavf: fix FDIR ID parsing issue after queue reconfigured

2020-05-19 Thread Leyi Rong
FDIR ID parsing will not be handled correctly after queue reconfigured, enable FDIR ID parsing per Q regardless of fdir_ref_cnt to fix it. Fixes: f71dbf852d46 ("net/iavf: add flow director enabled switch value") Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.h | 4 ++-- 1 fi

[dpdk-dev] [PATCH v2 00/12] framework for advanced iAVF PMD

2020-03-31 Thread Leyi Rong
flex desc cases. - Move rxq->rxdid assignment from iavf_configure_queues() to iavf_dev_rx_queue_setup(). - Unfold _mm_extract_epi32(fdir_id0_3, i) to fix build error when using GCC compile option -O0. Leyi Rong (12): net/iavf: flexible Rx descriptor definitions net/iavf: return error if o

[dpdk-dev] [PATCH v2 02/12] net/iavf: return error if opcode is mismatched

2020-03-31 Thread Leyi Rong
Adds error return when the opcode of read message is mismatched which is received from adminQ. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_vchnl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/iavf/iavf_vchnl.c b/drivers/net/iavf/iavf_vchnl.c index

[dpdk-dev] [PATCH v2 01/12] net/iavf: flexible Rx descriptor definitions

2020-03-31 Thread Leyi Rong
Add definitions for flexible Rx descriptor structures and macros. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.h | 200 +++ 1 file changed, 200 insertions(+) diff --git a/drivers/net/iavf/iavf_rxtx.h b/drivers/net/iavf/iavf_rxtx.h index 09b5bd99e

[dpdk-dev] [PATCH v2 05/12] net/iavf: flexible Rx descriptor support in AVX path

2020-03-31 Thread Leyi Rong
Support flexible Rx descriptor format in AVX path of iAVF PMD. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf_rxtx.c | 24 +- drivers/net/iavf/iavf_rxtx.h | 6 + drivers/net/iavf/iavf_rxtx_vec_avx2.c | 550 +- 3 files changed, 570 insertions

[dpdk-dev] [PATCH v2 07/12] net/iavf: add flow director enabled switch value

2020-03-31 Thread Leyi Rong
The commit adds fdir_enabled flag into iavf_adapter structure to identify if fdir id is active. Rx data path can be benefit if fdir id parsing is not needed, especially in vector path. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf.h | 1 + drivers/net/iavf/iavf_rxtx.h | 26

[dpdk-dev] [PATCH v2 04/12] net/iavf: flexible Rx descriptor support in normal path

2020-03-31 Thread Leyi Rong
Support flexible Rx descriptor format in normal path of iAVF PMD. Signed-off-by: Leyi Rong --- drivers/net/iavf/iavf.h| 2 + drivers/net/iavf/iavf_ethdev.c | 8 + drivers/net/iavf/iavf_rxtx.c | 481 ++--- drivers/net/iavf/iavf_rxtx.h | 8 + drivers

  1   2   3   4   5   >