[PATCH v5 5/6] net/iavf: support L2TPv2 for AVF HASH

2022-02-09 Thread Jie Wang
Add support for PPP over L2TPv2 over UDP protocol and L2TPv2 protocol RSS hash based on outer MAC src address and L2TPv2 session ID. Patterns are listed below: eth/ipv4/udp/l2tpv2 eth/ipv4/udp/l2tpv2/ppp eth/ipv6/udp/l2tpv2 eth/ipv6/udp/l2tpv2/ppp Signed-off-by: Jie Wang --- doc/guides

[PATCH v5 4/6] common/iavf: add session ID fields for L2TPv2

2022-02-09 Thread Jie Wang
Add virtchnl fields session ID of L2TPv2 for AVF HASH. Signed-off-by: Jie Wang --- drivers/common/iavf/virtchnl.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/common/iavf/virtchnl.h b/drivers/common/iavf/virtchnl.h index 80e754a1b2..3e44eca7d8 100644 --- a/drivers/common/iavf

[PATCH v5 6/6] net/iavf: support L2TPv2 for AVF FDIR

2022-02-09 Thread Jie Wang
/ppp eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6) eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6)/udp eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6)/tcp Signed-off-by: Jie Wang --- doc/guides/rel_notes/release_22_03.rst | 4 + drivers/net/iavf/iavf_fdir.c | 169 + drivers/net/iavf

[PATCH 0/2] support L2TPv2 for AVF RSS hash and FDIR

2022-02-10 Thread Jie Wang
. Jie Wang (2): net/iavf: support L2TPv2 for AVF HASH net/iavf: support L2TPv2 for AVF FDIR doc/guides/rel_notes/release_22_03.rst | 9 ++ drivers/net/iavf/iavf.h| 2 + drivers/net/iavf/iavf_fdir.c | 169 + drivers/net/iavf

[PATCH 1/2] net/iavf: support L2TPv2 for AVF HASH

2022-02-10 Thread Jie Wang
Add support for PPP over L2TPv2 over UDP protocol and L2TPv2 protocol RSS hash based on outer MAC src/dst address and L2TPv2 session ID. Patterns are listed below: eth/ipv4/udp/l2tpv2 eth/ipv4/udp/l2tpv2/ppp eth/ipv6/udp/l2tpv2 eth/ipv6/udp/l2tpv2/ppp Signed-off-by: Jie Wang --- doc/guides

[PATCH 2/2] net/iavf: support L2TPv2 for AVF FDIR

2022-02-10 Thread Jie Wang
/l2tpv2/ppp eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6) eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6)/udp eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6)/tcp Signed-off-by: Jie Wang --- doc/guides/rel_notes/release_22_03.rst | 4 + drivers/net/iavf/iavf_fdir.c | 169 + drivers/net/iavf

[PATCH v2 0/2] support L2TPv2 for AVF RSS hash and FDIR

2022-02-10 Thread Jie Wang
. --- v2: upadte release notes. Jie Wang (2): net/iavf: support L2TPv2 for AVF HASH net/iavf: support L2TPv2 for AVF FDIR doc/guides/rel_notes/release_22_03.rst | 9 ++ doc/guides/rel_notes/release_22_03.rst.rej | 12 ++ drivers/net/iavf/iavf.h| 2 + drivers/net

[PATCH v2 1/2] net/iavf: support L2TPv2 for AVF HASH

2022-02-10 Thread Jie Wang
Add support for PPP over L2TPv2 over UDP protocol and L2TPv2 protocol RSS hash based on outer MAC src/dst address and L2TPv2 session ID. Patterns are listed below: eth/ipv4/udp/l2tpv2 eth/ipv4/udp/l2tpv2/ppp eth/ipv6/udp/l2tpv2 eth/ipv6/udp/l2tpv2/ppp Signed-off-by: Jie Wang --- doc/guides

[PATCH v2 2/2] net/iavf: support L2TPv2 for AVF FDIR

2022-02-10 Thread Jie Wang
/l2tpv2/ppp eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6) eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6)/udp eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6)/tcp Signed-off-by: Jie Wang --- doc/guides/rel_notes/release_22_03.rst | 4 + doc/guides/rel_notes/release_22_03.rst.rej | 12 ++ drivers/net/iavf/iavf_fdir.c

[PATCH v3 0/2] support L2TPv2 for AVF RSS and FDIR

2022-02-11 Thread Jie Wang
Support L2TPv2(include PPP over L2tpv2) for AVF RSS and FDIR based on outer MAC src/dst address and L2TPv2 session ID. Support PPPoL2TPv2oUDP for AVF FDIR based on inner IP src/dst address and TCP/UDP src/dst port. --- v3: update commit log and release notes. v2: upadte release notes. Jie Wang

[PATCH v3 1/2] net/iavf: support L2TPv2 for AVF RSS

2022-02-11 Thread Jie Wang
Add support for L2TPv2(include PPP over L2TPv2) protocols RSS based on outer MAC src/dst address and L2TPv2 session ID. Patterns are listed below: eth/ipv4/udp/l2tpv2 eth/ipv4/udp/l2tpv2/ppp eth/ipv6/udp/l2tpv2 eth/ipv6/udp/l2tpv2/ppp Signed-off-by: Jie Wang --- doc/guides/rel_notes

[PATCH v3 2/2] net/iavf: support L2TPv2 for AVF FDIR

2022-02-11 Thread Jie Wang
/l2tpv2/ppp eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6) eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6)/udp eth/ipv4(6)/udp/l2tpv2/ppp/ipv4(6)/tcp Signed-off-by: Jie Wang --- doc/guides/rel_notes/release_22_03.rst | 4 + drivers/net/iavf/iavf_fdir.c | 169 + drivers/net/iavf

[dpdk-dev] [PATCH v12 0/2] testpmd shows incorrect rx_offload configuration

2021-10-11 Thread Jie Wang
ace at the end of the line. v3: - check and update the "offloads" of "port->dev_conf.rx/txmode". - update the commit log. v2: copy "rx/txmode.offloads", instead of copying the entire struct "dev->data->dev_conf.rx/txmode". Jie Wang (2): ethdev: add an

[dpdk-dev] [PATCH v12 1/2] ethdev: add an API to get device configuration

2021-10-11 Thread Jie Wang
The driver may change offloads info into dev->data->dev_conf in dev_configure which may cause apps use outdated values. Add a new API to get actual device configuration. Signed-off-by: Jie Wang --- doc/guides/rel_notes/release_21_11.rst | 4 lib/ethdev/rte_ethdev.c

[dpdk-dev] [PATCH v12 2/2] app/testpmd: fix testpmd doesn't show RSS hash offload

2021-10-11 Thread Jie Wang
guration settings") Signed-off-by: Jie Wang --- app/test-pmd/cmdline.c | 14 -- app/test-pmd/testpmd.c | 33 + app/test-pmd/testpmd.h | 2 ++ app/test-pmd/util.c| 14 ++ 4 files changed, 61 insertions(+), 2 deletions(-) diff --git a/ap

[dpdk-dev] [PATCH v2 0/3] support PPPoL2TPv2oUDP RSS Hash

2021-10-12 Thread Jie Wang
Support IAVF PPPoL2TPv2oUDP RSS Hash. Required to distribute packets based on inner IP src+dest address and TCP/UDP src+dest port. --- v2: * update the rte_flow.rst and release notes. * update l2tpv2 header format. Jie Wang (3): net/iavf: support PPPoL2TPv2oUDP RSS Hash app/testpmd

[dpdk-dev] [PATCH v2 1/3] net/iavf: support PPPoL2TPv2oUDP RSS Hash

2021-10-12 Thread Jie Wang
-by: Jie Wang --- drivers/net/iavf/iavf_generic_flow.c | 131 +++ drivers/net/iavf/iavf_generic_flow.h | 15 +++ drivers/net/iavf/iavf_hash.c | 108 +- 3 files changed, 252 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf

[dpdk-dev] [PATCH v2 2/3] app/testpmd: support PPPoL2TPv2oUDP RSS Hash

2021-10-12 Thread Jie Wang
Add support for test-pmd to parse protocol pattern L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- app/test-pmd/cmdline_flow.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c

[dpdk-dev] [PATCH v2 3/3] ethdev: support PPPoL2TPv2oUDP RSS Hash

2021-10-12 Thread Jie Wang
Added flow pattern items and header formats of L2TPv2 and PPP to support PPP over L2TPv2 over UDP protocol RSS Hash. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 5 + lib/ethdev/rte_flow.c

[dpdk-dev] [PATCH v4 01/12] lib: build libraries that some tests depend on

2021-10-13 Thread Jie Zhou
Enable building subset of libraries that tests depend on for Windows Signed-off-by: Jie Zhou --- lib/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/meson.build b/lib/meson.build index b2ba7258d8..bd6c27deef 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -82,9

[dpdk-dev] [PATCH v4 02/12] eal/windows: return ENOTSUP for not supported API

2021-10-13 Thread Jie Zhou
. Signed-off-by: Jie Zhou Acked-by: Dmitry Kozlyuk --- lib/eal/windows/eal_memalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c index 4459d59b1a..fffdd5b976 100644 --- a/lib/eal/windows/eal_memalloc.c

[dpdk-dev] [PATCH v4 03/12] app/test: remove unnecessary headers

2021-10-13 Thread Jie Zhou
Remove unnecessary header inclusion Signed-off-by: Jie Zhou --- app/test/commands.c | 2 -- app/test/test.c | 1 - app/test/test_cmdline_lib.c | 1 - 3 files changed, 4 deletions(-) diff --git a/app/test/commands.c b/app/test/commands.c index 76f6ee5d23..82bd8bf474 100644

[dpdk-dev] [PATCH v4 04/12] app/test: replace POSIX specific code

2021-10-13 Thread Jie Zhou
- Include rte_os_shim.h - Replace sleep and usleep with rte_delay_us_sleep - #ifndef RTE_EXEC_ENV_WINDOWS for POSIX code only Signed-off-by: Jie Zhou --- app/test/packet_burst_generator.c | 1 + app/test/process.h| 4 +++- app/test/test.c | 4 app/test

[dpdk-dev] [PATCH v4 00/12] app/test: enable subset of tests on Windows

2021-10-13 Thread Jie Zhou
us patch#2 (Enable mempool/stack on Windows) from this patchset as it was separated out and merged as patch-19314. - Consolidate the source files, deps, tests lists across platforms as much as possible. Jie Zhou (12): lib: build libraries that some tests depend on eal/windo

[dpdk-dev] [PATCH v4 05/12] app/test: exclude ENOTSUP as failure

2021-10-13 Thread Jie Zhou
Check rte_errno to exclude ENOTSUP as failures in test_memory.c Signed-off-by: Jie Zhou --- app/test/test_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_memory.c b/app/test/test_memory.c index dbf6871e71..379b0f99ca 100644 --- a/app/test

[dpdk-dev] [PATCH v4 06/12] app/test: skip interrupt tests on Windows

2021-10-13 Thread Jie Zhou
Even though test_interrupts.c can compile on Windows, skip interrupt tests for now since majority of eal_interrupt on Windows are stubs. Will remove the skip after interrupt being fully enabled on Windows. Signed-off-by: Jie Zhou --- app/test/test_interrupts.c | 10 ++ 1 file changed

[dpdk-dev] [PATCH v4 07/12] app/test: temporarily "skip" one cmdline test case

2021-10-13 Thread Jie Zhou
ned-off-by: Jie Zhou --- app/test/test_cmdline_lib.c | 4 1 file changed, 4 insertions(+) diff --git a/app/test/test_cmdline_lib.c b/app/test/test_cmdline_lib.c index 86a5b78d70..1ff5c0d7e6 100644 --- a/app/test/test_cmdline_lib.c +++ b/app/test/test_cmdline_lib.c @@ -14

[dpdk-dev] [PATCH v4 08/12] app/test: skip two logs_autotest cases on Windows

2021-10-13 Thread Jie Zhou
ndef these two test cases, and for the rte_log_set_level_pattern validation case following these two cases, differentiate the expected log level passed into macro CHECK_LEVELS Now logs_autotest completes for all dynamic log types and static log types. Signed-off-by: Jie Zhou --- app/test/test_

[dpdk-dev] [PATCH v4 10/12] app/test: remove two alarm_autotest cases

2021-10-13 Thread Jie Zhou
Remove two alarm_autotest test cases which do bogus range check on Windows. Signed-off-by: Jie Zhou --- app/test/test_alarm.c | 4 1 file changed, 4 insertions(+) diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c index b4034339b8..70e97a3109 100644 --- a/app/test/test_alarm.c

[dpdk-dev] [PATCH v4 09/12] app/test: differentiate a strerror on different OS

2021-10-13 Thread Jie Zhou
On Windows, strerror returns just "Unknown error" for errnum greater than MAX_ERRNO, while linux and freebsd returns "Unknown error ", which is the current expectation for errno_autotest. Differentiate the error string on Windows to remove a "duplicate error code" fai

[dpdk-dev] [PATCH v4 11/12] app/test: replace .sh scripts with .py scripts

2021-10-13 Thread Jie Zhou
- Add python script to get coremask - Add python script to check if system supports hugepages - Remove two corresponding .sh scripts - Replace calling of .sh with corresponding .py in meson.build Signed-off-by: Jie Zhou --- app/test/get-coremask.sh | 13 - app/test/get_coremask.py

[dpdk-dev] [PATCH v4 12/12] app/test: enable subset of unit tests on Windows

2021-10-13 Thread Jie Zhou
will be enabled by "patch-18949: app/test: enable crypto unit tests on Windows". - For dump tests, currently the tests hang on Windows which require further investigation. Keep the dump test list just for non-Windows for easier tracking. Signed-off-by: Jie Zhou --- app/test/m

[dpdk-dev] [PATCH v5 02/12] eal/windows: return ENOTSUP for not supported API

2021-10-13 Thread Jie Zhou
. Signed-off-by: Jie Zhou Acked-by: Dmitry Kozlyuk --- lib/eal/windows/eal_memalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c index 4459d59b1a..fffdd5b976 100644 --- a/lib/eal/windows/eal_memalloc.c

[dpdk-dev] [PATCH v5 01/12] lib: build libraries that some tests depend on

2021-10-13 Thread Jie Zhou
Enable building subset of libraries that tests depend on for Windows Signed-off-by: Jie Zhou --- lib/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/meson.build b/lib/meson.build index b2ba7258d8..bd6c27deef 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -82,9

[dpdk-dev] [PATCH v5 03/12] app/test: remove unnecessary headers

2021-10-13 Thread Jie Zhou
Remove unnecessary header inclusion Signed-off-by: Jie Zhou --- app/test/commands.c | 2 -- app/test/test.c | 1 - app/test/test_cmdline_lib.c | 1 - 3 files changed, 4 deletions(-) diff --git a/app/test/commands.c b/app/test/commands.c index 76f6ee5d23..82bd8bf474 100644

[dpdk-dev] [PATCH v5 04/12] app/test: replace POSIX specific code

2021-10-13 Thread Jie Zhou
- Include rte_os_shim.h - Replace sleep and usleep with rte_delay_us_sleep - #ifndef RTE_EXEC_ENV_WINDOWS for POSIX code only Signed-off-by: Jie Zhou --- app/test/packet_burst_generator.c | 1 + app/test/process.h| 4 +++- app/test/test.c | 4 app/test

[dpdk-dev] [PATCH v5 00/12] app/test: enable subset of tests on Windows

2021-10-13 Thread Jie Zhou
arenthesis '(' - Add back a header mistakenly deleted Jie Zhou (12): lib: build libraries that some tests depend on eal/windows: return ENOTSUP for not supported API app/test: remove unnecessary headers app/test: replace POSIX specific code app/test: exclude ENOTSUP as failure app/

[dpdk-dev] [PATCH v5 05/12] app/test: exclude ENOTSUP as failure

2021-10-13 Thread Jie Zhou
Check rte_errno to exclude ENOTSUP as failures in test_memory.c Signed-off-by: Jie Zhou --- app/test/test_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_memory.c b/app/test/test_memory.c index dbf6871e71..379b0f99ca 100644 --- a/app/test

[dpdk-dev] [PATCH v5 08/12] app/test: skip two logs_autotest cases on Windows

2021-10-13 Thread Jie Zhou
ndef these two test cases, and for the rte_log_set_level_pattern validation case following these two cases, differentiate the expected log level passed into macro CHECK_LEVELS Now logs_autotest completes for all dynamic log types and static log types. Signed-off-by: Jie Zhou --- app/test/test_

[dpdk-dev] [PATCH v5 06/12] app/test: skip interrupt tests on Windows

2021-10-13 Thread Jie Zhou
Even though test_interrupts.c can compile on Windows, skip interrupt tests for now since majority of eal_interrupt on Windows are stubs. Will remove the skip after interrupt being fully enabled on Windows. Signed-off-by: Jie Zhou --- app/test/test_interrupts.c | 10 ++ 1 file changed

[dpdk-dev] [PATCH v5 10/12] app/test: remove two alarm_autotest cases

2021-10-13 Thread Jie Zhou
Remove two alarm_autotest test cases which do bogus range check on Windows. Signed-off-by: Jie Zhou --- app/test/test_alarm.c | 4 1 file changed, 4 insertions(+) diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c index b4034339b8..70e97a3109 100644 --- a/app/test/test_alarm.c

[dpdk-dev] [PATCH v5 07/12] app/test: temporarily "skip" one cmdline test case

2021-10-13 Thread Jie Zhou
ned-off-by: Jie Zhou --- app/test/test_cmdline_lib.c | 4 1 file changed, 4 insertions(+) diff --git a/app/test/test_cmdline_lib.c b/app/test/test_cmdline_lib.c index 86a5b78d70..1ff5c0d7e6 100644 --- a/app/test/test_cmdline_lib.c +++ b/app/test/test_cmdline_lib.c @@ -14

[dpdk-dev] [PATCH v5 09/12] app/test: differentiate a strerror on different OS

2021-10-13 Thread Jie Zhou
On Windows, strerror returns just "Unknown error" for errnum greater than MAX_ERRNO, while linux and freebsd returns "Unknown error ", which is the current expectation for errno_autotest. Differentiate the error string on Windows to remove a "duplicate error code" fai

[dpdk-dev] [PATCH v5 12/12] app/test: enable subset of unit tests on Windows

2021-10-13 Thread Jie Zhou
will be enabled by "patch-18949: app/test: enable crypto unit tests on Windows". - For dump tests, currently the tests hang on Windows which require further investigation. Keep the dump test list just for non-Windows for easier tracking. Signed-off-by: Jie Zhou --- app/test/m

[dpdk-dev] [PATCH v5 11/12] app/test: replace .sh scripts with .py scripts

2021-10-13 Thread Jie Zhou
- Add python script to get coremask - Add python script to check if system supports hugepages - Remove two corresponding .sh scripts - Replace calling of .sh with corresponding .py in meson.build Signed-off-by: Jie Zhou --- app/test/get-coremask.sh | 13 - app/test/get_coremask.py

[dpdk-dev] [PATCH v13 0/2] testpmd shows incorrect rx_offload configuration

2021-10-14 Thread Jie Wang
is patch into two patches. v5: add an API to get device configuration info. v4: delete the whitespace at the end of the line. v3: - check and update the "offloads" of "port->dev_conf.rx/txmode". - update the commit log. v2: copy "rx/txmode.offloads", instead of co

[dpdk-dev] [PATCH v13 1/2] ethdev: add an API to get device configuration

2021-10-14 Thread Jie Wang
The driver may change offloads info into dev->data->dev_conf in dev_configure which may cause apps use outdated values. Add a new API to get actual device configuration. Acked-by: Andrew Rybchenko Signed-off-by: Jie Wang --- doc/guides/rel_notes/release_21_11.rst | 4 lib/

[dpdk-dev] [PATCH v13 2/2] app/testpmd: fix testpmd doesn't show RSS hash offload

2021-10-14 Thread Jie Wang
guration settings") Signed-off-by: Jie Wang --- app/test-pmd/cmdline.c | 14 ++-- app/test-pmd/testpmd.c | 48 +++--- app/test-pmd/testpmd.h | 2 ++ app/test-pmd/util.c| 14 4 files changed, 73 insertions(+), 5 deletions(-) diff --git a/

[dpdk-dev] [PATCH v6 01/12] lib: build libraries that some tests depend on

2021-10-14 Thread Jie Zhou
Enable building subset of libraries that tests depend on for Windows Signed-off-by: Jie Zhou --- lib/meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/meson.build b/lib/meson.build index b2ba7258d8..bd6c27deef 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -82,9

[dpdk-dev] [PATCH v6 00/12] app/test: enable subset of tests on Windows

2021-10-14 Thread Jie Zhou
arenthesis '(' - Add back a header mistakenly deleted --- V6 changes: - Fix inconsistent static vs. non-static declarations Jie Zhou (12): lib: build libraries that some tests depend on eal/windows: return ENOTSUP for not supported API app/test: remove unnecessary headers app/test: re

[dpdk-dev] [PATCH v6 02/12] eal/windows: return ENOTSUP for not supported API

2021-10-14 Thread Jie Zhou
. Signed-off-by: Jie Zhou Acked-by: Dmitry Kozlyuk --- lib/eal/windows/eal_memalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c index 4459d59b1a..fffdd5b976 100644 --- a/lib/eal/windows/eal_memalloc.c

[dpdk-dev] [PATCH v6 03/12] app/test: remove unnecessary headers

2021-10-14 Thread Jie Zhou
Remove unnecessary header inclusion Signed-off-by: Jie Zhou --- app/test/commands.c | 2 -- app/test/test.c | 1 - app/test/test_cmdline_lib.c | 1 - 3 files changed, 4 deletions(-) diff --git a/app/test/commands.c b/app/test/commands.c index 76f6ee5d23..82bd8bf474 100644

[dpdk-dev] [PATCH v6 04/12] app/test: replace POSIX specific code

2021-10-14 Thread Jie Zhou
- Include rte_os_shim.h - Replace sleep and usleep with rte_delay_us_sleep - #ifndef RTE_EXEC_ENV_WINDOWS for POSIX code only Signed-off-by: Jie Zhou --- app/test/packet_burst_generator.c | 1 + app/test/process.h| 4 +++- app/test/test.c | 4 app/test

[dpdk-dev] [PATCH v6 05/12] app/test: exclude ENOTSUP as failure

2021-10-14 Thread Jie Zhou
Check rte_errno to exclude ENOTSUP as failures in test_memory.c Signed-off-by: Jie Zhou --- app/test/test_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_memory.c b/app/test/test_memory.c index dbf6871e71..379b0f99ca 100644 --- a/app/test

[dpdk-dev] [PATCH v6 06/12] app/test: skip interrupt tests on Windows

2021-10-14 Thread Jie Zhou
Even though test_interrupts.c can compile on Windows, skip interrupt tests for now since majority of eal_interrupt on Windows are stubs. Will remove the skip after interrupt being fully enabled on Windows. Signed-off-by: Jie Zhou --- app/test/test_interrupts.c | 10 ++ 1 file changed

[dpdk-dev] [PATCH v6 07/12] app/test: temporarily "skip" one cmdline test case

2021-10-14 Thread Jie Zhou
ned-off-by: Jie Zhou --- app/test/test_cmdline_lib.c | 4 1 file changed, 4 insertions(+) diff --git a/app/test/test_cmdline_lib.c b/app/test/test_cmdline_lib.c index 86a5b78d70..1ff5c0d7e6 100644 --- a/app/test/test_cmdline_lib.c +++ b/app/test/test_cmdline_lib.c @@ -14

[dpdk-dev] [PATCH v6 08/12] app/test: skip two logs_autotest cases on Windows

2021-10-14 Thread Jie Zhou
ndef these two test cases, and for the rte_log_set_level_pattern validation case following these two cases, differentiate the expected log level passed into macro CHECK_LEVELS Now logs_autotest completes for all dynamic log types and static log types. Signed-off-by: Jie Zhou --- app/test/test_

[dpdk-dev] [PATCH v6 10/12] app/test: remove two alarm_autotest cases

2021-10-14 Thread Jie Zhou
Remove two alarm_autotest test cases which do bogus range check on Windows. Signed-off-by: Jie Zhou --- app/test/test_alarm.c | 4 1 file changed, 4 insertions(+) diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c index b4034339b8..70e97a3109 100644 --- a/app/test/test_alarm.c

[dpdk-dev] [PATCH v6 09/12] app/test: differentiate a strerror on different OS

2021-10-14 Thread Jie Zhou
On Windows, strerror returns just "Unknown error" for errnum greater than MAX_ERRNO, while linux and freebsd returns "Unknown error ", which is the current expectation for errno_autotest. Differentiate the error string on Windows to remove a "duplicate error code" fai

[dpdk-dev] [PATCH v6 11/12] app/test: replace .sh scripts with .py scripts

2021-10-14 Thread Jie Zhou
- Add python script to get coremask - Add python script to check if system supports hugepages - Remove two corresponding .sh scripts - Replace calling of .sh with corresponding .py in meson.build Signed-off-by: Jie Zhou --- app/test/get-coremask.sh | 13 - app/test/get_coremask.py

[dpdk-dev] [PATCH v6 12/12] app/test: enable subset of unit tests on Windows

2021-10-14 Thread Jie Zhou
will be enabled by "patch-18949: app/test: enable crypto unit tests on Windows". - For dump tests, currently the tests hang on Windows which require further investigation. Keep the dump test list just for non-Windows for easier tracking. Signed-off-by: Jie Zhou --- app/test/m

[dpdk-dev] [PATCH v3 0/3] support PPPoL2TPv2oUDP RSS Hash

2021-10-15 Thread Jie Wang
of the added code. v2: * update the rte_flow.rst and release notes. * update l2tpv2 header format. Jie Wang (3): ethdev: support PPP and L2TPV2 procotol net/iavf: support PPPoL2TPv2oUDP RSS Hash app/testpmd: support L2TPV2 and PPP protocol pattern app/test-pmd/cmdline.c

[dpdk-dev] [PATCH v3 1/3] ethdev: support PPP and L2TPV2 procotol

2021-10-15 Thread Jie Wang
Added flow pattern items and header formats of L2TPv2 and PPP to support PPP over L2TPv2 over UDP protocol RSS Hash. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 5 + lib/ethdev/rte_flow.c

[dpdk-dev] [PATCH v3 2/3] net/iavf: support PPPoL2TPv2oUDP RSS Hash

2021-10-15 Thread Jie Wang
-by: Jie Wang --- drivers/net/iavf/iavf_generic_flow.c | 131 +++ drivers/net/iavf/iavf_generic_flow.h | 15 +++ drivers/net/iavf/iavf_hash.c | 108 +- 3 files changed, 252 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf

[dpdk-dev] [PATCH v3 3/3] app/testpmd: support L2TPV2 and PPP protocol pattern

2021-10-15 Thread Jie Wang
Add support for test-pmd to parse protocol pattern L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- app/test-pmd/cmdline.c | 244 ++ app/test-pmd/cmdline_flow.c | 396 app/test-pmd/testpmd.h | 22 ++ 3

[dpdk-dev] [PATCH v4 0/3] support PPPoL2TPv2oUDP RSS Hash

2021-10-18 Thread Jie Wang
the code of l2tpv2_encap. * update the title of ethdev patch and adjust the position of the added code. v2: * update the rte_flow.rst and release notes. * update l2tpv2 header format. Jie Wang (3): ethdev: support PPP and L2TPV2 procotol net/iavf: support PPPoL2TPv2oUDP RSS Hash app

[dpdk-dev] [PATCH v4 1/3] ethdev: support PPP and L2TPV2 procotol

2021-10-18 Thread Jie Wang
Added flow pattern items and header formats of L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 5 + lib/ethdev/rte_flow.c | 2 + lib/ethdev/rte_flow.h

[dpdk-dev] [PATCH v4 2/3] net/iavf: support PPPoL2TPv2oUDP RSS Hash

2021-10-18 Thread Jie Wang
-by: Jie Wang --- drivers/net/iavf/iavf_generic_flow.c | 131 +++ drivers/net/iavf/iavf_generic_flow.h | 15 +++ drivers/net/iavf/iavf_hash.c | 108 +- 3 files changed, 252 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf

[dpdk-dev] [PATCH v4 3/3] app/testpmd: support L2TPV2 and PPP protocol pattern

2021-10-18 Thread Jie Wang
Add support for test-pmd to parse protocol pattern L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- app/test-pmd/cmdline_flow.c | 251 1 file changed, 251 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd

[dpdk-dev] [PATCH v5 0/3] support PPPoL2TPv2oUDP RSS Hash

2021-10-18 Thread Jie Wang
header fields value. * add the code of l2tpv2_encap. * update the title of ethdev patch and adjust the position of the added code. v2: * update the rte_flow.rst and release notes. * update l2tpv2 header format. Jie Wang (3): ethdev: support PPP and L2TPV2 procotol net/iavf: support

[dpdk-dev] [PATCH v5 1/3] ethdev: support PPP and L2TPV2 procotol

2021-10-18 Thread Jie Wang
Added flow pattern items and header formats of L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 4 + lib/ethdev/rte_flow.c | 2 + lib/ethdev/rte_flow.h

[dpdk-dev] [PATCH v5 2/3] net/iavf: support PPPoL2TPv2oUDP RSS Hash

2021-10-18 Thread Jie Wang
-by: Jie Wang --- drivers/net/iavf/iavf_generic_flow.c | 131 +++ drivers/net/iavf/iavf_generic_flow.h | 15 +++ drivers/net/iavf/iavf_hash.c | 108 +- 3 files changed, 252 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf

[dpdk-dev] [PATCH v5 3/3] app/testpmd: support L2TPV2 and PPP protocol pattern

2021-10-18 Thread Jie Wang
Add support for test-pmd to parse protocol pattern L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- app/test-pmd/cmdline_flow.c | 251 1 file changed, 251 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd

[dpdk-dev] [PATCH v6 0/3] support PPPoL2TPv2oUDP RSS Hash

2021-10-20 Thread Jie Wang
code. v2: * update the rte_flow.rst and release notes. * update l2tpv2 header format. Jie Wang (3): ethdev: support PPP and L2TPV2 procotol net/iavf: support PPPoL2TPv2oUDP RSS Hash app/testpmd: support L2TPV2 and PPP protocol pattern app/test-pmd/cmdline_flow.c | 251

[dpdk-dev] [PATCH v6 1/3] ethdev: support PPP and L2TPV2 procotol

2021-10-20 Thread Jie Wang
Added flow pattern items and header formats of L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- doc/api/doxy-api-index.md | 2 + doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides/rel_notes/release_21_11.rst | 5 + doc/guides

[dpdk-dev] [PATCH v6 2/3] net/iavf: support PPPoL2TPv2oUDP RSS Hash

2021-10-20 Thread Jie Wang
-by: Jie Wang --- drivers/net/iavf/iavf_generic_flow.c | 131 +++ drivers/net/iavf/iavf_generic_flow.h | 15 +++ drivers/net/iavf/iavf_hash.c | 108 +- 3 files changed, 252 insertions(+), 2 deletions(-) diff --git a/drivers/net/iavf

[dpdk-dev] [PATCH v6 3/3] app/testpmd: support L2TPV2 and PPP protocol pattern

2021-10-20 Thread Jie Wang
Add support for test-pmd to parse protocol pattern L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- app/test-pmd/cmdline_flow.c | 251 1 file changed, 251 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd

[PATCH v2] net/ice/base: enable FDIR support for IPV6_NETX_PROTO

2022-05-06 Thread Jie Wang
P and keep behavior if it is the old version DDP. v2: rebase and optimize the API function Signed-off-by: Jie Wang --- drivers/net/ice/base/ice_flow.c | 16 ++- drivers/net/ice/base/ice_parser.c| 35 drivers/net/ice/base/ice_parser.h| 2 ++ d

[dpdk-dev] [PATCH v7 0/3] support PPPoL2TPv2oUDP RSS Hash

2021-10-20 Thread Jie Wang
ethdev patch and adjust the position of the added code. v2: * update the rte_flow.rst and release notes. * update l2tpv2 header format. Jie Wang (3): ethdev: support L2TPv2 and PPP procotol net/iavf: support PPPoL2TPv2oUDP RSS Hash app/testpmd: support L2TPv2 and PPP protocol pattern app

[dpdk-dev] [PATCH v7 1/3] ethdev: support L2TPv2 and PPP procotol

2021-10-20 Thread Jie Wang
Added flow pattern items and header formats of L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- doc/api/doxy-api-index.md | 2 + doc/guides/nics/features/default.ini | 2 + doc/guides/nics/features/iavf.ini | 2 + doc/guides/prog_guide/rte_flow.rst

[dpdk-dev] [PATCH v7 2/3] net/iavf: support PPPoL2TPv2oUDP RSS Hash

2021-10-20 Thread Jie Wang
: Wenjun Wu Signed-off-by: Jie Wang --- doc/guides/rel_notes/release_21_11.rst | 1 + drivers/net/iavf/iavf_generic_flow.c | 131 + drivers/net/iavf/iavf_generic_flow.h | 15 +++ drivers/net/iavf/iavf_hash.c | 108 +++- 4 files changed, 253

[dpdk-dev] [PATCH v7 3/3] app/testpmd: support L2TPv2 and PPP protocol pattern

2021-10-20 Thread Jie Wang
Add support for test-pmd to parse protocol pattern L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- app/test-pmd/cmdline_flow.c | 251 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 28 +++ 2 files changed, 279 insertions(+) diff --git

[dpdk-dev] [PATCH v8 0/3] support PPPoL2TPv2oUDP RSS Hash

2021-10-21 Thread Jie Wang
tpmd match PPP and L2TPv2 protocol header fields value. * add the code of l2tpv2_encap. * update the title of ethdev patch and adjust the position of the added code. v2: * update the rte_flow.rst and release notes. * update l2tpv2 header format. Jie Wang (3): ethdev: support L2TPv2 and PP

[dpdk-dev] [PATCH v8 1/3] ethdev: support L2TPv2 and PPP procotol

2021-10-21 Thread Jie Wang
Added flow pattern items and header formats of L2TPv2 and PPP. Acked-by: Ori Kam Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- doc/api/doxy-api-index.md | 2 + doc/guides/nics/features/default.ini | 2 + doc/guides/prog_guide/rte_flow.rst | 25 +++ doc/guides

[dpdk-dev] [PATCH v8 2/3] net/iavf: support PPPoL2TPv2oUDP RSS Hash

2021-10-21 Thread Jie Wang
: Wenjun Wu Signed-off-by: Jie Wang --- doc/guides/nics/features/iavf.ini | 2 + doc/guides/rel_notes/release_21_11.rst | 1 + drivers/net/iavf/iavf_generic_flow.c | 131 + drivers/net/iavf/iavf_generic_flow.h | 15 +++ drivers/net/iavf/iavf_hash.c

[dpdk-dev] [PATCH v8 3/3] app/testpmd: support L2TPv2 and PPP protocol pattern

2021-10-21 Thread Jie Wang
Add support for test-pmd to parse protocol pattern L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- app/test-pmd/cmdline_flow.c | 251 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 28 +++ 2 files changed, 279 insertions(+) diff --git

[dpdk-dev] [PATCH v9 0/3] support PPPoL2TPv2oUDP RSS Hash

2021-10-21 Thread Jie Wang
ase notes. * update l2tpv2 header format. Jie Wang (3): ethdev: support L2TPv2 and PPP procotol net/iavf: support PPPoL2TPv2oUDP RSS Hash app/testpmd: support L2TPv2 and PPP protocol pattern app/test-pmd/cmdline_flow.c | 251 doc/api/doxy-api-index.md

[dpdk-dev] [PATCH v9 1/3] ethdev: support L2TPv2 and PPP procotol

2021-10-21 Thread Jie Wang
Added flow pattern items and header formats of L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang Acked-by: Ori Kam Acked-by: Andrew Rybchenko --- doc/api/doxy-api-index.md | 2 + doc/guides/nics/features/default.ini | 2 + doc/guides/prog_guide/rte_flow.rst

[dpdk-dev] [PATCH v9 2/3] net/iavf: support PPPoL2TPv2oUDP RSS Hash

2021-10-21 Thread Jie Wang
-by: Jie Wang Acked-by: Beilei Xing --- doc/guides/nics/features/iavf.ini | 2 + doc/guides/rel_notes/release_21_11.rst | 1 + drivers/net/iavf/iavf_generic_flow.c | 131 + drivers/net/iavf/iavf_generic_flow.h | 15 +++ drivers/net/iavf/iavf_hash.c

[dpdk-dev] [PATCH v9 3/3] app/testpmd: support L2TPv2 and PPP protocol pattern

2021-10-21 Thread Jie Wang
Add support for test-pmd to parse protocol pattern L2TPv2 and PPP. Signed-off-by: Wenjun Wu Signed-off-by: Jie Wang --- app/test-pmd/cmdline_flow.c | 251 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 28 +++ 2 files changed, 279 insertions(+) diff --git

Re: [dpdk-dev] [PATCH v6 01/12] lib: build libraries that some tests depend on

2021-10-25 Thread Jie Zhou
On Mon, Oct 25, 2021 at 05:38:42PM +0200, Thomas Monjalon wrote: > 14/10/2021 18:21, Jie Zhou: > > Enable building subset of libraries that tests depend on for Windows > > > > Signed-off-by: Jie Zhou > > --- > > lib/meson.build | 2 ++ > > 1 file changed

[dpdk-dev] [PATCH v7 02/11] app/test: remove unnecessary headers

2021-10-25 Thread Jie Zhou
Remove unnecessary header inclusion Signed-off-by: Jie Zhou --- app/test/commands.c | 2 -- app/test/test.c | 1 - app/test/test_cmdline_lib.c | 1 - 3 files changed, 4 deletions(-) diff --git a/app/test/commands.c b/app/test/commands.c index 76f6ee5d23..82bd8bf474 100644

[dpdk-dev] [PATCH v7 01/11] eal/windows: return ENOTSUP for not supported API

2021-10-25 Thread Jie Zhou
. Signed-off-by: Jie Zhou Acked-by: Dmitry Kozlyuk --- lib/eal/windows/eal_memalloc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/eal/windows/eal_memalloc.c b/lib/eal/windows/eal_memalloc.c index 55d6dcc71c..aa7589b81d 100644 --- a/lib/eal/windows

[dpdk-dev] [PATCH v7 04/11] app/test: exclude ENOTSUP as failure

2021-10-25 Thread Jie Zhou
Check rte_errno to exclude ENOTSUP as failures in test_memory.c Signed-off-by: Jie Zhou --- app/test/test_memory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_memory.c b/app/test/test_memory.c index dbf6871e71..379b0f99ca 100644 --- a/app/test

[dpdk-dev] [PATCH v7 00/11] app/test: enable subset of tests on Windows

2021-10-25 Thread Jie Zhou
e patches after this patch set. Jie Zhou (11): eal/windows: return ENOTSUP for not supported API app/test: remove unnecessary headers app/test: replace POSIX specific code app/test: exclude ENOTSUP as failure app/test: skip interrupt tests on Windows app/test: temporarily "sk

[dpdk-dev] [PATCH v7 03/11] app/test: replace POSIX specific code

2021-10-25 Thread Jie Zhou
- Include rte_os_shim.h - Replace sleep and usleep with rte_delay_us_sleep - #ifndef RTE_EXEC_ENV_WINDOWS for POSIX code only Signed-off-by: Jie Zhou --- app/test/packet_burst_generator.c | 1 + app/test/process.h| 4 +++- app/test/test.c | 4 app/test

[dpdk-dev] [PATCH v7 06/11] app/test: temporarily "skip" one cmdline test case

2021-10-25 Thread Jie Zhou
ned-off-by: Jie Zhou --- app/test/test_cmdline_lib.c | 4 1 file changed, 4 insertions(+) diff --git a/app/test/test_cmdline_lib.c b/app/test/test_cmdline_lib.c index 4715edc341..eb54ef06d7 100644 --- a/app/test/test_cmdline_lib.c +++ b/app/test/test_cmdline_lib.c @@ -14

[dpdk-dev] [PATCH v7 10/11] app/test: replace .sh scripts with .py scripts

2021-10-25 Thread Jie Zhou
- Add python script to check if system supports hugepages - Remove corresponding .sh scripts - Replace calling of .sh with corresponding .py in meson.build Signed-off-by: Jie Zhou --- app/test/has-hugepage.sh | 11 --- app/test/has_hugepage.py | 25 + app/test

[dpdk-dev] [PATCH v7 05/11] app/test: skip interrupt tests on Windows

2021-10-25 Thread Jie Zhou
Even though test_interrupts.c can compile on Windows, skip interrupt tests for now since majority of eal_interrupt on Windows are stubs. Will remove the skip after interrupt being fully enabled on Windows. Signed-off-by: Jie Zhou --- app/test/test_interrupts.c | 10 ++ 1 file changed

[dpdk-dev] [PATCH v7 09/11] app/test: remove two alarm_autotest cases

2021-10-25 Thread Jie Zhou
Remove two alarm_autotest test cases which do bogus range check on Windows. Signed-off-by: Jie Zhou --- app/test/test_alarm.c | 4 1 file changed, 4 insertions(+) diff --git a/app/test/test_alarm.c b/app/test/test_alarm.c index b4034339b8..70e97a3109 100644 --- a/app/test/test_alarm.c

<    1   2   3   4   5   6   7   8   9   10   >