Few enhancements for l3fwd-acl
cover Few enhancements for l3fwd-acl
Konstantin Ananyev (2):
examples/l3fwd-acl: add source and destination MAC update examples/l3fwd-acl: allow explicitly select classify method
doc/guides/rel_notes/release_20_11.rst | 10 ++ .../sample_app_ug/l3_forward_access_ctrl.rst | 11 +- examples/l3fwd-acl/main.c | 154 ++++++++++++++++-- 3 files changed, 156 insertions(+), 19 deletions(-)
Signature · 1 line
2.17.1
PATCH 1/2 examples/l3fwd-acl: add source and destination MAC update
Introduces two changes into l3fwd-acl behaviour to make it behave in the same way as l3fwd:
- Add a command-line parameter to allow the user to specify the destination mac address for each ethernet port used.
- While forwarding the packet update source and destination mac addresses.
--- doc/guides/rel_notes/release_20_11.rst | 5 ++ .../sample_app_ug/l3_forward_access_ctrl.rst | 4 +- examples/l3fwd-acl/main.c | 51 +++++++++++++++++-- 3 files changed, 54 insertions(+), 6 deletions(-)
doc/guides/rel_notes/release_20_11.rst +5 -0
@@ -55,6 +55,11 @@ New Features Also, make sure to start the actual text at the margin. ======================================================= +* **Add new command-line parameter for l3wfd-acl sample application.** + + Added new optional parameter ``--eth-dest`` for the ``l3fwd-acl`` to allow + the user to specify the destination mac address for each ethernet port used. + Removed Items -------------
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +3 -1
@@ -236,7 +236,7 @@ The application has a number of command line options: .. code-block:: console - ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] + ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] where,
@@ -260,6 +260,8 @@ where, * --no-numa: optional, disables numa awareness +* --eth-dest=X,MM:MM:MM:MM:MM:MM: optional, ethernet destination for port X + For example, consider a dual processor socket platform with 8 physical cores, where cores 0-7 and 16-23 appear on socket 0, while cores 8-15 and 24-31 appear on socket 1.
examples/l3fwd-acl/main.c +46 -5
113 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 2/2 examples/l3fwd-acl: allow explicitly select classify method
In reply to Konstantin AnanyevReplace '--scalar' command-line option with new one: --alg=<algname> to allow user explicitly select desired classify method. This is an optional parameter, if not specified default classify algorithm will be used.
--- doc/guides/rel_notes/release_20_11.rst | 5 + .../sample_app_ug/l3_forward_access_ctrl.rst | 9 +- examples/l3fwd-acl/main.c | 103 ++++++++++++++++-- 3 files changed, 103 insertions(+), 14 deletions(-)
doc/guides/rel_notes/release_20_11.rst +5 -0
@@ -60,6 +60,11 @@ New Features Added new optional parameter ``--eth-dest`` for the ``l3fwd-acl`` to allow the user to specify the destination mac address for each ethernet port used. +* **Allow explicitly select classify method for l3fwd-acl sample application.** + + Replace ``--scalar`` command-line option with ``--alg=<value>``, to + to allow user explicitly select desired classify method. + Removed Items -------------
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +5 -4
@@ -236,7 +236,7 @@ The application has a number of command line options: .. code-block:: console - ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] + ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--alg=<val>] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] where,
@@ -252,7 +252,8 @@ where, * --rule_ipv6 FILENAME: Specifies the IPv6 ACL and route rules file -* --scalar: Use a scalar function to perform rule lookup +* --alg=<val>: optional, ACL classify method to use, one of: + ``scalar|sse|avx2|neon|altivec`` * --enable-jumbo: optional, enables jumbo frames
@@ -270,7 +271,7 @@ To enable L3 forwarding between two ports, assuming that both ports are in the s .. code-block:: console - ./build/l3fwd-acl -l 1,2 -n 4 -- -p 0x3 --config="(0,0,1),(1,0,2)" --rule_ipv4="./rule_ipv4.db" -- rule_ipv6="./rule_ipv6.db" --scalar + ./build/l3fwd-acl -l 1,2 -n 4 -- -p 0x3 --config="(0,0,1),(1,0,2)" --rule_ipv4="./rule_ipv4.db" -- rule_ipv6="./rule_ipv6.db" --alg=scalar In this command:
@@ -296,7 +297,7 @@ In this command: * The --rule_ipv6 option specifies the reading of IPv6 rules sets from the ./ rule_ipv6.db file. -* The --scalar option specifies the performing of rule lookup with a scalar function. +* The --alg=scalar option specifies the performing of rule lookup with a scalar function. Explanation -----------
examples/l3fwd-acl/main.c +93 -10
169 lines not on this page · raw message
Signature · 1 line
2.17.1
v2 cover Few enhancements for l3fwd-acl
In reply to Konstantin AnanyevImprove l3fwd-acl usability.
Allow to specify destination MAC and explicitly select classify algorithm.
hese patch series depends on:
https://patches.dpdk.org/project/dpdk/list/?series=12241
to be applied first.
Konstantin Ananyev (3):
examples/l3fwd-acl: add source and destination MAC update examples/l3fwd-acl: allow explicitly select classify method examples/l3fwd-acl: add support for AVX512
doc/guides/rel_notes/release_20_11.rst | 10 ++ .../sample_app_ug/l3_forward_access_ctrl.rst | 11 +- examples/l3fwd-acl/main.c | 158 ++++++++++++++++-- 3 files changed, 160 insertions(+), 19 deletions(-)
Signature · 1 line
2.17.1
PATCH v2 1/3 examples/l3fwd-acl: add source and destination MAC update
Introduces two changes into l3fwd-acl behaviour to make it behave in the same way as l3fwd:
- Add a command-line parameter to allow the user to specify the destination mac address for each ethernet port used.
- While forwarding the packet update source and destination mac addresses.
--- doc/guides/rel_notes/release_20_11.rst | 5 ++ .../sample_app_ug/l3_forward_access_ctrl.rst | 4 +- examples/l3fwd-acl/main.c | 51 +++++++++++++++++-- 3 files changed, 54 insertions(+), 6 deletions(-)
doc/guides/rel_notes/release_20_11.rst +5 -0
@@ -60,6 +60,11 @@ New Features Added new ``RTE_ACL_CLASSIFY_AVX512`` vector implementation, which can processup to 32 flows in parallel. Requires AVX512 support. +* **Add new command-line parameter for l3wfd-acl sample application.** + + Added new optional parameter ``--eth-dest`` for the ``l3fwd-acl`` to allow + the user to specify the destination mac address for each ethernet port used. + Removed Items -------------
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +3 -1
@@ -236,7 +236,7 @@ The application has a number of command line options: .. code-block:: console - ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] + ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] where,
@@ -260,6 +260,8 @@ where, * --no-numa: optional, disables numa awareness +* --eth-dest=X,MM:MM:MM:MM:MM:MM: optional, ethernet destination for port X + For example, consider a dual processor socket platform with 8 physical cores, where cores 0-7 and 16-23 appear on socket 0, while cores 8-15 and 24-31 appear on socket 1.
examples/l3fwd-acl/main.c +46 -5
113 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v2 2/3 examples/l3fwd-acl: allow explicitly select classify method
In reply to Konstantin AnanyevReplace '--scalar' command-line option with new one: --alg=<algname> to allow user explicitly select desired classify method. This is an optional parameter, if not specified default classify algorithm will be used.
--- doc/guides/rel_notes/release_20_11.rst | 5 + .../sample_app_ug/l3_forward_access_ctrl.rst | 9 +- examples/l3fwd-acl/main.c | 103 ++++++++++++++++-- 3 files changed, 103 insertions(+), 14 deletions(-)
doc/guides/rel_notes/release_20_11.rst +5 -0
@@ -65,6 +65,11 @@ New Features Added new optional parameter ``--eth-dest`` for the ``l3fwd-acl`` to allow the user to specify the destination mac address for each ethernet port used. +* **Allow explicitly select classify method for l3fwd-acl sample application.** + + Replace ``--scalar`` command-line option with ``--alg=<value>``, to + to allow user explicitly select desired classify method. + Removed Items -------------
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +5 -4
@@ -236,7 +236,7 @@ The application has a number of command line options: .. code-block:: console - ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] + ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--alg=<val>] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] where,
@@ -252,7 +252,8 @@ where, * --rule_ipv6 FILENAME: Specifies the IPv6 ACL and route rules file -* --scalar: Use a scalar function to perform rule lookup +* --alg=<val>: optional, ACL classify method to use, one of: + ``scalar|sse|avx2|neon|altivec`` * --enable-jumbo: optional, enables jumbo frames
@@ -270,7 +271,7 @@ To enable L3 forwarding between two ports, assuming that both ports are in the s .. code-block:: console - ./build/l3fwd-acl -l 1,2 -n 4 -- -p 0x3 --config="(0,0,1),(1,0,2)" --rule_ipv4="./rule_ipv4.db" -- rule_ipv6="./rule_ipv6.db" --scalar + ./build/l3fwd-acl -l 1,2 -n 4 -- -p 0x3 --config="(0,0,1),(1,0,2)" --rule_ipv4="./rule_ipv4.db" -- rule_ipv6="./rule_ipv6.db" --alg=scalar In this command:
@@ -296,7 +297,7 @@ In this command: * The --rule_ipv6 option specifies the reading of IPv6 rules sets from the ./ rule_ipv6.db file. -* The --scalar option specifies the performing of rule lookup with a scalar function. +* The --alg=scalar option specifies the performing of rule lookup with a scalar function. Explanation -----------
examples/l3fwd-acl/main.c +93 -10
169 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v2 3/3 examples/l3fwd-acl: add support for AVX512
In reply to Konstantin AnanyevAdd ability to select AVX512 classify algorithm.
--- doc/guides/sample_app_ug/l3_forward_access_ctrl.rst | 2 +- examples/l3fwd-acl/main.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-)
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +1 -1
@@ -253,7 +253,7 @@ where, * --rule_ipv6 FILENAME: Specifies the IPv6 ACL and route rules file * --alg=<val>: optional, ACL classify method to use, one of: - ``scalar|sse|avx2|neon|altivec`` + ``scalar|sse|avx2|neon|altivec|avx512`` * --enable-jumbo: optional, enables jumbo frames
examples/l3fwd-acl/main.c +4 -0
@@ -170,6 +170,10 @@ static const struct { .name = "altivec", .alg = RTE_ACL_CLASSIFY_ALTIVEC, }, + { + .name = "avx512", + .alg = RTE_ACL_CLASSIFY_AVX512, + }, };/***********************start of ACL part******************************/
Signature · 1 line
2.17.1
v3 cover Few enhancements for l3fwd-acl
In reply to Konstantin AnanyevImprove l3fwd-acl usability.
Allow to specify destination MAC and explicitly select classify algorithm.
Depends-on: series-12721 ("acl: introduce AVX512 classify methods")
Konstantin Ananyev (3):
examples/l3fwd-acl: add source and destination MAC update examples/l3fwd-acl: allow explicitly select classify method examples/l3fwd-acl: add support for AVX512
doc/guides/rel_notes/release_20_11.rst | 10 ++ .../sample_app_ug/l3_forward_access_ctrl.rst | 11 +- examples/l3fwd-acl/main.c | 162 ++++++++++++++++-- 3 files changed, 164 insertions(+), 19 deletions(-)
Signature · 1 line
2.17.1
PATCH v3 1/3 examples/l3fwd-acl: add source and destination MAC update
Introduces two changes into l3fwd-acl behaviour to make it behave in the same way as l3fwd:
- Add a command-line parameter to allow the user to specify the destination mac address for each ethernet port used.
- While forwarding the packet update source and destination mac addresses.
--- doc/guides/rel_notes/release_20_11.rst | 5 ++ .../sample_app_ug/l3_forward_access_ctrl.rst | 4 +- examples/l3fwd-acl/main.c | 51 +++++++++++++++++-- 3 files changed, 54 insertions(+), 6 deletions(-)
doc/guides/rel_notes/release_20_11.rst +5 -0
@@ -119,6 +119,11 @@ New Features * Added new ``RTE_ACL_CLASSIFY_AVX512X32`` vector implementation, which can process up to 32 flows in parallel. Requires AVX512 support. +* **Add new command-line parameter for l3wfd-acl sample application.** + + Added new optional parameter ``--eth-dest`` for the ``l3fwd-acl`` to allow + the user to specify the destination mac address for each ethernet port used. + Removed Items -------------
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +3 -1
@@ -236,7 +236,7 @@ The application has a number of command line options: .. code-block:: console - ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] + ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] where,
@@ -260,6 +260,8 @@ where, * --no-numa: optional, disables numa awareness +* --eth-dest=X,MM:MM:MM:MM:MM:MM: optional, ethernet destination for port X + For example, consider a dual processor socket platform with 8 physical cores, where cores 0-7 and 16-23 appear on socket 0, while cores 8-15 and 24-31 appear on socket 1.
examples/l3fwd-acl/main.c +46 -5
113 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [dpdk-dev] [PATCH v3 1/3] examples/l3fwd-acl: add source and destination MAC update
Quoted 7 lines · Konstantin Ananyev
Introduces two changes into l3fwd-acl behaviour to make it behave in the same way as l3fwd:
- Add a command-line parameter to allow the user to specify the destination mac address for each ethernet port used.
- While forwarding the packet update source and destination mac addresses.
This new parameter is optional, but I see no default for l2 destination in the patch.
How does it work when you won't set this option?
Bonus question, what keeps us from merging this example with l3fwd?
Signature · 1 line
David Marchand
Re: [dpdk-dev] [PATCH v3 1/3] examples/l3fwd-acl: add source and destination MAC update
Quoted 11 lines
Quoted 7 lines · Konstantin Ananyev
Introduces two changes into l3fwd-acl behaviour to make it behave in the same way as l3fwd:
- Add a command-line parameter to allow the user to specify the destination mac address for each ethernet port used.
- While forwarding the packet update source and destination mac addresses.
Quoted 3 lines
This new parameter is optional, but I see no default for l2 destination in the patch.
How does it work when you won't set this option?
Ah yes, forgot to init l2 dst array with some default values. Will fix and re-spin then.
Quoted 3 lines
Bonus question, what keeps us from merging this example with l3fwd?
Nothing, except the effort required.
Re: [dpdk-dev] [PATCH v3 1/3] examples/l3fwd-acl: add source and destination MAC update
Quoted 10 lines · Konstantin
Quoted 10 lines
Quoted 7 lines · Konstantin Ananyev
Introduces two changes into l3fwd-acl behaviour to make it behave in the same way as l3fwd:
- Add a command-line parameter to allow the user to specify the destination mac address for each ethernet port used.
- While forwarding the packet update source and destination mac addresses.
Quoted 6 lines
Quoted 3 lines
This new parameter is optional, but I see no default for l2 destination in the patch.
How does it work when you won't set this option?Ah yes, forgot to init l2 dst array with some default values. Will fix and re-spin then.
Ok, waiting for it, and squash patch 3 as suggested. Thanks.
Signature · 1 line
David Marchand
Re: [dpdk-dev] [PATCH v3 1/3] examples/l3fwd-acl: add source and destination MAC update
Quoted 17 lines
Quoted 14 lines · Konstantin
Quoted 13 lines
Quoted 7 lines · Konstantin Ananyev
Introduces two changes into l3fwd-acl behaviour to make it behave in the same way as l3fwd:
- Add a command-line parameter to allow the user to specify the destination mac address for each ethernet port used.
- While forwarding the packet update source and destination mac addresses.This new parameter is optional, but I see no default for l2 destination in the patch.
How does it work when you won't set this option?
Quoted 6 lines
Quoted 2 lines
Ah yes, forgot to init l2 dst array with some default values. Will fix and re-spin then.
Ok, waiting for it, and squash patch 3 as suggested. Thanks.
Just sent.
Thanks.
PATCH v3 2/3 examples/l3fwd-acl: allow explicitly select classify method
In reply to Konstantin AnanyevReplace '--scalar' command-line option with new one: --alg=<algname> to allow user explicitly select desired classify method. This is an optional parameter, if not specified default classify algorithm will be used.
--- doc/guides/rel_notes/release_20_11.rst | 5 + .../sample_app_ug/l3_forward_access_ctrl.rst | 9 +- examples/l3fwd-acl/main.c | 103 ++++++++++++++++-- 3 files changed, 103 insertions(+), 14 deletions(-)
doc/guides/rel_notes/release_20_11.rst +5 -0
@@ -124,6 +124,11 @@ New Features Added new optional parameter ``--eth-dest`` for the ``l3fwd-acl`` to allow the user to specify the destination mac address for each ethernet port used. +* **Allow explicitly select classify method for l3fwd-acl sample application.** + + Replace ``--scalar`` command-line option with ``--alg=<value>``, to + to allow user explicitly select desired classify method. + Removed Items -------------
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +5 -4
@@ -236,7 +236,7 @@ The application has a number of command line options: .. code-block:: console - ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] + ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--alg=<val>] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] where,
@@ -252,7 +252,8 @@ where, * --rule_ipv6 FILENAME: Specifies the IPv6 ACL and route rules file -* --scalar: Use a scalar function to perform rule lookup +* --alg=<val>: optional, ACL classify method to use, one of: + ``scalar|sse|avx2|neon|altivec`` * --enable-jumbo: optional, enables jumbo frames
@@ -270,7 +271,7 @@ To enable L3 forwarding between two ports, assuming that both ports are in the s .. code-block:: console - ./build/l3fwd-acl -l 1,2 -n 4 -- -p 0x3 --config="(0,0,1),(1,0,2)" --rule_ipv4="./rule_ipv4.db" -- rule_ipv6="./rule_ipv6.db" --scalar + ./build/l3fwd-acl -l 1,2 -n 4 -- -p 0x3 --config="(0,0,1),(1,0,2)" --rule_ipv4="./rule_ipv4.db" -- rule_ipv6="./rule_ipv6.db" --alg=scalar In this command:
@@ -296,7 +297,7 @@ In this command: * The --rule_ipv6 option specifies the reading of IPv6 rules sets from the ./ rule_ipv6.db file. -* The --scalar option specifies the performing of rule lookup with a scalar function. +* The --alg=scalar option specifies the performing of rule lookup with a scalar function. Explanation -----------
examples/l3fwd-acl/main.c +93 -10
169 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v3 3/3 examples/l3fwd-acl: add support for AVX512
In reply to Konstantin AnanyevAdd ability to select AVX512 classify algorithm.
---
Depends-on: series-12721 ("acl: introduce AVX512 classify methods")
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst | 2 +- examples/l3fwd-acl/main.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-)
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +1 -1
@@ -253,7 +253,7 @@ where, * --rule_ipv6 FILENAME: Specifies the IPv6 ACL and route rules file * --alg=<val>: optional, ACL classify method to use, one of: - ``scalar|sse|avx2|neon|altivec`` + ``scalar|sse|avx2|neon|altivec|avx512x16|avx512x32`` * --enable-jumbo: optional, enables jumbo frames
examples/l3fwd-acl/main.c +8 -0
@@ -170,6 +170,14 @@ static const struct { .name = "altivec", .alg = RTE_ACL_CLASSIFY_ALTIVEC, }, + { + .name = "avx512x16", + .alg = RTE_ACL_CLASSIFY_AVX512X16, + }, + { + .name = "avx512x32", + .alg = RTE_ACL_CLASSIFY_AVX512X32, + }, };/***********************start of ACL part******************************/
Signature · 1 line
2.17.1
Re: [dpdk-dev] [PATCH v3 3/3] examples/l3fwd-acl: add support for AVX512
Quoted 4 lines · Konstantin Ananyev
Add ability to select AVX512 classify algorithm.
Signed-off-by Konstantin Ananyev <[email protected]>
No need to separate this from patch 2, right?
Signature · 1 line
David Marchand
Re: [dpdk-dev] [PATCH v3 3/3] examples/l3fwd-acl: add support for AVX512
Quoted 10 lines
Quoted 4 lines · Konstantin Ananyev
Add ability to select AVX512 classify algorithm.
Signed-off-by Konstantin Ananyev <[email protected]>No need to separate this from patch 2, right?
Yes, could be squashed into one, I think.
v4 cover Few enhancements for l3fwd-acl
In reply to Konstantin Ananyevv3 -> v4:
Address David comments:
- squash patches #2 and #3 into one
- set default values for dest MACs
Improve l3fwd-acl usability.
Allow to specify destination MAC and explicitly select classify algorithm.
Konstantin Ananyev (2):
examples/l3fwd-acl: add source and destination MAC update examples/l3fwd-acl: allow explicitly select classify method
doc/guides/rel_notes/release_20_11.rst | 10 + .../sample_app_ug/l3_forward_access_ctrl.rst | 11 +- examples/l3fwd-acl/main.c | 178 ++++++++++++++++-- 3 files changed, 180 insertions(+), 19 deletions(-)
Signature · 1 line
2.17.1
PATCH v4 1/2 examples/l3fwd-acl: add source and destination MAC update
Introduces two changes into l3fwd-acl behaviour to make it behave in the same way as l3fwd:
- Add a command-line parameter to allow the user to specify the destination mac address for each ethernet port used.
- While forwarding the packet update source and destination mac addresses.
--- doc/guides/rel_notes/release_20_11.rst | 5 ++ .../sample_app_ug/l3_forward_access_ctrl.rst | 4 +- examples/l3fwd-acl/main.c | 67 +++++++++++++++++-- 3 files changed, 70 insertions(+), 6 deletions(-)
doc/guides/rel_notes/release_20_11.rst +5 -0
@@ -276,6 +276,11 @@ New Features * Added scatter gather support. * Added NIST GCMVS complaint GMAC test method support. +* **Add new command-line parameter for l3wfd-acl sample application.** + + Added new optional parameter ``--eth-dest`` for the ``l3fwd-acl`` to allow + the user to specify the destination mac address for each ethernet port used. + Removed Items -------------
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +3 -1
@@ -236,7 +236,7 @@ The application has a number of command line options: .. code-block:: console - ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] + ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] where,
@@ -260,6 +260,8 @@ where, * --no-numa: optional, disables numa awareness +* --eth-dest=X,MM:MM:MM:MM:MM:MM: optional, ethernet destination for port X + For example, consider a dual processor socket platform with 8 physical cores, where cores 0-7 and 16-23 appear on socket 0, while cores 8-15 and 24-31 appear on socket 1.
examples/l3fwd-acl/main.c +62 -5
141 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v4 2/2 examples/l3fwd-acl: allow explicitly select classify method
In reply to Konstantin AnanyevReplace '--scalar' command-line option with new one: --alg=<algname> to allow user explicitly select desired classify method. This is an optional parameter, if not specified default classify algorithm will be used.
--- doc/guides/rel_notes/release_20_11.rst | 5 + .../sample_app_ug/l3_forward_access_ctrl.rst | 9 +- examples/l3fwd-acl/main.c | 111 ++++++++++++++++-- 3 files changed, 111 insertions(+), 14 deletions(-)
doc/guides/rel_notes/release_20_11.rst +5 -0
@@ -281,6 +281,11 @@ New Features Added new optional parameter ``--eth-dest`` for the ``l3fwd-acl`` to allow the user to specify the destination mac address for each ethernet port used. +* **Allow explicitly select classify method for l3fwd-acl sample application.** + + Replace ``--scalar`` command-line option with ``--alg=<value>``, to + to allow user explicitly select desired classify method. + Removed Items -------------
doc/guides/sample_app_ug/l3_forward_access_ctrl.rst +5 -4
@@ -236,7 +236,7 @@ The application has a number of command line options: .. code-block:: console - ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--scalar] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] + ./build/l3fwd-acl [EAL options] -- -p PORTMASK [-P] --config(port,queue,lcore)[,(port,queue,lcore)] --rule_ipv4 FILENAME rule_ipv6 FILENAME [--alg=<val>] [--enable-jumbo [--max-pkt-len PKTLEN]] [--no-numa] [--eth-dest=X,MM:MM:MM:MM:MM:MM] where,
@@ -252,7 +252,8 @@ where, * --rule_ipv6 FILENAME: Specifies the IPv6 ACL and route rules file -* --scalar: Use a scalar function to perform rule lookup +* --alg=<val>: optional, ACL classify method to use, one of: + ``scalar|sse|avx2|neon|altivec|avx512x16|avx512x32`` * --enable-jumbo: optional, enables jumbo frames
@@ -270,7 +271,7 @@ To enable L3 forwarding between two ports, assuming that both ports are in the s .. code-block:: console - ./build/l3fwd-acl -l 1,2 -n 4 -- -p 0x3 --config="(0,0,1),(1,0,2)" --rule_ipv4="./rule_ipv4.db" -- rule_ipv6="./rule_ipv6.db" --scalar + ./build/l3fwd-acl -l 1,2 -n 4 -- -p 0x3 --config="(0,0,1),(1,0,2)" --rule_ipv4="./rule_ipv4.db" -- rule_ipv6="./rule_ipv6.db" --alg=scalar In this command:
@@ -296,7 +297,7 @@ In this command: * The --rule_ipv6 option specifies the reading of IPv6 rules sets from the ./ rule_ipv6.db file. -* The --scalar option specifies the performing of rule lookup with a scalar function. +* The --alg=scalar option specifies the performing of rule lookup with a scalar function. Explanation -----------
examples/l3fwd-acl/main.c +101 -10
177 lines not on this page · raw message
Signature · 1 line
2.17.1
Quoted 9 lines · Konstantin Ananyev
v3 -> v4:
Address David comments:
- squash patches #2 and #3 into one
- set default values for dest MACsImprove l3fwd-acl usability.
Allow to specify destination MAC and explicitly select classify algorithm.
Quoted 8 lines
Konstantin Ananyev (2):
examples/l3fwd-acl: add source and destination MAC update examples/l3fwd-acl: allow explicitly select classify methoddoc/guides/rel_notes/release_20_11.rst | 10 + .../sample_app_ug/l3_forward_access_ctrl.rst | 11 +- examples/l3fwd-acl/main.c | 178 ++++++++++++++++-- 3 files changed, 180 insertions(+), 19 deletions(-)
Rewrote release notes under a single "l3fwd-acl" entry. Series applied, thanks.
Signature · 1 line
David Marchand