Skip to contentSkip to conversation

Few enhancements for l3fwd-acl

PATCH Superseded Konstantin Ananyev 2 participants 21 messages Sep 7, 2020 – Oct 19, 2020

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index df227a177..e9e1fba1c 100644
@@ -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
index a44fbcd52..91004356e 100644
@@ -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
#2 lore raw

PATCH 2/2 examples/l3fwd-acl: allow explicitly select classify method

In reply to Konstantin Ananyev

Replace '--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
index e9e1fba1c..01b1aae2e 100644
@@ -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
index 91004356e..80dd8ba00 100644
@@ -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
#3 lore raw

v2 cover Few enhancements for l3fwd-acl

In reply to Konstantin Ananyev

Improve 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
#4 lore raw

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
index acdd12ef9..cfc275f7e 100644
@@ -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
index a44fbcd52..91004356e 100644
@@ -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
#5 lore raw

PATCH v2 2/3 examples/l3fwd-acl: allow explicitly select classify method

In reply to Konstantin Ananyev

Replace '--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
index cfc275f7e..1bc41b56d 100644
@@ -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
index 91004356e..80dd8ba00 100644
@@ -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
#6 lore raw

PATCH v2 3/3 examples/l3fwd-acl: add support for AVX512

In reply to Konstantin Ananyev

Add 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
index 80dd8ba00..6e4d17a2a 100644
@@ -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
index e0f7701cd..1a27d9d75 100644
@@ -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
#7 lore raw

v3 cover Few enhancements for l3fwd-acl

In reply to Konstantin Ananyev

Improve 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
#8 lore raw

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
index fc6c5de8d9..53343c780a 100644
@@ -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
index a44fbcd52c..91004356ed 100644
@@ -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
#9 lore raw

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
#10 lore raw

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.

#11 lore raw

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
#12 lore raw

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.

#13 lore raw

PATCH v3 2/3 examples/l3fwd-acl: allow explicitly select classify method

In reply to Konstantin Ananyev

Replace '--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
index 53343c780a..d5dbbd4e34 100644
@@ -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
index 91004356ed..80dd8ba008 100644
@@ -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
#14 lore raw

PATCH v3 3/3 examples/l3fwd-acl: add support for AVX512

In reply to Konstantin Ananyev

Add 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
index 80dd8ba008..6e4d17a2a8 100644
@@ -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
index c27d4025e8..cbb92abdb3 100644
@@ -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
#15 lore raw

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.

No need to separate this from patch 2, right?

Signature · 1 line
David Marchand
#16 lore raw

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.

No need to separate this from patch 2, right?

Yes, could be squashed into one, I think.

#17 lore raw

v4 cover Few enhancements for l3fwd-acl

In reply to Konstantin Ananyev

v3 -> 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
#18 lore raw

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
index cda5b2f5b2..3b23a9a206 100644
@@ -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
index a44fbcd52c..91004356ed 100644
@@ -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
#19 lore raw

PATCH v4 2/2 examples/l3fwd-acl: allow explicitly select classify method

In reply to Konstantin Ananyev

Replace '--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
index 3b23a9a206..ee5781458b 100644
@@ -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
index 91004356ed..c2d4ca73ab 100644
@@ -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
#20 lore raw
In reply to Konstantin Ananyev
Quoted 9 lines · Konstantin Ananyev

v3 -> 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.

Quoted 8 lines

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(-)

Rewrote release notes under a single "l3fwd-acl" entry. Series applied, thanks.

Signature · 1 line
David Marchand