Skip to contentSkip to conversation

doc: add new tables for rte flow items and actions support

PATCH Superseded Asaf Penso 5 participants 32 messages Feb 4, 2021 – May 18, 2021

lore
Share & tools
lore

Asaf Penso

author
#0 lore raw

PATCH 1/1 doc: add new tables for rte flow items and actions support

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions
3. rte_flow shared actions

---
 doc/guides/conf.py                   |  23 +++++---
 doc/guides/nics/features/default.ini | 109 +++++++++++++++++++++++++++++++++++
 doc/guides/nics/features/mlx4.ini    |  15 +++++
 doc/guides/nics/features/mlx5.ini    |  70 ++++++++++++++++++++++
 doc/guides/nics/overview.rst         |  11 ++++
 5 files changed, 221 insertions(+), 7 deletions(-)
doc/guides/conf.py +16 -7
index aceeb62..149507a 100644
@@ -217,14 +217,8 @@ def generate_overview_table(output_filename, table_id, section, table_name, titl
         # Initialize the dict with the default.ini value.
         ini_data[ini_filename] = valid_features.copy()
 
-        # Check for a valid ini section.
+        # Check for a section.
         if not config.has_section(section):
-            print("{}: File '{}' has no [{}] secton".format(warning,
-                                                            ini_filename,
-                                                            section),
-                                                            file=stderr)
-            if stop_on_error:
-                raise Exception('Warning is treated as a failure')
             continue
 
         # Check for valid features names.
@@ -380,6 +374,21 @@ def setup(app):
                             'Features',
                             'Features availability in networking drivers',
                             'Feature')
+    table_file = dirname(__file__) + '/nics/rte_flow_items_table.txt'
+    generate_overview_table(table_file, 2,
+                            'rte_flow items',
+                            'rte_flow items features availability in networking drivers',
+                            'Items')
+    table_file = dirname(__file__) + '/nics/rte_flow_actions_table.txt'
+    generate_overview_table(table_file, 3,
+                            'rte_flow actions',
+                            'rte_flow actions features availability in networking drivers',
+                            'Actions')
+    table_file = dirname(__file__) + '/nics/rte_flow_shared_actions_table.txt'
+    generate_overview_table(table_file, 4,
+                            'rte_flow shared actions',
+                            'rte_flow shared actions features availability in networking drivers',
+                            'Actions')
     table_file = dirname(__file__) + '/cryptodevs/overview_feature_table.txt'
     generate_overview_table(table_file, 1,
                             'Features',
doc/guides/nics/features/default.ini +109 -0

112 lines not on this page · raw message

doc/guides/nics/features/mlx4.ini +15 -0
index ebb9ccf..5e352f5 100644
@@ -38,3 +38,18 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+vlan                 = Y
+ipv4                 = Y
+ipv6                 = Y
+udp                  = Y
+tcp                  = Y
+
+[rte_flow actions]
+end                  = Y
+void                 = Y
+queue                = Y
+drop                 = Y
+rss                  = Y
doc/guides/nics/features/mlx5.ini +70 -0

73 lines not on this page · raw message

doc/guides/nics/overview.rst +11 -0
index 20cd52b..cded041 100644
@@ -28,7 +28,18 @@ More details about features can be found in :doc:`features`.
 
 .. include:: overview_table.txt
 
+.. include:: rte_flow_items_table.txt
+
+.. include:: rte_flow_actions_table.txt
+
+.. include:: rte_flow_shared_actions_table.txt
+
 .. Note::
 
    Features marked with "P" are partially supported. Refer to the appropriate
    NIC guide in the following sections for details.
+
+.. Note::
+
+   rte_flow action shared that is marked with "S" means that some or all
+   shared action are supported and more details can be found in table 1.4.
Signature · 1 line
1.8.3.1
#1 lore raw

04/02/2021 18:05, Asaf Penso:

Quoted 11 lines

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions
3. rte_flow shared actions

Quoted 8 lines
---
 doc/guides/conf.py                   |  23 +++++---
 doc/guides/nics/features/default.ini | 109 +++++++++++++++++++++++++++++++++++
 doc/guides/nics/features/mlx4.ini    |  15 +++++
 doc/guides/nics/features/mlx5.ini    |  70 ++++++++++++++++++++++
 doc/guides/nics/overview.rst         |  11 ++++
 5 files changed, 221 insertions(+), 7 deletions(-)

After running git status I remembered the generated .txt files must be added in .gitignore.

[...]

Quoted 32 lines

+[rte_flow actions]

doc/guides/nics/features/mlx5.ini +31 -0
+end                  = Y
+void                 = Y
+jump                 = Y
+mark                 = Y
+flag                 = Y
+queue                = Y
+drop                 = Y
+count                = Y
+rss                  = Y
+port_id              = Y
+meter                = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_vid      = Y
+of_set_vlan_pcp      = Y
+vxlan_encap          = Y
+vxlan_decap          = Y
+raw_encap            = Y
+raw_decap            = Y
+set_ipv4_src         = Y
+set_ipv4_dst         = Y
+set_ipv6_src         = Y
+set_ipv6_dst         = Y
+set_tp_src           = Y
+set_tp_dst           = Y
+dec_ttl              = Y
+set_ttl              = Y
+set_mac_src          = Y
+set_mac_dst          = Y
+inc_tcp_seq          = Y
+dec_tcp_seq          = Y

doc/guides/nics/features/mlx5.ini Power8 = Y · line 120

Quoted 10 lines
doc/guides/nics/features/mlx5.ini +10 -0
+inc_tcp_ack          = Y
+dec_tcp_ack          = Y
+set_tag              = Y
+set_meta             = Y
+set_ipv4_dscp        = Y
+set_ipv6_dscp        = Y
+age                  = Y
+sample               = Y
+shared               = S
+modify_field         = Y

I suggest not having "shared" in above table but marking "age" and "rss" as shared with "S" in above table.

Quoted 3 lines

+[rte_flow shared actions]

(quoted diff) +2 -0
+age                  = Y
+rss                  = Y
author
#2 lore raw
Quoted 24 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Friday, February 5, 2021 12:09 AM
To: Asaf Penso <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] doc: add new tables for rte flow items and actions support

04/02/2021 18:05, Asaf Penso:

Quoted 11 lines

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions
3. rte_flow shared actions

Quoted 4 lines
---
 doc/guides/conf.py                   |  23 +++++---
 doc/guides/nics/features/default.ini | 109
Quoted 8 lines

+++++++++++++++++++++++++++++++++++

Quoted 4 lines
 doc/guides/nics/features/mlx4.ini    |  15 +++++
 doc/guides/nics/features/mlx5.ini    |  70 ++++++++++++++++++++++
 doc/guides/nics/overview.rst         |  11 ++++
 5 files changed, 221 insertions(+), 7 deletions(-)

After running git status I remembered the generated .txt files must be added in .gitignore.

Thanks, will update .gitignore file in v2.

Quoted 39 lines

[...]

Quoted 37 lines

+[rte_flow actions]

doc/guides/nics/features/mlx5.ini +36 -0
+end                  = Y
+void                 = Y
+jump                 = Y
+mark                 = Y
+flag                 = Y
+queue                = Y
+drop                 = Y
+count                = Y
+rss                  = Y
+port_id              = Y
+meter                = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_vid      = Y
+of_set_vlan_pcp      = Y
+vxlan_encap          = Y
+vxlan_decap          = Y
+raw_encap            = Y
+raw_decap            = Y
+set_ipv4_src         = Y
+set_ipv4_dst         = Y
+set_ipv6_src         = Y
+set_ipv6_dst         = Y
+set_tp_src           = Y
+set_tp_dst           = Y
+dec_ttl              = Y
+set_ttl              = Y
+set_mac_src          = Y
+set_mac_dst          = Y
+inc_tcp_seq          = Y
+dec_tcp_seq          = Y
+inc_tcp_ack          = Y
+dec_tcp_ack          = Y
+set_tag              = Y
+set_meta             = Y
+set_ipv4_dscp        = Y
Quoted 8 lines

doc/guides/nics/features/mlx5.ini Power8 = Y · line 120

Quoted 5 lines
doc/guides/nics/features/mlx5.ini +5 -0
+set_ipv6_dscp        = Y
+age                  = Y
+sample               = Y
+shared               = S
+modify_field         = Y

I suggest not having "shared" in above table but marking "age" and "rss" as shared with "S" in above table.

In this case, how would you separate, for example, between support of age and shared age? There are different actions.

Quoted 6 lines
Quoted 4 lines

+[rte_flow shared actions]

(quoted diff) +2 -0
+age                  = Y
+rss                  = Y
#3 lore raw

07/02/2021 09:46, Asaf Penso:

Quoted 11 lines

From: Thomas Monjalon <[email protected]>

Quoted 8 lines

04/02/2021 18:05, Asaf Penso:

doc/guides/nics/features/mlx5.ini Power8 = Y · line 120

Quoted 4 lines
doc/guides/nics/features/mlx5.ini +4 -0
+age                  = Y
+sample               = Y
+shared               = S
+modify_field         = Y

I suggest not having "shared" in above table but marking "age" and "rss" as shared with "S" in above table.

In this case, how would you separate, for example, between support of age and shared age? There are different actions.

If aged is supported, but not shared age, then "age = Y". If shared age is supported, then "age = S".
I assume simple age is supported if shared age is.

author
#4 lore raw

PATCH v2 1/1 doc: add new tables for rte flow items and actions support

In reply to Asaf Penso

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions
3. rte_flow shared actions

Also, since each table needs a new section in the pmd ini file that might not be relevant for all pmds, the print error message for missing section in conf.py is removed.

---
v2:
update commit message
add .txt to .gitignore

---
 .gitignore                           |   3 +
 doc/guides/conf.py                   |  23 +++++---
 doc/guides/nics/features/default.ini | 109 +++++++++++++++++++++++++++++++++++
 doc/guides/nics/features/mlx4.ini    |  15 +++++
 doc/guides/nics/features/mlx5.ini    |  70 ++++++++++++++++++++++
 doc/guides/nics/overview.rst         |  11 ++++
 6 files changed, 224 insertions(+), 7 deletions(-)
.gitignore +3 -0
index f73d93c..c43fa7b 100644
@@ -3,6 +3,9 @@
 
 # ignore generated documentation tables
 doc/guides/nics/overview_table.txt
+doc/guides/nics/rte_flow_actions_table.txt
+doc/guides/nics/rte_flow_items_table.txt
+doc/guides/nics/rte_flow_shared_actions_table.txt
 doc/guides/cryptodevs/overview_feature_table.txt
 doc/guides/cryptodevs/overview_cipher_table.txt
 doc/guides/cryptodevs/overview_auth_table.txt
doc/guides/conf.py +16 -7
index aceeb62..149507a 100644
@@ -217,14 +217,8 @@ def generate_overview_table(output_filename, table_id, section, table_name, titl
         # Initialize the dict with the default.ini value.
         ini_data[ini_filename] = valid_features.copy()
 
-        # Check for a valid ini section.
+        # Check for a section.
         if not config.has_section(section):
-            print("{}: File '{}' has no [{}] secton".format(warning,
-                                                            ini_filename,
-                                                            section),
-                                                            file=stderr)
-            if stop_on_error:
-                raise Exception('Warning is treated as a failure')
             continue
 
         # Check for valid features names.
@@ -380,6 +374,21 @@ def setup(app):
                             'Features',
                             'Features availability in networking drivers',
                             'Feature')
+    table_file = dirname(__file__) + '/nics/rte_flow_items_table.txt'
+    generate_overview_table(table_file, 2,
+                            'rte_flow items',
+                            'rte_flow items features availability in networking drivers',
+                            'Items')
+    table_file = dirname(__file__) + '/nics/rte_flow_actions_table.txt'
+    generate_overview_table(table_file, 3,
+                            'rte_flow actions',
+                            'rte_flow actions features availability in networking drivers',
+                            'Actions')
+    table_file = dirname(__file__) + '/nics/rte_flow_shared_actions_table.txt'
+    generate_overview_table(table_file, 4,
+                            'rte_flow shared actions',
+                            'rte_flow shared actions features availability in networking drivers',
+                            'Actions')
     table_file = dirname(__file__) + '/cryptodevs/overview_feature_table.txt'
     generate_overview_table(table_file, 1,
                             'Features',
doc/guides/nics/features/default.ini +109 -0

112 lines not on this page · raw message

doc/guides/nics/features/mlx4.ini +15 -0
index ebb9ccf..5e352f5 100644
@@ -38,3 +38,18 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+vlan                 = Y
+ipv4                 = Y
+ipv6                 = Y
+udp                  = Y
+tcp                  = Y
+
+[rte_flow actions]
+end                  = Y
+void                 = Y
+queue                = Y
+drop                 = Y
+rss                  = Y
doc/guides/nics/features/mlx5.ini +70 -0

73 lines not on this page · raw message

doc/guides/nics/overview.rst +11 -0
index 20cd52b..cded041 100644
@@ -28,7 +28,18 @@ More details about features can be found in :doc:`features`.
 
 .. include:: overview_table.txt
 
+.. include:: rte_flow_items_table.txt
+
+.. include:: rte_flow_actions_table.txt
+
+.. include:: rte_flow_shared_actions_table.txt
+
 .. Note::
 
    Features marked with "P" are partially supported. Refer to the appropriate
    NIC guide in the following sections for details.
+
+.. Note::
+
+   rte_flow action shared that is marked with "S" means that some or all
+   shared action are supported and more details can be found in table 1.4.
Signature · 1 line
1.8.3.1
author
#5 lore raw

PATCH v3 1/1 doc: add new tables for rte flow items and actions support

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions
3. rte_flow shared actions

Also, since each table needs a new section in the pmd ini file that might not be relevant for all pmds, the print error message for missing section in conf.py is removed.

---
v3:
remove the shared action table
update the note for "S" notation

v2:
update commit message
add .txt to .gitignore

---
 .gitignore                           |   2 +
 doc/guides/conf.py                   |  18 +++---
 doc/guides/nics/features/default.ini | 104 +++++++++++++++++++++++++++++++++++
 doc/guides/nics/features/mlx4.ini    |  15 +++++
 doc/guides/nics/features/mlx5.ini    |  66 ++++++++++++++++++++++
 doc/guides/nics/overview.rst         |  10 ++++
 6 files changed, 208 insertions(+), 7 deletions(-)
.gitignore +2 -0
index f73d93c..b19c071 100644
@@ -3,6 +3,8 @@
 
 # ignore generated documentation tables
 doc/guides/nics/overview_table.txt
+doc/guides/nics/rte_flow_actions_table.txt
+doc/guides/nics/rte_flow_items_table.txt
 doc/guides/cryptodevs/overview_feature_table.txt
 doc/guides/cryptodevs/overview_cipher_table.txt
 doc/guides/cryptodevs/overview_auth_table.txt
doc/guides/conf.py +11 -7
index aceeb62..4eea58f 100644
@@ -217,14 +217,8 @@ def generate_overview_table(output_filename, table_id, section, table_name, titl
         # Initialize the dict with the default.ini value.
         ini_data[ini_filename] = valid_features.copy()
 
-        # Check for a valid ini section.
+        # Check for a section.
         if not config.has_section(section):
-            print("{}: File '{}' has no [{}] secton".format(warning,
-                                                            ini_filename,
-                                                            section),
-                                                            file=stderr)
-            if stop_on_error:
-                raise Exception('Warning is treated as a failure')
             continue
 
         # Check for valid features names.
@@ -380,6 +374,16 @@ def setup(app):
                             'Features',
                             'Features availability in networking drivers',
                             'Feature')
+    table_file = dirname(__file__) + '/nics/rte_flow_items_table.txt'
+    generate_overview_table(table_file, 2,
+                            'rte_flow items',
+                            'rte_flow items features availability in networking drivers',
+                            'Items')
+    table_file = dirname(__file__) + '/nics/rte_flow_actions_table.txt'
+    generate_overview_table(table_file, 3,
+                            'rte_flow actions',
+                            'rte_flow actions features availability in networking drivers',
+                            'Actions')
     table_file = dirname(__file__) + '/cryptodevs/overview_feature_table.txt'
     generate_overview_table(table_file, 1,
                             'Features',
doc/guides/nics/features/default.ini +104 -0

107 lines not on this page · raw message

doc/guides/nics/features/mlx4.ini +15 -0
index ebb9ccf..5e352f5 100644
@@ -38,3 +38,18 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+vlan                 = Y
+ipv4                 = Y
+ipv6                 = Y
+udp                  = Y
+tcp                  = Y
+
+[rte_flow actions]
+end                  = Y
+void                 = Y
+queue                = Y
+drop                 = Y
+rss                  = Y
doc/guides/nics/features/mlx5.ini +66 -0

69 lines not on this page · raw message

doc/guides/nics/overview.rst +10 -0
index 20cd52b..86b5718 100644
@@ -28,7 +28,17 @@ More details about features can be found in :doc:`features`.
 
 .. include:: overview_table.txt
 
+.. include:: rte_flow_items_table.txt
+
+.. include:: rte_flow_actions_table.txt
+
 .. Note::
 
    Features marked with "P" are partially supported. Refer to the appropriate
    NIC guide in the following sections for details.
+
+.. Note::
+
+   rte_flow action that is marked with "S" means it is supported as shared
+   and non-shared action.
+
Signature · 1 line
1.8.3.1
author
#6 lore raw

PATCH v4 1/1 doc: add new tables for rte flow items and actions support

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions

Also, since each table needs a new section in the pmd ini file that might not be relevant for all pmds, the print error message for missing section in conf.py is removed.

---
v4:
update commit message and remove the note about shared table

v3:
remove the shared action table
update the note for "S" notation

v2:
update commit message
add .txt to .gitignore

---
 .gitignore                           |   2 +
 doc/guides/conf.py                   |  18 +++---
 doc/guides/nics/features/default.ini | 104 +++++++++++++++++++++++++++++++++++
 doc/guides/nics/features/mlx4.ini    |  15 +++++
 doc/guides/nics/features/mlx5.ini    |  66 ++++++++++++++++++++++
 doc/guides/nics/overview.rst         |  10 ++++
 6 files changed, 208 insertions(+), 7 deletions(-)
.gitignore +2 -0
index f73d93c..b19c071 100644
@@ -3,6 +3,8 @@
 
 # ignore generated documentation tables
 doc/guides/nics/overview_table.txt
+doc/guides/nics/rte_flow_actions_table.txt
+doc/guides/nics/rte_flow_items_table.txt
 doc/guides/cryptodevs/overview_feature_table.txt
 doc/guides/cryptodevs/overview_cipher_table.txt
 doc/guides/cryptodevs/overview_auth_table.txt
doc/guides/conf.py +11 -7
index aceeb62..4eea58f 100644
@@ -217,14 +217,8 @@ def generate_overview_table(output_filename, table_id, section, table_name, titl
         # Initialize the dict with the default.ini value.
         ini_data[ini_filename] = valid_features.copy()
 
-        # Check for a valid ini section.
+        # Check for a section.
         if not config.has_section(section):
-            print("{}: File '{}' has no [{}] secton".format(warning,
-                                                            ini_filename,
-                                                            section),
-                                                            file=stderr)
-            if stop_on_error:
-                raise Exception('Warning is treated as a failure')
             continue
 
         # Check for valid features names.
@@ -380,6 +374,16 @@ def setup(app):
                             'Features',
                             'Features availability in networking drivers',
                             'Feature')
+    table_file = dirname(__file__) + '/nics/rte_flow_items_table.txt'
+    generate_overview_table(table_file, 2,
+                            'rte_flow items',
+                            'rte_flow items features availability in networking drivers',
+                            'Items')
+    table_file = dirname(__file__) + '/nics/rte_flow_actions_table.txt'
+    generate_overview_table(table_file, 3,
+                            'rte_flow actions',
+                            'rte_flow actions features availability in networking drivers',
+                            'Actions')
     table_file = dirname(__file__) + '/cryptodevs/overview_feature_table.txt'
     generate_overview_table(table_file, 1,
                             'Features',
doc/guides/nics/features/default.ini +104 -0

107 lines not on this page · raw message

doc/guides/nics/features/mlx4.ini +15 -0
index ebb9ccf..5e352f5 100644
@@ -38,3 +38,18 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+vlan                 = Y
+ipv4                 = Y
+ipv6                 = Y
+udp                  = Y
+tcp                  = Y
+
+[rte_flow actions]
+end                  = Y
+void                 = Y
+queue                = Y
+drop                 = Y
+rss                  = Y
doc/guides/nics/features/mlx5.ini +66 -0

69 lines not on this page · raw message

doc/guides/nics/overview.rst +10 -0
index 20cd52b..86b5718 100644
@@ -28,7 +28,17 @@ More details about features can be found in :doc:`features`.
 
 .. include:: overview_table.txt
 
+.. include:: rte_flow_items_table.txt
+
+.. include:: rte_flow_actions_table.txt
+
 .. Note::
 
    Features marked with "P" are partially supported. Refer to the appropriate
    NIC guide in the following sections for details.
+
+.. Note::
+
+   rte_flow action that is marked with "S" means it is supported as shared
+   and non-shared action.
+
Signature · 1 line
1.8.3.1
#7 lore raw

07/02/2021 11:52, Asaf Penso:

Quoted 5 lines

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

One comment to add to this commit message if you agree:
When the new rte_flow tables are filled for all relevant PMDs, we could remove the row "Flow API" from the main table.

Quoted 3 lines

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions

[...]

Quoted 8 lines
doc/guides/nics/features/default.ini +8 -0
+vlan                 =
+ipv4                 =
+ipv6                 =
+icmp                 =
+udp                  =
+tcp                  =
+sctp                 =
+vxlan                =

[...]

doc/guides/nics/features/default.ini x86-64 = · line 163

Quoted 2 lines
doc/guides/nics/features/default.ini +2 -0
+set_ipv4_src         =
+set_ipv4_dst         =

In items and actions above (and others) I understand the names are taken directly from the enums or structs.
However I could imagine a slight different natural naming, using some upper cases and spaces. Example:

	set_ipv4_dst -> set IPv4 dst

I see pros and cons. What are other opinions?

#8 lore raw
In reply to Asaf Penso
Quoted 10 lines · Asaf Penso

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions

Hi Asaf,

I understand the intention, but I am not sure about this.

The Flow API does not provide a capability or feature list in the API level, by design, because it is very hard to do it correct, but this patch tries to do it in the documentation level.

This will be missing lots of details, the flow items and actions documented as supported may and may not be supported based on the details.

It will be very hard to read this table (when it becomes full), also will be very hard to maintain.

Let me start with a question, who do you think will be your consumer? Who will benefit from this table and how?

Quoted 5 lines

Also, since each table needs a new section in the pmd ini file that might not be relevant for all pmds, the print error message for missing section in conf.py is removed.

<...>

author
#9 lore raw

Hello Ferruh, thanks for the reply and please see my below comments.

Regards,
Asaf Penso

Quoted 23 lines

-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Tuesday, February 16, 2021 3:14 PM
To: Asaf Penso <[email protected]>; [email protected]
Cc: NBU-Contact-Thomas Monjalon <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v4] doc: add new tables for rte flow items and actions support

Quoted 10 lines · Asaf Penso

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions

Hi Asaf,

Quoted 9 lines

I understand the intention, but I am not sure about this.

The Flow API does not provide a capability or feature list in the API level, by design, because it is very hard to do it correct, but this patch tries to do it in the documentation level.

This will be missing lots of details, the flow items and actions documented as supported may and may not be supported based on the details.

Which missing details are you referring to? All flow items and all actions are listed.

Quoted 2 lines

It will be very hard to read this table (when it becomes full), also will be very hard to maintain.

As part of any documentation change in rte_flow the developer would also need to update this table. Why would it be very hard to maintain?

Quoted 4 lines

Let me start with a question, who do you think will be your consumer? Who will benefit from this table and how?

We get a lot of questions from users regarding rte_flow support and we do not have a single place with proper documentation. I can ask the same about the overall feature table, right? There is a value to document the support.

Quoted 9 lines
Quoted 7 lines

Also, since each table needs a new section in the pmd ini file that might not be relevant for all pmds, the print error message for missing section in conf.py is removed.

<...>

#10 lore raw
Quoted 34 lines · Asaf Penso

Hello Ferruh, thanks for the reply and please see my below comments.

Regards,
Asaf Penso

Quoted 29 lines

-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Tuesday, February 16, 2021 3:14 PM
To: Asaf Penso <[email protected]>; [email protected]
Cc: NBU-Contact-Thomas Monjalon <[email protected]>; Andrew Rybchenko <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v4] doc: add new tables for rte flow items and actions support

Quoted 10 lines · Asaf Penso

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions

Hi Asaf,

I understand the intention, but I am not sure about this.

The Flow API does not provide a capability or feature list in the API level, by design, because it is very hard to do it correct, but this patch tries to do it in the documentation level.

Quoted 6 lines
Quoted 3 lines

This will be missing lots of details, the flow items and actions documented as supported may and may not be supported based on the details.

Which missing details are you referring to? All flow items and all actions are listed.

Patterns are complex, any rule can be valid or invalid based on provided pattern values (details), also any rule can be valid or invalid based on previous rules or configuration.

In practice this information is much more useful if it is provided by API, but we are not able to do it because of its complex nature, it should be same level of complexity to provide this information by documentation.

Quoted 6 lines
Quoted 2 lines

It will be very hard to read this table (when it becomes full), also will be very hard to maintain.

As part of any documentation change in rte_flow the developer would also need to update this table. Why would it be very hard to maintain?

Ahh, that sound so simple when you say like this :) In practice even keeping feature list requiring lots of effort, developers are missing/neglecting/ignoring updating documentation when updating the code.

And for this case is partially correct table a useful information? If this is not completely correct people won't rely on it and it will become just useless. So this feature should come with an automated way to detect if a rule supported but not documented, or even better this table should be generated from code automatically.

Quoted 8 lines
Quoted 4 lines

Let me start with a question, who do you think will be your consumer? Who will benefit from this table and how?

We get a lot of questions from users regarding rte_flow support and we do not have a single place with proper documentation. I can ask the same about the overall feature table, right? There is a value to document the support.

Let's discuss the feature table separately, I think that is a valid question.

For the rte_flow, who is asking questions? End user, or application developer? So is this intended to be a marketing documentation or technical documentation?

And what is the nature of the questions, if it is related to the rte_flow, there is already a proper documentation for it:
https://doc.dpdk.org/guides/prog_guide/rte_flow.html

If this question is if any specific rule supported by a specific PMD, right now only valid way to say this that I am aware of is, run 'rte_flow_validate()' and see. Not sure if we can document this properly.

Quoted 9 lines
Quoted 9 lines
Quoted 7 lines

Also, since each table needs a new section in the pmd ini file that might not be relevant for all pmds, the print error message for missing section in conf.py is removed.

<...>

#11 lore raw

17/02/2021 11:37, Ferruh Yigit:

Quoted 68 lines · Asaf Penso
Quoted 21 lines

From: Ferruh Yigit <[email protected]>

Quoted 20 lines · Asaf Penso
Quoted 10 lines

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions

Hi Asaf,

I understand the intention, but I am not sure about this.

The Flow API does not provide a capability or feature list in the API level, by design, because it is very hard to do it correct, but this patch tries to do it in the documentation level.

Quoted 6 lines
Quoted 3 lines

This will be missing lots of details, the flow items and actions documented as supported may and may not be supported based on the details.

Which missing details are you referring to? All flow items and all actions are listed.

Patterns are complex, any rule can be valid or invalid based on provided pattern values (details), also any rule can be valid or invalid based on previous rules or configuration.

In practice this information is much more useful if it is provided by API, but we are not able to do it because of its complex nature, it should be same level of complexity to provide this information by documentation.

Quoted 6 lines
Quoted 2 lines

It will be very hard to read this table (when it becomes full), also will be very hard to maintain.

As part of any documentation change in rte_flow the developer would also need to update this table. Why would it be very hard to maintain?

Ahh, that sound so simple when you say like this :) In practice even keeping feature list requiring lots of effort, developers are missing/neglecting/ignoring updating documentation when updating the code.

And for this case is partially correct table a useful information? If this is not completely correct people won't rely on it and it will become just useless. So this feature should come with an automated way to detect if a rule supported but not documented, or even better this table should be generated from code automatically.

Quoted 8 lines
Quoted 4 lines

Let me start with a question, who do you think will be your consumer? Who will benefit from this table and how?

We get a lot of questions from users regarding rte_flow support and we do not have a single place with proper documentation. I can ask the same about the overall feature table, right? There is a value to document the support.

Let's discuss the feature table separately, I think that is a valid question.

For the rte_flow, who is asking questions? End user, or application developer? So is this intended to be a marketing documentation or technical documentation?

Quoted 7 lines

And what is the nature of the questions, if it is related to the rte_flow, there is already a proper documentation for it:
https://doc.dpdk.org/guides/prog_guide/rte_flow.html

If this question is if any specific rule supported by a specific PMD, right now only valid way to say this that I am aware of is, run 'rte_flow_validate()' and see. Not sure if we can document this properly.

I think in general we are missing a big disclaimer on top of this overview page:
Each feature may have some hardware limitations.

Then there is a need, both for application developers and end-users, to know which feature can be supported by a PMD,
or which PMD can support a feature.
Yes there are complex limitations with hardware offloads in general. Yes it would be nice to report some tested capabilities with a CI. But it does not mean we should not try to document it in my opinion.

author
#12 lore raw
Quoted 93 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Wednesday, February 17, 2021 12:49 PM
To: Ferruh Yigit <[email protected]>
Cc: Asaf Penso <[email protected]>; [email protected]; Gal Cohen (ProdM) <[email protected]>; Andrew Rybchenko <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH v4] doc: add new tables for rte flow items and actions support

17/02/2021 11:37, Ferruh Yigit:

Quoted 16 lines · Asaf Penso
Quoted 15 lines

From: Ferruh Yigit <[email protected]>

Quoted 14 lines · Asaf Penso
Quoted 10 lines

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists all supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions

Hi Asaf,

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

I understand the intention, but I am not sure about this.

The Flow API does not provide a capability or feature list in the API level, by design, because it is very hard to do it correct, but this patch tries to do it in the documentation level.

This will be missing lots of details, the flow items and actions documented as supported may and may not be supported based on the

details.

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

Which missing details are you referring to? All flow items and all actions are

listed.

Quoted 9 lines
Quoted 1 line

Patterns are complex, any rule can be valid or invalid based on provided pattern values (details), also any rule can be valid or invalid based on previous rules or configuration.

In practice this information is much more useful if it is provided by API, but we are not able to do it because of its complex nature, it should be same level of complexity to provide this information by

documentation.

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

It will be very hard to read this table (when it becomes full), also will be very hard to maintain.

As part of any documentation change in rte_flow the developer would

also need to update this table.

Quoted 6 lines
Quoted 2 lines

Why would it be very hard to maintain?

Ahh, that sound so simple when you say like this :) In practice even keeping feature list requiring lots of effort, developers are missing/neglecting/ignoring updating documentation when updating the

code.

Quoted 3 lines

And for this case is partially correct table a useful information? If this is not completely correct people won't rely on it and it will become just

useless.

Quoted 10 lines

So this feature should come with an automated way to detect if a rule supported but not documented, or even better this table should be generated from code automatically.

Quoted 6 lines
Quoted 4 lines

Let me start with a question, who do you think will be your consumer? Who will benefit from this table and how?

We get a lot of questions from users regarding rte_flow support and we

do not have a single place with proper documentation.

Quoted 1 line
Quoted 1 line

I can ask the same about the overall feature table, right? There is a value

to document the support.

Quoted 5 lines
Quoted 1 line

Let's discuss the feature table separately, I think that is a valid question.

For the rte_flow, who is asking questions? End user, or application

developer?

Quoted 1 line

So is this intended to be a marketing documentation or technical

documentation?

Quoted 5 lines

And what is the nature of the questions, if it is related to the rte_flow, there is already a proper documentation for it:
https://doc.dpdk.org/guides/prog_guide/rte_flow.html

Quoted 7 lines
Quoted 2 lines

If this question is if any specific rule supported by a specific PMD, right now only valid way to say this that I am aware of is, run

'rte_flow_validate()' and see.

Quoted 1 line

Not sure if we can document this properly.

I think in general we are missing a big disclaimer on top of this overview page:
Each feature may have some hardware limitations.

Also, the combination of several items and actions is not feasible to be documented. Ferruh, I believe you are referring to this case. I wanted to have some documentation of the supported items/actions.
The questions come from all users, I didn't bisect to see if they are application engineers or developers or users.
For sure, they can take testpmd and confirm, but before even going there and if they want to evaluate DPDK, they prefer to see a place with this documentation. We cannot document everything, I know. Also, believe me, that I know how challenging is to track the relevancy of document 😊
Still, it's better to have this, than not at all.

Quoted 8 lines

Then there is a need, both for application developers and end-users, to know which feature can be supported by a PMD, or which PMD can support a feature.
Yes there are complex limitations with hardware offloads in general. Yes it would be nice to report some tested capabilities with a CI. But it does not mean we should not try to document it in my opinion.

#13 lore raw
In reply to Thomas Monjalon
Quoted 106 lines · Thomas Monjalon

17/02/2021 11:37, Ferruh Yigit:

Quoted 4 lines · Asaf Penso
Quoted 3 lines

From: Ferruh Yigit <[email protected]>

Quoted 2 lines · Asaf Penso
Quoted 1 line

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists

all

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines

supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hi Asaf,

I understand the intention, but I am not sure about this.

The Flow API does not provide a capability or feature list in the API

level, by

Quoted 1 line
Quoted 1 line
Quoted 1 line

design, because it is very hard to do it correct, but this patch

tries to do it in the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

documentation level.

This will be missing lots of details, the flow items and actions

documented as

Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

supported may and may not be supported based on the details.

Which missing details are you referring to? All flow items and all

actions are listed.

Quoted 3 lines
Quoted 1 line

Patterns are complex, any rule can be valid or invalid based on provided

pattern

Quoted 1 line

values (details), also any rule can be valid or invalid based on

previous rules

Quoted 3 lines

or configuration.

In practice this information is much more useful if it is provided by

API, but

Quoted 1 line

we are not able to do it because of its complex nature, it should be

same level

Quoted 3 lines

of complexity to provide this information by documentation.

Quoted 1 line
Quoted 1 line

It will be very hard to read this table (when it becomes full), also

will be very hard

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

to maintain.

As part of any documentation change in rte_flow the developer would

also need to update this table.

Quoted 4 lines
Quoted 2 lines

Why would it be very hard to maintain?

Ahh, that sound so simple when you say like this :) In practice even

keeping

Quoted 2 lines

feature list requiring lots of effort, developers are missing/neglecting/ignoring updating documentation when updating the

code.

Quoted 2 lines

And for this case is partially correct table a useful information? If

this is

Quoted 1 line

not completely correct people won't rely on it and it will become just

useless.

Quoted 1 line

So this feature should come with an automated way to detect if a rule

supported

Quoted 1 line

but not documented, or even better this table should be generated from

code

Quoted 8 lines

automatically.

Quoted 6 lines
Quoted 4 lines

Let me start with a question, who do you think will be your consumer? Who will benefit from this table and how?

We get a lot of questions from users regarding rte_flow support and we

do not have a single place with proper documentation.

Quoted 1 line
Quoted 1 line

I can ask the same about the overall feature table, right? There is a

value to document the support.

Quoted 3 lines
Quoted 1 line

Let's discuss the feature table separately, I think that is a valid

question.

Quoted 2 lines

For the rte_flow, who is asking questions? End user, or application

developer?

Quoted 1 line

So is this intended to be a marketing documentation or technical

documentation?

Quoted 2 lines

And what is the nature of the questions, if it is related to the

rte_flow, there

Quoted 4 lines

is already a proper documentation for it:
https://doc.dpdk.org/guides/prog_guide/rte_flow.html

If this question is if any specific rule supported by a specific PMD,

right now

Quoted 1 line

only valid way to say this that I am aware of is, run

'rte_flow_validate()' and see.

Quoted 1 line

Not sure if we can document this properly.

I think in general we are missing a big disclaimer on top of this overview page:
Each feature may have some hardware limitations.

Quoted 7 lines

Then there is a need, both for application developers and end-users, to know which feature can be supported by a PMD,
or which PMD can support a feature.
Yes there are complex limitations with hardware offloads in general. Yes it would be nice to report some tested capabilities with a CI. But it does not mean we should not try to document it in my opinion.

+1 to all of these.
A document like this will help give an idea on what is possible with the PMD without looking at the code. Beyond that, the user can check with the vendor/developer for specific details if needed.

#14 lore raw
Quoted 115 lines · Ajit Khaparde
Quoted 106 lines · Thomas Monjalon

17/02/2021 11:37, Ferruh Yigit:

Quoted 4 lines · Asaf Penso
Quoted 3 lines

From: Ferruh Yigit <[email protected]>

Quoted 2 lines · Asaf Penso
Quoted 1 line

In http://doc.dpdk.org/guides/nics/overview.html, table 1.1 lists

all

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines

supported features.
It has a single line for "Flow API" that refers to rte_flow support. rte_flow is composed of many items and actions that are not expressed in this single line.

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hi Asaf,

I understand the intention, but I am not sure about this.

The Flow API does not provide a capability or feature list in the API

level, by

Quoted 1 line
Quoted 1 line
Quoted 1 line

design, because it is very hard to do it correct, but this patch

tries to do it in the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

documentation level.

This will be missing lots of details, the flow items and actions

documented as

Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

supported may and may not be supported based on the details.

Which missing details are you referring to? All flow items and all

actions are listed.

Quoted 3 lines
Quoted 1 line

Patterns are complex, any rule can be valid or invalid based on provided

pattern

Quoted 1 line

values (details), also any rule can be valid or invalid based on

previous rules

Quoted 3 lines

or configuration.

In practice this information is much more useful if it is provided by

API, but

Quoted 1 line

we are not able to do it because of its complex nature, it should be

same level

Quoted 3 lines

of complexity to provide this information by documentation.

Quoted 1 line
Quoted 1 line

It will be very hard to read this table (when it becomes full), also

will be very hard

Quoted 3 lines
Quoted 3 lines
Quoted 1 line

to maintain.

As part of any documentation change in rte_flow the developer would

also need to update this table.

Quoted 4 lines
Quoted 2 lines

Why would it be very hard to maintain?

Ahh, that sound so simple when you say like this :) In practice even

keeping

Quoted 2 lines

feature list requiring lots of effort, developers are missing/neglecting/ignoring updating documentation when updating the

code.

Quoted 2 lines

And for this case is partially correct table a useful information? If

this is

Quoted 1 line

not completely correct people won't rely on it and it will become just

useless.

Quoted 1 line

So this feature should come with an automated way to detect if a rule

supported

Quoted 1 line

but not documented, or even better this table should be generated from

code

Quoted 8 lines

automatically.

Quoted 6 lines
Quoted 4 lines

Let me start with a question, who do you think will be your consumer? Who will benefit from this table and how?

We get a lot of questions from users regarding rte_flow support and we

do not have a single place with proper documentation.

Quoted 1 line
Quoted 1 line

I can ask the same about the overall feature table, right? There is a

value to document the support.

Quoted 3 lines
Quoted 1 line

Let's discuss the feature table separately, I think that is a valid

question.

Quoted 2 lines

For the rte_flow, who is asking questions? End user, or application

developer?

Quoted 1 line

So is this intended to be a marketing documentation or technical

documentation?

Quoted 2 lines

And what is the nature of the questions, if it is related to the

rte_flow, there

Quoted 4 lines

is already a proper documentation for it:
https://doc.dpdk.org/guides/prog_guide/rte_flow.html

If this question is if any specific rule supported by a specific PMD,

right now

Quoted 1 line

only valid way to say this that I am aware of is, run

'rte_flow_validate()' and see.

Quoted 1 line

Not sure if we can document this properly.

I think in general we are missing a big disclaimer on top of this overview page:
Each feature may have some hardware limitations.

Quoted 7 lines

Then there is a need, both for application developers and end-users, to know which feature can be supported by a PMD,
or which PMD can support a feature.
Yes there are complex limitations with hardware offloads in general. Yes it would be nice to report some tested capabilities with a CI. But it does not mean we should not try to document it in my opinion.

Quoted 5 lines

+1 to all of these.
A document like this will help give an idea on what is possible with the PMD without looking at the code. Beyond that, the user can check with the vendor/developer for specific details if needed.

I am still feeling we are trying to workaround flow API design constrain with documentation, although we know it won't be complete. And not really clear who will benefit from this in what way.

Anyway, as mentioned above I am concerned the maintenance cost, can this series investigate:
1) A way to automatically fill the table from source code
2) A way to check if a patch is adding a new flow support but not documenting it

Also can you please propose a maintainer for it (can be documented in MAINTAINER file) who will be responsible of the correctness of the table, which means:
- Will verify a claimed support by a PMD is really supported
- All flow API features are documented for a PMD
- Changes in the code are reflected to the documentation
- Trace PMD maintainers for missing data

#15 lore raw

18/02/2021 19:45, Ferruh Yigit:

Quoted 101 lines · Ajit Khaparde
Quoted 100 lines · Thomas Monjalon
Quoted 99 lines

17/02/2021 11:37, Ferruh Yigit:

Quoted 81 lines · Asaf Penso
Quoted 16 lines

From: Ferruh Yigit <[email protected]>

Quoted 15 lines · Asaf Penso
Quoted 3 lines

The following new tables are suggested:
1. rte_flow items
2. rte_flow actions

Hi Asaf,

I understand the intention, but I am not sure about this.

The Flow API does not provide a capability or feature list in the API level, by
design, because it is very hard to do it correct, but this patch tries to do it in the
documentation level.

Quoted 7 lines
Quoted 4 lines

This will be missing lots of details, the flow items and actions documented as
supported may and may not be supported based on the details.

Which missing details are you referring to? All flow items and all actions are listed.

Patterns are complex, any rule can be valid or invalid based on provided pattern
values (details), also any rule can be valid or invalid based on previous rules
or configuration.

In practice this information is much more useful if it is provided by API, but
we are not able to do it because of its complex nature, it should be same level
of complexity to provide this information by documentation.

Quoted 6 lines
Quoted 2 lines

It will be very hard to read this table (when it becomes full), also will be very hard to maintain.

As part of any documentation change in rte_flow the developer would also need to update this table.
Why would it be very hard to maintain?

Ahh, that sound so simple when you say like this :) In practice even keeping
feature list requiring lots of effort, developers are missing/neglecting/ignoring updating documentation when updating the code.

And for this case is partially correct table a useful information? If this is
not completely correct people won't rely on it and it will become just useless.
So this feature should come with an automated way to detect if a rule supported
but not documented, or even better this table should be generated from code automatically.

Quoted 8 lines
Quoted 2 lines

Let me start with a question, who do you think will be your consumer? Who will benefit from this table and how?

We get a lot of questions from users regarding rte_flow support and we do not have a single place with proper documentation.
I can ask the same about the overall feature table, right? There is a value to document the support.

Let's discuss the feature table separately, I think that is a valid question.

For the rte_flow, who is asking questions? End user, or application developer?
So is this intended to be a marketing documentation or technical documentation?

And what is the nature of the questions, if it is related to the rte_flow, there
is already a proper documentation for it:
https://doc.dpdk.org/guides/prog_guide/rte_flow.html

Quoted 5 lines

If this question is if any specific rule supported by a specific PMD, right now
only valid way to say this that I am aware of is, run 'rte_flow_validate()' and see.
Not sure if we can document this properly.

I think in general we are missing a big disclaimer on top of this overview page:
Each feature may have some hardware limitations.

Then there is a need, both for application developers and end-users, to know which feature can be supported by a PMD,
or which PMD can support a feature.
Yes there are complex limitations with hardware offloads in general. Yes it would be nice to report some tested capabilities with a CI. But it does not mean we should not try to document it in my opinion.

Quoted 7 lines
Quoted 4 lines

+1 to all of these.
A document like this will help give an idea on what is possible with the PMD without looking at the code. Beyond that, the user can check with the vendor/developer for specific details if needed.

I am still feeling we are trying to workaround flow API design constrain with documentation, although we know it won't be complete.

I disagree, it is not a workaround.
API is for application to work with any hardware. Doc is for users to imagine which feature they could use in which config (HW, DPDK version, etc).

Quoted 1 line

And not really clear who will benefit from this in what way.

End users will be the main users of this doc,
but it will help a lot more people to track what is implemented.

Quoted 3 lines

Anyway, as mentioned above I am concerned the maintenance cost, can this series investigate:
1) A way to automatically fill the table from source code

I am looking at it.

Quoted 1 line

2) A way to check if a patch is adding a new flow support but not documenting it

Looking into it as well.

Quoted 6 lines

Also can you please propose a maintainer for it (can be documented in MAINTAINER file) who will be responsible of the correctness of the table, which means:
- Will verify a claimed support by a PMD is really supported
- All flow API features are documented for a PMD
- Changes in the code are reflected to the documentation
- Trace PMD maintainers for missing data

I'm not sure we should have a maintainer for this single file. With the help of checkpatch script, the responsibility can be shared in the next-net trees, isn't it?

#16 lore raw

v5 cover rte_flow doc matrix

In reply to Asaf Penso

This is an improvement of the rte_flow documentation:
it makes possible to quickly read which items and actions may be accepted by the drivers in a DPDK release.

A script is provided for CI to make sure the matrix is updated, while allowing some manual tuning.

Thomas Monjalon (3):
doc: rename sfc features file
doc: add flow API features tables
devtools: check flow API doc tables

 .gitignore                                    |   2 +
 devtools/check-doc-vs-code.sh                 |  79 ++++++++++++
 devtools/parse-flow-support.sh                |  76 ++++++++++++
 doc/guides/conf.py                            |  18 +--
 doc/guides/nics/features.rst                  |  11 --
 doc/guides/nics/features/bnxt.ini             |  26 +++-
 doc/guides/nics/features/cxgbe.ini            |  31 ++++-
 doc/guides/nics/features/default.ini          | 116 +++++++++++++++++-
 doc/guides/nics/features/dpaa2.ini            |  19 ++-
 doc/guides/nics/features/e1000.ini            |  14 +++
 doc/guides/nics/features/enic.ini             |  29 ++++-
 doc/guides/nics/features/failsafe.ini         |   1 -
 doc/guides/nics/features/hinic.ini            |  16 ++-
 doc/guides/nics/features/hns3.ini             |  23 +++-
 doc/guides/nics/features/hns3_vf.ini          |   1 -
 doc/guides/nics/features/i40e.ini             |  31 ++++-
 doc/guides/nics/features/iavf.ini             |  29 ++++-
 doc/guides/nics/features/ice.ini              |  33 ++++-
 doc/guides/nics/features/ice_dcf.ini          |   1 -
 doc/guides/nics/features/igb.ini              |   1 -
 doc/guides/nics/features/igc.ini              |  12 +-
 doc/guides/nics/features/ipn3ke.ini           |  15 ++-
 doc/guides/nics/features/ixgbe.ini            |  24 +++-
 doc/guides/nics/features/mlx4.ini             |  13 +-
 doc/guides/nics/features/mlx5.ini             |  71 ++++++++++-
 doc/guides/nics/features/mvpp2.ini            |  14 +++
 doc/guides/nics/features/octeontx2.ini        |  42 ++++++-
 doc/guides/nics/features/octeontx2_vec.ini    |   1 -
 doc/guides/nics/features/octeontx2_vf.ini     |   1 -
 doc/guides/nics/features/qede.ini             |  11 +-
 .../nics/features/{sfc_efx.ini => sfc.ini}    |  35 +++++-
 doc/guides/nics/features/tap.ini              |  15 ++-
 doc/guides/nics/features/txgbe.ini            |  24 +++-
 doc/guides/nics/overview.rst                  |   8 ++
 34 files changed, 799 insertions(+), 44 deletions(-)
 create mode 100755 devtools/check-doc-vs-code.sh
 create mode 100755 devtools/parse-flow-support.sh
 rename doc/guides/nics/features/{sfc_efx.ini => sfc.ini} (57%)
Signature · 1 line
2.31.1
#17 lore raw

PATCH v5 1/3 doc: rename sfc features file

The driver directory is drivers/net/sfc
but the features file was doc/guides/nics/features/sfc_efx.ini.

sfc_efx.ini is renamed sfc.ini to match the driver directory name. It will help automatic checks of this file.

---
 doc/guides/nics/features/{sfc_efx.ini => sfc.ini} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename doc/guides/nics/features/{sfc_efx.ini => sfc.ini} (100%)
doc/guides/nics/features/sfc.ini renamed from doc/guides/nics/features/sfc_efx.ini +0 -0
similarity index 100%
rename from doc/guides/nics/features/sfc_efx.ini
rename to doc/guides/nics/features/sfc.ini
Signature · 1 line
2.31.1
#18 lore raw

PATCH v5 2/3 doc: add flow API features tables

In reply to Thomas Monjalon

The NICs overview table lists all supported features per driver. There was a single row for "Flow API",
although rte_flow is composed of many items and actions.

The row "Flow API" is replaced with two new tables for items and actions.

Also, since rte_flow is not implemented in all drivers, it would be ugly to add empty sections in some files. That's why the error message for missing INI section is removed.

The lists are sorted alphabetically.
The extra files for some VF and vectorized data paths are not filled.

---
 .gitignore                                 |   2 +
 doc/guides/conf.py                         |  18 ++--
 doc/guides/nics/features.rst               |  11 --
 doc/guides/nics/features/bnxt.ini          |  26 ++++-
 doc/guides/nics/features/cxgbe.ini         |  31 +++++-
 doc/guides/nics/features/default.ini       | 116 ++++++++++++++++++++-
 doc/guides/nics/features/dpaa2.ini         |  19 +++-
 doc/guides/nics/features/e1000.ini         |  14 +++
 doc/guides/nics/features/enic.ini          |  29 +++++-
 doc/guides/nics/features/failsafe.ini      |   1 -
 doc/guides/nics/features/hinic.ini         |  16 ++-
 doc/guides/nics/features/hns3.ini          |  23 +++-
 doc/guides/nics/features/hns3_vf.ini       |   1 -
 doc/guides/nics/features/i40e.ini          |  31 +++++-
 doc/guides/nics/features/iavf.ini          |  29 +++++-
 doc/guides/nics/features/ice.ini           |  33 +++++-
 doc/guides/nics/features/ice_dcf.ini       |   1 -
 doc/guides/nics/features/igb.ini           |   1 -
 doc/guides/nics/features/igc.ini           |  12 ++-
 doc/guides/nics/features/ipn3ke.ini        |  15 ++-
 doc/guides/nics/features/ixgbe.ini         |  24 ++++-
 doc/guides/nics/features/mlx4.ini          |  13 ++-
 doc/guides/nics/features/mlx5.ini          |  71 ++++++++++++-
 doc/guides/nics/features/mvpp2.ini         |  14 +++
 doc/guides/nics/features/octeontx2.ini     |  42 +++++++-
 doc/guides/nics/features/octeontx2_vec.ini |   1 -
 doc/guides/nics/features/octeontx2_vf.ini  |   1 -
 doc/guides/nics/features/qede.ini          |  11 +-
 doc/guides/nics/features/sfc.ini           |  35 ++++++-
 doc/guides/nics/features/tap.ini           |  15 ++-
 doc/guides/nics/features/txgbe.ini         |  24 ++++-
 doc/guides/nics/overview.rst               |   8 ++
 32 files changed, 644 insertions(+), 44 deletions(-)
.gitignore +2 -0
index f73d93ca53..b19c0717e6 100644
@@ -3,6 +3,8 @@
 
 # ignore generated documentation tables
 doc/guides/nics/overview_table.txt
+doc/guides/nics/rte_flow_actions_table.txt
+doc/guides/nics/rte_flow_items_table.txt
 doc/guides/cryptodevs/overview_feature_table.txt
 doc/guides/cryptodevs/overview_cipher_table.txt
 doc/guides/cryptodevs/overview_auth_table.txt
doc/guides/conf.py +11 -7
index ec59aeae7e..70213843c1 100644
@@ -216,14 +216,8 @@ def generate_overview_table(output_filename, table_id, section, table_name, titl
         # Initialize the dict with the default.ini value.
         ini_data[ini_filename] = valid_features.copy()
 
-        # Check for a valid ini section.
+        # Check for a section.
         if not config.has_section(section):
-            print("{}: File '{}' has no [{}] secton".format(warning,
-                                                            ini_filename,
-                                                            section),
-                                                            file=stderr)
-            if stop_on_error:
-                raise Exception('Warning is treated as a failure')
             continue
 
         # Check for valid features names.
@@ -379,6 +373,16 @@ def setup(app):
                             'Features',
                             'Features availability in networking drivers',
                             'Feature')
+    table_file = dirname(__file__) + '/nics/rte_flow_items_table.txt'
+    generate_overview_table(table_file, 2,
+                            'rte_flow items',
+                            'rte_flow items availability in networking drivers',
+                            'Item')
+    table_file = dirname(__file__) + '/nics/rte_flow_actions_table.txt'
+    generate_overview_table(table_file, 3,
+                            'rte_flow actions',
+                            'rte_flow actions availability in networking drivers',
+                            'Action')
     table_file = dirname(__file__) + '/cryptodevs/overview_feature_table.txt'
     generate_overview_table(table_file, 1,
                             'Features',
doc/guides/nics/features.rst +0 -11
index f6d30d0af3..403c2b03a3 100644
@@ -397,17 +397,6 @@ Supports configuring link flow control.
   ``rte_eth_dev_priority_flow_ctrl_set()``.
 
 
-.. _nic_features_flow_api:
-
-Flow API
---------
-
-Supports flow API family.
-
-* **[implements] eth_dev_ops**: ``flow_ops_get``.
-* **[implements] rte_flow_ops**: ``All``.
-
-
 .. _nic_features_rate_limitation:
 
 Rate limitation
doc/guides/nics/features/bnxt.ini +25 -1
index 79335783ec..291faaad05 100644
@@ -27,7 +27,6 @@ VMDq                 = Y
 SR-IOV               = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -52,3 +51,28 @@ x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
 Perf doc             = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mark                 = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+rss                  = Y
+vf                   = Y
+vxlan_decap          = Y
+vxlan_encap          = Y
doc/guides/nics/features/cxgbe.ini +30 -1
index 276879ec1a..a3ecf12aad 100644
@@ -17,7 +17,6 @@ RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 FEC                  = Y
@@ -34,3 +33,33 @@ Linux                = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+pf                   = Y
+phy_port             = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mac_swap             = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+phy_port             = Y
+queue                = Y
+set_ipv4_dst         = Y
+set_ipv4_src         = Y
+set_ipv6_dst         = Y
+set_ipv6_src         = Y
+set_mac_dst          = Y
+set_mac_src          = Y
+set_tp_dst           = Y
+set_tp_src           = Y
doc/guides/nics/features/default.ini +115 -1

125 lines not on this page · raw message

doc/guides/nics/features/dpaa2.ini +18 -1
index 59bd1a2ced..8e3d74cbb5 100644
@@ -18,7 +18,6 @@ Unicast MAC filter   = Y
 RSS hash             = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 VLAN offload         = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -31,3 +30,21 @@ FW version           = Y
 Linux                = Y
 ARMv8                = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+gre                  = Y
+icmp                 = Y
+ipv4                 = Y
+ipv6                 = Y
+meta                 = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/e1000.ini +14 -0
index 7a224cc535..5af6040e37 100644
@@ -29,3 +29,17 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/enic.ini +28 -1
index 16d6aabe47..a582616c07 100644
@@ -25,7 +25,6 @@ Inner RSS            = Y
 SR-IOV               = Y
 CRC offload          = Y
 VLAN offload         = Y
-Flow API             = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
 Inner L3 checksum    = Y
@@ -39,3 +38,31 @@ Linux                = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+flag                 = Y
+jump                 = Y
+mark                 = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+passthru             = Y
+port_id              = Y
+queue                = Y
+rss                  = Y
+vxlan_decap          = Y
+vxlan_encap          = Y
doc/guides/nics/features/failsafe.ini +0 -1
index b6f3dcee61..8a2b92fc9c 100644
@@ -19,7 +19,6 @@ Unicast MAC filter   = Y
 Multicast MAC filter = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Packet type parsing  = Y
 Basic stats          = Y
 Stats per queue      = Y
doc/guides/nics/features/hinic.ini +15 -1
index 988a0ad574..4ea7368704 100644
@@ -32,10 +32,24 @@ Inner L4 checksum    = Y
 Basic stats          = Y
 Extended stats       = Y
 Stats per queue      = Y
-Flow API             = Y
 Flow control         = Y
 FW version           = Y
 Multiprocess aware   = Y
 Linux                = Y
 x86-64               = Y
 ARMv8                = Y
+
+[rte_flow items]
+any                  = Y
+eth                  = Y
+icmp                 = Y
+icmp6                = Y
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
doc/guides/nics/features/hns3.ini +22 -1
index 3988be4fba..ecb3eed5aa 100644
@@ -26,7 +26,6 @@ RSS reta update      = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 FEC                  = Y
@@ -46,3 +45,25 @@ Module EEPROM dump   = Y
 Multiprocess aware   = Y
 Linux                = Y
 ARMv8                = Y
+
+[rte_flow items]
+eth                  = Y
+geneve               = Y
+icmp                 = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+vxlan_gpe            = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+flag                 = Y
+mark                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/hns3_vf.ini +0 -1
index 1640669a98..489963fafd 100644
@@ -24,7 +24,6 @@ RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
 VLAN filter          = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 L3 checksum offload  = Y
doc/guides/nics/features/i40e.ini +30 -1
index 542432c41d..1f3f5eb3ff 100644
@@ -27,7 +27,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Traffic mirroring    = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -52,3 +51,33 @@ x86-32               = Y
 x86-64               = Y
 ARMv8                = Y
 Power8               = Y
+
+[rte_flow items]
+ah                   = Y
+esp                  = Y
+eth                  = Y
+gre                  = Y
+gtpc                 = Y
+gtpu                 = Y
+ipv4                 = Y
+ipv6                 = Y
+l2tpv3oip            = Y
+mpls                 = Y
+nvgre                = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+flag                 = Y
+mark                 = Y
+passthru             = Y
+pf                   = Y
+queue                = Y
+rss                  = Y
+vf                   = Y
doc/guides/nics/features/iavf.ini +28 -1
index 980680e568..4864c19b57 100644
@@ -19,7 +19,6 @@ Multicast MAC filter = Y
 RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
-Flow API             = Y
 VLAN filter          = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -34,3 +33,31 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+ah                   = Y
+arp_eth_ipv4         = Y
+ecpri                = Y
+esp                  = Y
+eth                  = Y
+gtpc                 = Y
+gtpu                 = Y
+gtp_psc              = Y
+icmp                 = Y
+icmp6                = Y
+ipv4                 = Y
+ipv6                 = Y
+l2tpv3oip            = Y
+pfcp                 = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mark                 = Y
+passthru             = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/ice.ini +32 -1
index e30a7d2e57..c3a8a1b676 100644
@@ -21,7 +21,6 @@ Unicast MAC filter   = Y
 RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
-Flow API             = Y
 VLAN filter          = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -42,3 +41,35 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+ah                   = Y
+arp_eth_ipv4         = Y
+esp                  = Y
+eth                  = Y
+gtpu                 = Y
+gtp_psc              = Y
+icmp                 = Y
+icmp6                = Y
+ipv4                 = Y
+ipv6                 = Y
+l2tpv3oip            = Y
+nvgre                = Y
+pfcp                 = Y
+pppoed               = Y
+pppoes               = Y
+pppoe_proto_id       = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mark                 = Y
+passthru             = Y
+queue                = Y
+rss                  = Y
+vf                   = Y
doc/guides/nics/features/ice_dcf.ini +0 -1
index f4998152df..ae79b6a515 100644
@@ -8,7 +8,6 @@ Queue start/stop     = Y
 Jumbo frame          = Y
 Scattered Rx         = Y
 RSS hash             = P
-Flow API             = Y
 CRC offload          = Y
 L3 checksum offload  = P
 L4 checksum offload  = P
doc/guides/nics/features/igb.ini +0 -1
index 2925a8031d..f4f6e9a4cb 100644
@@ -24,7 +24,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 QinQ offload         = Y
doc/guides/nics/features/igc.ini +11 -1
index 300d37e81a..f810c2df4e 100644
@@ -32,6 +32,16 @@ RSS key update       = Y
 RSS reta update      = Y
 VLAN filter          = Y
 VLAN offload         = Y
-Flow API             = P
 Linux                = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+
+[rte_flow actions]
+queue                = Y
+rss                  = Y
doc/guides/nics/features/ipn3ke.ini +14 -1
index 82de553eb2..5586f7cb33 100644
@@ -26,7 +26,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Traffic mirroring    = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -48,3 +47,17 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+mpls                 = Y
+nvgre                = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+mark                 = Y
doc/guides/nics/features/ixgbe.ini +23 -1
index c5e6e14aac..93a9cc18ab 100644
@@ -26,7 +26,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Rate limitation      = Y
 Traffic mirroring    = Y
 Inline crypto        = Y
@@ -55,3 +54,26 @@ Linux                = Y
 ARMv8                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+e_tag                = Y
+fuzzy                = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+mark                 = Y
+pf                   = Y
+queue                = Y
+rss                  = Y
+security             = Y
+vf                   = Y
doc/guides/nics/features/mlx4.ini +12 -1
index ebb9ccf767..c394dfcefe 100644
@@ -22,7 +22,6 @@ RSS hash             = Y
 SR-IOV               = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -38,3 +37,15 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/mlx5.ini +70 -1

80 lines not on this page · raw message

doc/guides/nics/features/mvpp2.ini +14 -0
index ef47546d1c..2ce0ca817a 100644
@@ -23,3 +23,17 @@ Basic stats          = Y
 Extended stats       = Y
 ARMv8                = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+raw                  = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+meter                = Y
+queue                = Y
doc/guides/nics/features/octeontx2.ini +41 -1

51 lines not on this page · raw message

doc/guides/nics/features/octeontx2_vec.ini +0 -1
index 7025e140ad..376a1d6cc1 100644
@@ -27,7 +27,6 @@ RSS reta update      = Y
 Inner RSS            = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Rate limitation      = Y
 Jumbo frame          = Y
 VLAN offload         = Y
doc/guides/nics/features/octeontx2_vf.ini +0 -1
index 7f5e5b8bba..8141aadf85 100644
@@ -23,7 +23,6 @@ RSS reta update      = Y
 Inner RSS            = Y
 Inline protocol      = Y
 VLAN filter          = Y
-Flow API             = Y
 Rate limitation      = Y
 Jumbo frame          = Y
 Scattered Rx         = Y
doc/guides/nics/features/qede.ini +10 -1
index 852cecb3d3..e65d5d076e 100644
@@ -20,7 +20,6 @@ RSS key update       = Y
 RSS reta update      = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 L3 checksum offload  = Y
@@ -39,3 +38,13 @@ ARMv8                = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
doc/guides/nics/features/sfc.ini +34 -1
index 7e29568e5f..9e66ec4293 100644
@@ -24,7 +24,6 @@ RSS key update       = Y
 RSS reta update      = Y
 SR-IOV               = Y
 Flow control         = Y
-Flow API             = Y
 VLAN offload         = P
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -41,3 +40,37 @@ FreeBSD              = Y
 Linux                = Y
 ARMv8                = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+geneve               = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+pppoed               = Y
+pppoes               = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+flag                 = Y
+mark                 = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+queue                = Y
+rss                  = Y
+vf                   = Y
+vxlan_decap          = Y
+vxlan_encap          = Y
doc/guides/nics/features/tap.ini +14 -1
index be5e53dbe9..b4a356e5d5 100644
@@ -11,7 +11,6 @@ Rx interrupt         = Y
 Promiscuous mode     = Y
 Allmulticast mode    = Y
 Basic stats          = Y
-Flow API             = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
 MTU update           = Y
@@ -26,3 +25,17 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+passthru             = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/txgbe.ini +23 -1
index a3fdee9f8a..61cb3f6d9f 100644
@@ -26,7 +26,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Rate limitation      = Y
 Inline crypto        = Y
 CRC offload          = P
@@ -52,3 +51,26 @@ Linux                = Y
 ARMv8                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+e_tag                = Y
+fuzzy                = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+mark                 = Y
+pf                   = Y
+queue                = Y
+rss                  = Y
+security             = Y
+vf                   = Y
doc/guides/nics/overview.rst +8 -0
index 20cd52b097..67575c699c 100644
@@ -32,3 +32,11 @@ More details about features can be found in :doc:`features`.
 
    Features marked with "P" are partially supported. Refer to the appropriate
    NIC guide in the following sections for details.
+
+.. include:: rte_flow_items_table.txt
+
+.. include:: rte_flow_actions_table.txt
+
+.. Note::
+
+   rte_flow actions marked with "I" can be indirect as well.
Signature · 1 line
2.31.1
Acked-by on v5 2/3
#19 lore raw

Re: [dpdk-dev] [EXT] [PATCH v5 2/3] doc: add flow API features tables

Quoted 43 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Thursday, April 8, 2021 4:03 AM
To: [email protected]
Cc: [email protected]; [email protected]; Asaf Penso <[email protected]>; Ajit Khaparde <[email protected]>; Somnath Kotur <[email protected]>; Rahul Lakkireddy <[email protected]>; Hemant Agrawal <[email protected]>; Sachin Saxena <[email protected]>; Jeff Guo <[email protected]>; Haiyue Wang <[email protected]>; John Daley <[email protected]>; Hyong Youb Kim <[email protected]>; Gaetan Rivet <[email protected]>; Ziyang Xuan <[email protected]>; Xiaoyun Wang <[email protected]>; Guoyang Zhou <[email protected]>; Min Hu (Connor) <[email protected]>; Yisen Zhuang <[email protected]>; Lijun Ou <[email protected]>; Beilei Xing <[email protected]>; Jingjing Wu <[email protected]>; Qiming Yang <[email protected]>; Qi Zhang <[email protected]>; Rosen Xu <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Viacheslav Ovsiienko <[email protected]>; Liron Himi <[email protected]>; Jerin Jacob Kollanukkaran <[email protected]>; Nithin Kumar Dabilpuram <[email protected]>; Kiran Kumar Kokkilagadda <[email protected]>; Rasesh Mody <[email protected]>; Devendra Singh Rawat <[email protected]>; Igor Russkikh <[email protected]>; Keith Wiles <[email protected]>; Jiawen Wu <[email protected]>; Jian Wang <[email protected]>
Subject: [EXT] [PATCH v5 2/3] doc: add flow API features tables

External Email

----------------------------------------------------------------------
The NICs overview table lists all supported features per driver. There was a single row for "Flow API",
although rte_flow is composed of many items and actions.

The row "Flow API" is replaced with two new tables for items and actions.

Also, since rte_flow is not implemented in all drivers, it would be ugly to add empty sections in some files.
That's why the error message for missing INI section is removed.

Quoted 5 lines

The lists are sorted alphabetically.
The extra files for some VF and vectorized data paths are not filled.

Quoted 1,170 lines
---
 .gitignore                                 |   2 +
 doc/guides/conf.py                         |  18 ++--
 doc/guides/nics/features.rst               |  11 --
 doc/guides/nics/features/bnxt.ini          |  26 ++++-
 doc/guides/nics/features/cxgbe.ini         |  31 +++++-
 doc/guides/nics/features/default.ini       | 116 ++++++++++++++++++++-
 doc/guides/nics/features/dpaa2.ini         |  19 +++-
 doc/guides/nics/features/e1000.ini         |  14 +++
 doc/guides/nics/features/enic.ini          |  29 +++++-
 doc/guides/nics/features/failsafe.ini      |   1 -
 doc/guides/nics/features/hinic.ini         |  16 ++-
 doc/guides/nics/features/hns3.ini          |  23 +++-
 doc/guides/nics/features/hns3_vf.ini       |   1 -
 doc/guides/nics/features/i40e.ini          |  31 +++++-
 doc/guides/nics/features/iavf.ini          |  29 +++++-
 doc/guides/nics/features/ice.ini           |  33 +++++-
 doc/guides/nics/features/ice_dcf.ini       |   1 -
 doc/guides/nics/features/igb.ini           |   1 -
 doc/guides/nics/features/igc.ini           |  12 ++-
 doc/guides/nics/features/ipn3ke.ini        |  15 ++-
 doc/guides/nics/features/ixgbe.ini         |  24 ++++-
 doc/guides/nics/features/mlx4.ini          |  13 ++-
 doc/guides/nics/features/mlx5.ini          |  71 ++++++++++++-
 doc/guides/nics/features/mvpp2.ini         |  14 +++
 doc/guides/nics/features/octeontx2.ini     |  42 +++++++-
 doc/guides/nics/features/octeontx2_vec.ini |   1 -
 doc/guides/nics/features/octeontx2_vf.ini  |   1 -
 doc/guides/nics/features/qede.ini          |  11 +-
 doc/guides/nics/features/sfc.ini           |  35 ++++++-
 doc/guides/nics/features/tap.ini           |  15 ++-
 doc/guides/nics/features/txgbe.ini         |  24 ++++-
 doc/guides/nics/overview.rst               |   8 ++
 32 files changed, 644 insertions(+), 44 deletions(-)
.gitignore +2 -0
index f73d93ca53..b19c0717e6 100644
@@ -3,6 +3,8 @@
 
 # ignore generated documentation tables  doc/guides/nics/overview_table.txt
+doc/guides/nics/rte_flow_actions_table.txt
+doc/guides/nics/rte_flow_items_table.txt
 doc/guides/cryptodevs/overview_feature_table.txt
 doc/guides/cryptodevs/overview_cipher_table.txt
 doc/guides/cryptodevs/overview_auth_table.txt
doc/guides/conf.py index renamed from doc/guides/conf.py +0 -0

ec59aeae7e..70213843c1 100644

doc/guides/conf.py +0 -0
@@ -216,14 +216,8 @@ def generate_overview_table(output_filename,

table_id, section, table_name, titl
# Initialize the dict with the default.ini value. ini_data[ini_filename] = valid_features.copy()

doc/guides/conf.py +11 -7
-        # Check for a valid ini section.
+        # Check for a section.
         if not config.has_section(section):
-            print("{}: File '{}' has no [{}] secton".format(warning,
-                                                            ini_filename,
-                                                            section),
-                                                            file=stderr)
-            if stop_on_error:
-                raise Exception('Warning is treated as a failure')
             continue
 
         # Check for valid features names.
@@ -379,6 +373,16 @@ def setup(app):
                             'Features',
                             'Features availability in networking drivers',
                             'Feature')
+    table_file = dirname(__file__) + '/nics/rte_flow_items_table.txt'
+    generate_overview_table(table_file, 2,
+                            'rte_flow items',
+                            'rte_flow items availability in networking drivers',
+                            'Item')
+    table_file = dirname(__file__) + '/nics/rte_flow_actions_table.txt'
+    generate_overview_table(table_file, 3,
+                            'rte_flow actions',
+                            'rte_flow actions availability in networking drivers',
+                            'Action')
     table_file = dirname(__file__) + '/cryptodevs/overview_feature_table.txt'
     generate_overview_table(table_file, 1,
                             'Features', diff --git a/doc/guides/nics/features.rst

b/doc/guides/nics/features.rst index f6d30d0af3..403c2b03a3 100644

doc/guides/nics/features.rst +0 -11
@@ -397,17 +397,6 @@ Supports configuring link flow control.
   ``rte_eth_dev_priority_flow_ctrl_set()``.
 
 
-.. _nic_features_flow_api:
-
-Flow API
---------
-
-Supports flow API family.
-
-* **[implements] eth_dev_ops**: ``flow_ops_get``.
-* **[implements] rte_flow_ops**: ``All``.
-
-
 .. _nic_features_rate_limitation:
 
 Rate limitation
doc/guides/nics/features/bnxt.ini +25 -1
index 79335783ec..291faaad05 100644
@@ -27,7 +27,6 @@ VMDq                 = Y
 SR-IOV               = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -52,3 +51,28 @@ x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
 Perf doc             = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mark                 = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+rss                  = Y
+vf                   = Y
+vxlan_decap          = Y
+vxlan_encap          = Y
doc/guides/nics/features/cxgbe.ini +30 -1
index 276879ec1a..a3ecf12aad 100644
@@ -17,7 +17,6 @@ RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 FEC                  = Y
@@ -34,3 +33,33 @@ Linux                = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+pf                   = Y
+phy_port             = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mac_swap             = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+phy_port             = Y
+queue                = Y
+set_ipv4_dst         = Y
+set_ipv4_src         = Y
+set_ipv6_dst         = Y
+set_ipv6_src         = Y
+set_mac_dst          = Y
+set_mac_src          = Y
+set_tp_dst           = Y
+set_tp_src           = Y
doc/guides/nics/features/default.ini +115 -1
index 8046bd121e..f16cbb66e3 100644
@@ -38,7 +38,6 @@ SR-IOV               =
 DCB                  =
 VLAN filter          =
 Flow control         =
-Flow API             =
 Rate limitation      =
 Traffic mirroring    =
 Inline crypto        =
@@ -77,3 +76,118 @@ x86-64               =
 Usage doc            =
 Design doc           =
 Perf doc             =
+
+[rte_flow items]
+ah                   =
+any                  =
+arp_eth_ipv4         =
+ecpri                =
+esp                  =
+eth                  =
+e_tag                =
+fuzzy                =
+geneve               =
+geneve_opt           =
+gre                  =
+gre_key              =
+gtp                  =
+gtpc                 =
+gtpu                 =
+gtp_psc              =
+higig2               =
+icmp                 =
+icmp6                =
+icmp6_nd_na          =
+icmp6_nd_ns          =
+icmp6_nd_opt         =
+icmp6_nd_opt_sla_eth =
+icmp6_nd_opt_tla_eth =
+igmp                 =
+invert               =
+ipv4                 =
+ipv6                 =
+ipv6_ext             =
+ipv6_frag_ext        =
+l2tpv3oip            =
+mark                 =
+meta                 =
+mpls                 =
+nsh                  =
+nvgre                =
+pf                   =
+pfcp                 =
+phy_port             =
+port_id              =
+pppoe                =
+pppoed               =
+pppoes               =
+pppoe_proto_id       =
+raw                  =
+sctp                 =
+tag                  =
+tcp                  =
+udp                  =
+vf                   =
+vlan                 =
+void                 =
+vxlan                =
+vxlan_gpe            =
+
+[rte_flow actions]
+age                  =
+count                =
+dec_tcp_ack          =
+dec_tcp_seq          =
+dec_ttl              =
+drop                 =
+flag                 =
+inc_tcp_ack          =
+inc_tcp_seq          =
+jump                 =
+mac_swap             =
+mark                 =
+meter                =
+modify_field         =
+nvgre_decap          =
+nvgre_encap          =
+of_copy_ttl_in       =
+of_copy_ttl_out      =
+of_dec_mpls_ttl      =
+of_dec_nw_ttl        =
+of_pop_mpls          =
+of_pop_vlan          =
+of_push_mpls         =
+of_push_vlan         =
+of_set_mpls_ttl      =
+of_set_nw_ttl        =
+of_set_vlan_pcp      =
+of_set_vlan_vid      =
+passthru             =
+pf                   =
+phy_port             =
+port_id              =
+queue                =
+raw_decap            =
+raw_encap            =
+rss                  =
+sample               =
+security             =
+set_ipv4_dscp        =
+set_ipv4_dst         =
+set_ipv4_src         =
+set_ipv6_dscp        =
+set_ipv6_dst         =
+set_ipv6_src         =
+set_mac              =
+set_mac_dst          =
+set_mac_src          =
+set_meta             =
+set_tag              =
+set_tp_dst           =
+set_tp_src           =
+set_ttl              =
+shared               =
+vf                   =
+void                 =
+vxlan_decap          =
+vxlan_encap          =
doc/guides/nics/features/dpaa2.ini +18 -1
index 59bd1a2ced..8e3d74cbb5 100644
@@ -18,7 +18,6 @@ Unicast MAC filter   = Y
 RSS hash             = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 VLAN offload         = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -31,3 +30,21 @@ FW version           = Y
 Linux                = Y
 ARMv8                = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+gre                  = Y
+icmp                 = Y
+ipv4                 = Y
+ipv6                 = Y
+meta                 = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/e1000.ini +14 -0
index 7a224cc535..5af6040e37 100644
@@ -29,3 +29,17 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/enic.ini +28 -1
index 16d6aabe47..a582616c07 100644
@@ -25,7 +25,6 @@ Inner RSS            = Y
 SR-IOV               = Y
 CRC offload          = Y
 VLAN offload         = Y
-Flow API             = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
 Inner L3 checksum    = Y
@@ -39,3 +38,31 @@ Linux                = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+flag                 = Y
+jump                 = Y
+mark                 = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+passthru             = Y
+port_id              = Y
+queue                = Y
+rss                  = Y
+vxlan_decap          = Y
+vxlan_encap          = Y
doc/guides/nics/features/failsafe.ini +0 -1
index b6f3dcee61..8a2b92fc9c 100644
@@ -19,7 +19,6 @@ Unicast MAC filter   = Y
 Multicast MAC filter = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Packet type parsing  = Y
 Basic stats          = Y
 Stats per queue      = Y
doc/guides/nics/features/hinic.ini +15 -1
index 988a0ad574..4ea7368704 100644
@@ -32,10 +32,24 @@ Inner L4 checksum    = Y
 Basic stats          = Y
 Extended stats       = Y
 Stats per queue      = Y
-Flow API             = Y
 Flow control         = Y
 FW version           = Y
 Multiprocess aware   = Y
 Linux                = Y
 x86-64               = Y
 ARMv8                = Y
+
+[rte_flow items]
+any                  = Y
+eth                  = Y
+icmp                 = Y
+icmp6                = Y
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
doc/guides/nics/features/hns3.ini +22 -1
index 3988be4fba..ecb3eed5aa 100644
@@ -26,7 +26,6 @@ RSS reta update      = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 FEC                  = Y
@@ -46,3 +45,25 @@ Module EEPROM dump   = Y
 Multiprocess aware   = Y
 Linux                = Y
 ARMv8                = Y
+
+[rte_flow items]
+eth                  = Y
+geneve               = Y
+icmp                 = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+vxlan_gpe            = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+flag                 = Y
+mark                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/hns3_vf.ini +0 -1
index 1640669a98..489963fafd 100644
@@ -24,7 +24,6 @@ RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
 VLAN filter          = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 L3 checksum offload  = Y
doc/guides/nics/features/i40e.ini +30 -1
index 542432c41d..1f3f5eb3ff 100644
@@ -27,7 +27,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Traffic mirroring    = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -52,3 +51,33 @@ x86-32               = Y
 x86-64               = Y
 ARMv8                = Y
 Power8               = Y
+
+[rte_flow items]
+ah                   = Y
+esp                  = Y
+eth                  = Y
+gre                  = Y
+gtpc                 = Y
+gtpu                 = Y
+ipv4                 = Y
+ipv6                 = Y
+l2tpv3oip            = Y
+mpls                 = Y
+nvgre                = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+flag                 = Y
+mark                 = Y
+passthru             = Y
+pf                   = Y
+queue                = Y
+rss                  = Y
+vf                   = Y
doc/guides/nics/features/iavf.ini +28 -1
index 980680e568..4864c19b57 100644
@@ -19,7 +19,6 @@ Multicast MAC filter = Y
 RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
-Flow API             = Y
 VLAN filter          = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -34,3 +33,31 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+ah                   = Y
+arp_eth_ipv4         = Y
+ecpri                = Y
+esp                  = Y
+eth                  = Y
+gtpc                 = Y
+gtpu                 = Y
+gtp_psc              = Y
+icmp                 = Y
+icmp6                = Y
+ipv4                 = Y
+ipv6                 = Y
+l2tpv3oip            = Y
+pfcp                 = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mark                 = Y
+passthru             = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/ice.ini +32 -1
index e30a7d2e57..c3a8a1b676 100644
@@ -21,7 +21,6 @@ Unicast MAC filter   = Y
 RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
-Flow API             = Y
 VLAN filter          = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -42,3 +41,35 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+ah                   = Y
+arp_eth_ipv4         = Y
+esp                  = Y
+eth                  = Y
+gtpu                 = Y
+gtp_psc              = Y
+icmp                 = Y
+icmp6                = Y
+ipv4                 = Y
+ipv6                 = Y
+l2tpv3oip            = Y
+nvgre                = Y
+pfcp                 = Y
+pppoed               = Y
+pppoes               = Y
+pppoe_proto_id       = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mark                 = Y
+passthru             = Y
+queue                = Y
+rss                  = Y
+vf                   = Y
doc/guides/nics/features/ice_dcf.ini +0 -1
index f4998152df..ae79b6a515 100644
@@ -8,7 +8,6 @@ Queue start/stop     = Y
 Jumbo frame          = Y
 Scattered Rx         = Y
 RSS hash             = P
-Flow API             = Y
 CRC offload          = Y
 L3 checksum offload  = P
 L4 checksum offload  = P
doc/guides/nics/features/igb.ini +0 -1
index 2925a8031d..f4f6e9a4cb 100644
@@ -24,7 +24,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 QinQ offload         = Y
doc/guides/nics/features/igc.ini +11 -1
index 300d37e81a..f810c2df4e 100644
@@ -32,6 +32,16 @@ RSS key update       = Y
 RSS reta update      = Y
 VLAN filter          = Y
 VLAN offload         = Y
-Flow API             = P
 Linux                = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+
+[rte_flow actions]
+queue                = Y
+rss                  = Y
doc/guides/nics/features/ipn3ke.ini +14 -1
index 82de553eb2..5586f7cb33 100644
@@ -26,7 +26,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Traffic mirroring    = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -48,3 +47,17 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+mpls                 = Y
+nvgre                = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+mark                 = Y
doc/guides/nics/features/ixgbe.ini +23 -1
index c5e6e14aac..93a9cc18ab 100644
@@ -26,7 +26,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Rate limitation      = Y
 Traffic mirroring    = Y
 Inline crypto        = Y
@@ -55,3 +54,26 @@ Linux                = Y
 ARMv8                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+e_tag                = Y
+fuzzy                = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+mark                 = Y
+pf                   = Y
+queue                = Y
+rss                  = Y
+security             = Y
+vf                   = Y
doc/guides/nics/features/mlx4.ini +12 -1
index ebb9ccf767..c394dfcefe 100644
@@ -22,7 +22,6 @@ RSS hash             = Y
 SR-IOV               = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -38,3 +37,15 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/mlx5.ini +70 -1
index ddd131da16..15b1897c21 100644
@@ -28,7 +28,6 @@ Inner RSS            = Y
 SR-IOV               = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 L3 checksum offload  = Y
@@ -52,3 +51,73 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+ecpri                = Y
+eth                  = Y
+geneve               = Y
+geneve_opt           = Y
+gre                  = Y
+gre_key              = Y
+gtp                  = Y
+gtp_psc              = Y
+icmp                 = Y
+icmp6                = Y
+ipv4                 = Y
+ipv6                 = Y
+ipv6_frag_ext        = Y
+mark                 = Y
+meta                 = Y
+mpls                 = Y
+nvgre                = Y
+phy_port             = Y
+port_id              = Y
+tag                  = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+vxlan_gpe            = Y
+
+[rte_flow actions]
+age                  = I
+count                = Y
+dec_tcp_ack          = Y
+dec_tcp_seq          = Y
+dec_ttl              = Y
+drop                 = Y
+flag                 = Y
+inc_tcp_ack          = Y
+inc_tcp_seq          = Y
+jump                 = Y
+mark                 = Y
+meter                = Y
+modify_field         = Y
+nvgre_decap          = Y
+nvgre_encap          = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+port_id              = Y
+queue                = Y
+raw_decap            = Y
+raw_encap            = Y
+rss                  = I
+sample               = Y
+set_ipv4_dscp        = Y
+set_ipv4_dst         = Y
+set_ipv4_src         = Y
+set_ipv6_dscp        = Y
+set_ipv6_dst         = Y
+set_ipv6_src         = Y
+set_mac_dst          = Y
+set_mac_src          = Y
+set_meta             = Y
+set_tag              = Y
+set_tp_dst           = Y
+set_tp_src           = Y
+set_ttl              = Y
+shared               = Y
+vxlan_decap          = Y
+vxlan_encap          = Y
doc/guides/nics/features/mvpp2.ini +14 -0
index ef47546d1c..2ce0ca817a 100644
@@ -23,3 +23,17 @@ Basic stats          = Y
 Extended stats       = Y
 ARMv8                = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+raw                  = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+meter                = Y
+queue                = Y
doc/guides/nics/features/octeontx2.ini +41 -1
index c0bcb8278e..fa49868cb3 100644
@@ -30,7 +30,6 @@ Inner RSS            = Y
 Inline protocol      = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Rate limitation      = Y
 Jumbo frame          = Y
 Scattered Rx         = Y
@@ -54,3 +53,44 @@ Registers dump       = Y
 Linux                = Y
 ARMv8                = Y
 Usage doc            = Y
+
+[rte_flow items]
+any                  = Y
+arp_eth_ipv4         = Y
+esp                  = Y
+eth                  = Y
+e_tag                = Y
+geneve               = Y
+gre                  = Y
+gre_key              = Y
+gtpc                 = Y
+gtpu                 = Y
+higig2               = Y
+icmp                 = Y
+ipv4                 = Y
+ipv6                 = Y
+ipv6_ext             = Y
+mpls                 = Y
+nvgre                = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+vxlan_gpe            = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+flag                 = Y
+mark                 = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+pf                   = Y
+queue                = Y
+rss                  = Y
+security             = Y
+vf                   = Y
doc/guides/nics/features/octeontx2_vec.ini +0 -1
index 7025e140ad..376a1d6cc1 100644
@@ -27,7 +27,6 @@ RSS reta update      = Y
 Inner RSS            = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Rate limitation      = Y
 Jumbo frame          = Y
 VLAN offload         = Y
doc/guides/nics/features/octeontx2_vf.ini +0 -1
index 7f5e5b8bba..8141aadf85 100644
@@ -23,7 +23,6 @@ RSS reta update      = Y
 Inner RSS            = Y
 Inline protocol      = Y
 VLAN filter          = Y
-Flow API             = Y
 Rate limitation      = Y
 Jumbo frame          = Y
 Scattered Rx         = Y
doc/guides/nics/features/qede.ini +10 -1
index 852cecb3d3..e65d5d076e 100644
@@ -20,7 +20,6 @@ RSS key update       = Y
 RSS reta update      = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 L3 checksum offload  = Y
@@ -39,3 +38,13 @@ ARMv8                = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
doc/guides/nics/features/sfc.ini +34 -1
index 7e29568e5f..9e66ec4293 100644
@@ -24,7 +24,6 @@ RSS key update       = Y
 RSS reta update      = Y
 SR-IOV               = Y
 Flow control         = Y
-Flow API             = Y
 VLAN offload         = P
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -41,3 +40,37 @@ FreeBSD              = Y
 Linux                = Y
 ARMv8                = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+geneve               = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+pppoed               = Y
+pppoes               = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+flag                 = Y
+mark                 = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+queue                = Y
+rss                  = Y
+vf                   = Y
+vxlan_decap          = Y
+vxlan_encap          = Y
doc/guides/nics/features/tap.ini +14 -1
index be5e53dbe9..b4a356e5d5 100644
@@ -11,7 +11,6 @@ Rx interrupt         = Y
 Promiscuous mode     = Y
 Allmulticast mode    = Y
 Basic stats          = Y
-Flow API             = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
 MTU update           = Y
@@ -26,3 +25,17 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+passthru             = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/txgbe.ini +23 -1
index a3fdee9f8a..61cb3f6d9f 100644
@@ -26,7 +26,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Rate limitation      = Y
 Inline crypto        = Y
 CRC offload          = P
@@ -52,3 +51,26 @@ Linux                = Y
 ARMv8                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+e_tag                = Y
+fuzzy                = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+mark                 = Y
+pf                   = Y
+queue                = Y
+rss                  = Y
+security             = Y
+vf                   = Y
doc/guides/nics/overview.rst index renamed from doc/guides/nics/overview.rst +0 -0

20cd52b097..67575c699c 100644

doc/guides/nics/overview.rst +0 -0
@@ -32,3 +32,11 @@ More details about features can be found in

:doc:features.

Features marked with "P" are partially supported. Refer to the appropriate NIC guide in the following sections for details.

doc/guides/nics/overview.rst +8 -1
+
+.. include:: rte_flow_items_table.txt
+
+.. include:: rte_flow_actions_table.txt
+
+.. Note::
+
+   rte_flow actions marked with "I" can be indirect as well.
--

2.31.1

#20 lore raw

Re: [dpdk-dev] [PATCH v5 2/3] doc: add flow API features tables

In reply to Thomas Monjalon
Quoted 15 lines · Thomas Monjalon

The NICs overview table lists all supported features per driver. There was a single row for "Flow API",
although rte_flow is composed of many items and actions.

The row "Flow API" is replaced with two new tables for items and actions.

Also, since rte_flow is not implemented in all drivers, it would be ugly to add empty sections in some files. That's why the error message for missing INI section is removed.

The lists are sorted alphabetically.
The extra files for some VF and vectorized data paths are not filled.

<...>

Quoted 14 lines

+[rte_flow items]

doc/guides/nics/features/bnxt.ini +13 -0
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]

doc/guides/nics/features/bnxt.ini x86-32 = Y · line 78

Quoted 10 lines
doc/guides/nics/features/bnxt.ini +10 -0
+count                = Y
+drop                 = Y
+mark                 = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+rss                  = Y
+vf                   = Y
+vxlan_decap          = Y
+vxlan_encap          = Y

Indeed this is a matrix, isn't it, not all flow items support all flow actions, but not sure if it is possible to figure out that matrix.

#21 lore raw

Re: [dpdk-dev] [PATCH v5 2/3] doc: add flow API features tables

14/05/2021 12:42, Ferruh Yigit:

Quoted 38 lines · Thomas Monjalon
Quoted 15 lines

The NICs overview table lists all supported features per driver. There was a single row for "Flow API",
although rte_flow is composed of many items and actions.

The row "Flow API" is replaced with two new tables for items and actions.

Also, since rte_flow is not implemented in all drivers, it would be ugly to add empty sections in some files. That's why the error message for missing INI section is removed.

The lists are sorted alphabetically.
The extra files for some VF and vectorized data paths are not filled.

<...>

Quoted 19 lines

+[rte_flow items]

doc/guides/nics/features/bnxt.ini +18 -0
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mark                 = Y
+pf                   = Y
+phy_port             = Y
Quoted 8 lines

doc/guides/nics/features/bnxt.ini x86-32 = Y · line 78

Quoted 5 lines
doc/guides/nics/features/bnxt.ini +5 -0
+port_id              = Y
+rss                  = Y
+vf                   = Y
+vxlan_decap          = Y
+vxlan_encap          = Y

Indeed this is a matrix, isn't it, not all flow items support all flow actions, but not sure if it is possible to figure out that matrix.

We cannot express combinations and limitations here. It is just showing some basic capabilities without limitations. For more complete description, it must be noted in the guide.

#22 lore raw

PATCH v5 3/3 devtools: check flow API doc tables

In reply to Thomas Monjalon

The script check-doc-vs-code.sh may be used to add some automatic checks of the doc.

If run without any argument, a complete check is done. The optional argument is a git history reference point to check faster only what has changed since this commit.

In this commit, the only check is for rte_flow tables, achieved through the script parse-flow-support.sh. If run without a .ini reference, it prints rte_flow tables.
Note: detected features are marked with the value Y, while the real .ini file could have special values like I. The script allow parsing exceptions (exclude or include), like for bnxt code which lists unsupported items and actions.

---
 devtools/check-doc-vs-code.sh  | 79 ++++++++++++++++++++++++++++++++++
 devtools/parse-flow-support.sh | 76 ++++++++++++++++++++++++++++++++
 2 files changed, 155 insertions(+)
 create mode 100755 devtools/check-doc-vs-code.sh
 create mode 100755 devtools/parse-flow-support.sh
devtools/check-doc-vs-code.sh new file +79 -0
new file mode 100755
index 0000000000..6e53d66899
@@ -0,0 +1,79 @@
+#! /bin/sh -e
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2021 Mellanox Technologies, Ltd
+
+# Check whether doc & code are in sync.
+# Optional argument: check only what changed since a commit.
+trusted_commit=$1 # example: origin/main
+
+selfdir=$(dirname $(readlink -f $0))
+rootdir=$(readlink -f $selfdir/..)
+
+result=0
+
+# speed up by ignoring Unicode details
+export LC_COLLATE=C
+
+changed_files()
+{
+	[ -n "$files" ] ||
+		files=$(git diff-tree --name-only -r $trusted_commit..)
+	echo "$files"
+}
+
+has_code_change() # <pattern>
+{
+	test -n "$(git log --format='%h' -S"$1" $trusted_commit..)"
+}
+
+has_file_change() # <pattern>
+{
+	changed_files | grep -q "$1"
+}
+
+changed_net_drivers()
+{
+	net_paths='drivers/net/|doc/guides/nics/features/'
+	[ -n "$drivers" ] ||
+		drivers=$(changed_files |
+			sed -rn "s,^($net_paths)([^./]*).*,\2,p")
+	echo "$drivers"
+}
+
+all_net_drivers()
+{
+	find $rootdir/drivers/net -mindepth 1 -maxdepth 1 -type d |
+	sed 's,.*/,,' |
+	sort
+}
+
+check_rte_flow() # <driver>
+{
+	code=$rootdir/drivers/net/$1
+	doc=$rootdir/doc/guides/nics/features/$1.ini
+	[ -d $code ] || return 0
+	[ -f $doc ] || return 0
+	report=$($selfdir/parse-flow-support.sh $code $doc)
+	if [ -n "$report" ]; then
+		echo "rte_flow doc out of sync for $1"
+		echo "$report" | sed 's,^,\t,'
+		result=$(($result + 1))
+	fi
+}
+
+if [ -z "$trusted_commit" ]; then
+	# check all
+	for driver in $(all_net_drivers); do
+		check_rte_flow $driver
+	done
+	exit $result
+fi
+
+# find what changed and check
+if has_code_change 'RTE_FLOW_.*_TYPE_' ||
+		has_file_change 'doc/guides/nics/features'; then
+	for driver in $(changed_net_drivers); do
+		check_rte_flow $driver
+	done
+fi
+exit $result
devtools/parse-flow-support.sh new file +76 -0

76 lines not on this page · raw message

Signature · 1 line
2.31.1
#23 lore raw

Re: [dpdk-dev] [PATCH v5 3/3] devtools: check flow API doc tables

Quoted 7 lines · Thomas Monjalon

The script check-doc-vs-code.sh may be used to add some automatic checks of the doc.

If run without any argument, a complete check is done. The optional argument is a git history reference point to check faster only what has changed since this commit.

Quoted 8 lines

In this commit, the only check is for rte_flow tables, achieved through the script parse-flow-support.sh. If run without a .ini reference, it prints rte_flow tables.
Note: detected features are marked with the value Y, while the real .ini file could have special values like I. The script allow parsing exceptions (exclude or include), like for bnxt code which lists unsupported items and actions.

Thanks for the scripts.

Quoted 45 lines
---
 devtools/check-doc-vs-code.sh  | 79 ++++++++++++++++++++++++++++++++++
 devtools/parse-flow-support.sh | 76 ++++++++++++++++++++++++++++++++
 2 files changed, 155 insertions(+)
 create mode 100755 devtools/check-doc-vs-code.sh
 create mode 100755 devtools/parse-flow-support.sh
devtools/check-doc-vs-code.sh new file +31 -0
new file mode 100755
index 0000000000..6e53d66899
@@ -0,0 +1,79 @@
+#! /bin/sh -e
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2021 Mellanox Technologies, Ltd
+
+# Check whether doc & code are in sync.
+# Optional argument: check only what changed since a commit.
+trusted_commit=$1 # example: origin/main
+
+selfdir=$(dirname $(readlink -f $0))
+rootdir=$(readlink -f $selfdir/..)
+
+result=0
+
+# speed up by ignoring Unicode details
+export LC_COLLATE=C
+
+changed_files()
+{
+	[ -n "$files" ] ||
+		files=$(git diff-tree --name-only -r $trusted_commit..)
+	echo "$files"
+}
+
+has_code_change() # <pattern>
+{
+	test -n "$(git log --format='%h' -S"$1" $trusted_commit..)"
+}
+
+has_file_change() # <pattern>
+{
+	changed_files | grep -q "$1"

devtools/check-doc-vs-code.sh line 41

Quoted 10 lines
devtools/check-doc-vs-code.sh new file +10 -0
+}
+
+changed_net_drivers()
+{
+	net_paths='drivers/net/|doc/guides/nics/features/'
+	[ -n "$drivers" ] ||
+		drivers=$(changed_files |
+			sed -rn "s,^($net_paths)([^./]*).*,\2,p")
+	echo "$drivers"
+}

I will not reviewed in details yet, but first observation,
when 'trusted_commit' argument is used, the drivers list has many duplicated entries which makes the output redundant and makes script take too much time. Getting only unique list may help on it.

#24 lore raw

Re: [dpdk-dev] [PATCH v5 3/3] devtools: check flow API doc tables

13/05/2021 20:40, Ferruh Yigit:

Quoted 23 lines · Thomas Monjalon
Quoted 22 lines
devtools/check-doc-vs-code.sh new file +22 -0
+changed_files()
+{
+	[ -n "$files" ] ||
+		files=$(git diff-tree --name-only -r $trusted_commit..)
+	echo "$files"
+}
+
+has_code_change() # <pattern>
+{
+	test -n "$(git log --format='%h' -S"$1" $trusted_commit..)"
+}
+
+has_file_change() # <pattern>
+{
+	changed_files | grep -q "$1"
+}
+
+changed_net_drivers()
+{
+	net_paths='drivers/net/|doc/guides/nics/features/'
+	[ -n "$drivers" ] ||
+		drivers=$(changed_files |
Quoted 8 lines

devtools/check-doc-vs-code.sh line 41

Quoted 3 lines
devtools/check-doc-vs-code.sh new file +3 -0
+			sed -rn "s,^($net_paths)([^./]*).*,\2,p")
+	echo "$drivers"
+}

I will not reviewed in details yet, but first observation,
when 'trusted_commit' argument is used, the drivers list has many duplicated entries which makes the output redundant and makes script take too much time. Getting only unique list may help on it.

Yes good catch, thanks.

#25 lore raw

Re: [dpdk-dev] [PATCH v5 3/3] devtools: check flow API doc tables

In reply to Thomas Monjalon
Quoted 7 lines · Thomas Monjalon

The script check-doc-vs-code.sh may be used to add some automatic checks of the doc.

If run without any argument, a complete check is done. The optional argument is a git history reference point to check faster only what has changed since this commit.

Quoted 8 lines

In this commit, the only check is for rte_flow tables, achieved through the script parse-flow-support.sh. If run without a .ini reference, it prints rte_flow tables.
Note: detected features are marked with the value Y, while the real .ini file could have special values like I. The script allow parsing exceptions (exclude or include), like for bnxt code which lists unsupported items and actions.

Overall great to be able to generate and check document against code, also good to have this by relatively small/simple scripts, thanks for the work. This helps to remove the maintenance concerns I had.

Quoted 4 lines
---
 devtools/check-doc-vs-code.sh  | 79 ++++++++++++++++++++++++++++++++++
 devtools/parse-flow-support.sh | 76 ++++++++++++++++++++++++++++++++

Will there be automated checks as part of the build system? Presumably in 'developer_mode'?

btw, scripts points out some new features not documented in .ini files, those are the recently added ones, patch requires a rebase on top of latest code.

devtools/parse-flow-support.sh line 53

Quoted 5 lines
devtools/parse-flow-support.sh new file +5 -0
+rte_flow_support() # <category>
+{
+	title="rte_flow $1s"
+	pattern=$(echo "RTE_FLOW_$1_TYPE_" | awk '{print toupper($0)}')
+	list "$title" "$pattern" | grep -vwE 'void|end'

Should 'RTE_FLOW_ITEM_TYPE_ANY' also excluded, does it have benefit to have it as listed?

#26 lore raw

Re: [dpdk-dev] [PATCH v5 3/3] devtools: check flow API doc tables

14/05/2021 12:51, Ferruh Yigit:

Quoted 21 lines · Thomas Monjalon
Quoted 7 lines

The script check-doc-vs-code.sh may be used to add some automatic checks of the doc.

If run without any argument, a complete check is done. The optional argument is a git history reference point to check faster only what has changed since this commit.

Quoted 8 lines

In this commit, the only check is for rte_flow tables, achieved through the script parse-flow-support.sh. If run without a .ini reference, it prints rte_flow tables.
Note: detected features are marked with the value Y, while the real .ini file could have special values like I. The script allow parsing exceptions (exclude or include), like for bnxt code which lists unsupported items and actions.

Overall great to be able to generate and check document against code, also good to have this by relatively small/simple scripts, thanks for the work. This helps to remove the maintenance concerns I had.

Quoted 7 lines
Quoted 4 lines
---
 devtools/check-doc-vs-code.sh  | 79 ++++++++++++++++++++++++++++++++++
 devtools/parse-flow-support.sh | 76 ++++++++++++++++++++++++++++++++

Will there be automated checks as part of the build system? Presumably in 'developer_mode'?

I think we should discuss what could enter in developer mode or not. I'm afraid it will become a mini-CI and will make compilation longer for everybody.

Quoted 2 lines

btw, scripts points out some new features not documented in .ini files, those are the recently added ones, patch requires a rebase on top of latest code.

OK I am rebasing.

Quoted 8 lines

devtools/parse-flow-support.sh line 53

Quoted 5 lines
devtools/parse-flow-support.sh new file +5 -0
+rte_flow_support() # <category>
+{
+	title="rte_flow $1s"
+	pattern=$(echo "RTE_FLOW_$1_TYPE_" | awk '{print toupper($0)}')
+	list "$title" "$pattern" | grep -vwE 'void|end'

Should 'RTE_FLOW_ITEM_TYPE_ANY' also excluded, does it have benefit to have it as listed?

This item may be unsupported by some PMDs,
so I think we need to report it.

#27 lore raw

v6 cover rte_flow doc matrix

In reply to Asaf Penso

This is an improvement of the rte_flow documentation:
it makes possible to quickly read which items and actions may be accepted by the drivers in a DPDK release.

A script is provided for CI to make sure the matrix is updated, while allowing some manual tuning.

Thomas Monjalon (3):
doc: rename sfc features file
doc: add flow API features tables
devtools: check flow API doc tables

 .gitignore                                    |   2 +
 devtools/check-doc-vs-code.sh                 |  84 +++++++++++++
 devtools/parse-flow-support.sh                |  78 ++++++++++++
 doc/guides/conf.py                            |  18 +--
 doc/guides/nics/features.rst                  |  11 --
 doc/guides/nics/features/bnxt.ini             |  26 +++-
 doc/guides/nics/features/cxgbe.ini            |  31 ++++-
 doc/guides/nics/features/default.ini          | 118 +++++++++++++++++-
 doc/guides/nics/features/dpaa2.ini            |  19 ++-
 doc/guides/nics/features/e1000.ini            |  14 +++
 doc/guides/nics/features/enic.ini             |  29 ++++-
 doc/guides/nics/features/failsafe.ini         |   1 -
 doc/guides/nics/features/hinic.ini            |  16 ++-
 doc/guides/nics/features/hns3.ini             |  23 +++-
 doc/guides/nics/features/hns3_vf.ini          |   1 -
 doc/guides/nics/features/i40e.ini             |  31 ++++-
 doc/guides/nics/features/iavf.ini             |  30 ++++-
 doc/guides/nics/features/ice.ini              |  34 ++++-
 doc/guides/nics/features/ice_dcf.ini          |   1 -
 doc/guides/nics/features/igb.ini              |   1 -
 doc/guides/nics/features/igc.ini              |  12 +-
 doc/guides/nics/features/ipn3ke.ini           |  15 ++-
 doc/guides/nics/features/ixgbe.ini            |  24 +++-
 doc/guides/nics/features/mlx4.ini             |  13 +-
 doc/guides/nics/features/mlx5.ini             |  73 ++++++++++-
 doc/guides/nics/features/mvpp2.ini            |  14 +++
 doc/guides/nics/features/octeontx2.ini        |  43 ++++++-
 doc/guides/nics/features/octeontx2_vec.ini    |   1 -
 doc/guides/nics/features/octeontx2_vf.ini     |   1 -
 doc/guides/nics/features/qede.ini             |  11 +-
 .../nics/features/{sfc_efx.ini => sfc.ini}    |  35 +++++-
 doc/guides/nics/features/tap.ini              |  15 ++-
 doc/guides/nics/features/txgbe.ini            |  24 +++-
 doc/guides/nics/overview.rst                  |   8 ++
 34 files changed, 813 insertions(+), 44 deletions(-)
 create mode 100755 devtools/check-doc-vs-code.sh
 create mode 100755 devtools/parse-flow-support.sh
 rename doc/guides/nics/features/{sfc_efx.ini => sfc.ini} (57%)
Signature · 1 line
2.31.1
#28 lore raw

PATCH v6 1/3 doc: rename sfc features file

The driver directory is drivers/net/sfc
but the features file was doc/guides/nics/features/sfc_efx.ini.

sfc_efx.ini is renamed sfc.ini to match the driver directory name. It will help automatic checks of this file.

---
 doc/guides/nics/features/{sfc_efx.ini => sfc.ini} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename doc/guides/nics/features/{sfc_efx.ini => sfc.ini} (100%)
doc/guides/nics/features/sfc.ini renamed from doc/guides/nics/features/sfc_efx.ini +0 -0
similarity index 100%
rename from doc/guides/nics/features/sfc_efx.ini
rename to doc/guides/nics/features/sfc.ini
Signature · 1 line
2.31.1
#29 lore raw

PATCH v6 2/3 doc: add flow API features tables

In reply to Thomas Monjalon

The NICs overview table lists all supported features per driver. There was a single row for "Flow API",
although rte_flow is composed of many items and actions.

The row "Flow API" is replaced with two new tables for items and actions.

Also, since rte_flow is not implemented in all drivers, it would be ugly to add empty sections in some files. That's why the error message for missing INI section is removed.

The lists are sorted alphabetically.
The extra files for some VF and vectorized data paths are not filled.

---
v6 changes:
- rebase/update
- remove deprecated shared action

---
 .gitignore                                 |   2 +
 doc/guides/conf.py                         |  18 ++--
 doc/guides/nics/features.rst               |  11 --
 doc/guides/nics/features/bnxt.ini          |  26 ++++-
 doc/guides/nics/features/cxgbe.ini         |  31 +++++-
 doc/guides/nics/features/default.ini       | 118 ++++++++++++++++++++-
 doc/guides/nics/features/dpaa2.ini         |  19 +++-
 doc/guides/nics/features/e1000.ini         |  14 +++
 doc/guides/nics/features/enic.ini          |  29 ++++-
 doc/guides/nics/features/failsafe.ini      |   1 -
 doc/guides/nics/features/hinic.ini         |  16 ++-
 doc/guides/nics/features/hns3.ini          |  23 +++-
 doc/guides/nics/features/hns3_vf.ini       |   1 -
 doc/guides/nics/features/i40e.ini          |  31 +++++-
 doc/guides/nics/features/iavf.ini          |  30 +++++-
 doc/guides/nics/features/ice.ini           |  34 +++++-
 doc/guides/nics/features/ice_dcf.ini       |   1 -
 doc/guides/nics/features/igb.ini           |   1 -
 doc/guides/nics/features/igc.ini           |  12 ++-
 doc/guides/nics/features/ipn3ke.ini        |  15 ++-
 doc/guides/nics/features/ixgbe.ini         |  24 ++++-
 doc/guides/nics/features/mlx4.ini          |  13 ++-
 doc/guides/nics/features/mlx5.ini          |  73 ++++++++++++-
 doc/guides/nics/features/mvpp2.ini         |  14 +++
 doc/guides/nics/features/octeontx2.ini     |  43 +++++++-
 doc/guides/nics/features/octeontx2_vec.ini |   1 -
 doc/guides/nics/features/octeontx2_vf.ini  |   1 -
 doc/guides/nics/features/qede.ini          |  11 +-
 doc/guides/nics/features/sfc.ini           |  35 +++++-
 doc/guides/nics/features/tap.ini           |  15 ++-
 doc/guides/nics/features/txgbe.ini         |  24 ++++-
 doc/guides/nics/overview.rst               |   8 ++
 32 files changed, 651 insertions(+), 44 deletions(-)
.gitignore +2 -0
index f73d93ca53..b19c0717e6 100644
@@ -3,6 +3,8 @@
 
 # ignore generated documentation tables
 doc/guides/nics/overview_table.txt
+doc/guides/nics/rte_flow_actions_table.txt
+doc/guides/nics/rte_flow_items_table.txt
 doc/guides/cryptodevs/overview_feature_table.txt
 doc/guides/cryptodevs/overview_cipher_table.txt
 doc/guides/cryptodevs/overview_auth_table.txt
doc/guides/conf.py +11 -7
index 894d81ca75..67d2dd62c7 100644
@@ -176,14 +176,8 @@ def generate_overview_table(output_filename, table_id, section, table_name, titl
         # Initialize the dict with the default.ini value.
         ini_data[ini_filename] = valid_features.copy()
 
-        # Check for a valid ini section.
+        # Check for a section.
         if not config.has_section(section):
-            print("{}: File '{}' has no [{}] secton".format(warning,
-                                                            ini_filename,
-                                                            section),
-                                                            file=stderr)
-            if stop_on_error:
-                raise Exception('Warning is treated as a failure')
             continue
 
         # Check for valid features names.
@@ -339,6 +333,16 @@ def setup(app):
                             'Features',
                             'Features availability in networking drivers',
                             'Feature')
+    table_file = dirname(__file__) + '/nics/rte_flow_items_table.txt'
+    generate_overview_table(table_file, 2,
+                            'rte_flow items',
+                            'rte_flow items availability in networking drivers',
+                            'Item')
+    table_file = dirname(__file__) + '/nics/rte_flow_actions_table.txt'
+    generate_overview_table(table_file, 3,
+                            'rte_flow actions',
+                            'rte_flow actions availability in networking drivers',
+                            'Action')
     table_file = dirname(__file__) + '/cryptodevs/overview_feature_table.txt'
     generate_overview_table(table_file, 1,
                             'Features',
doc/guides/nics/features.rst +0 -11
index f6d30d0af3..403c2b03a3 100644
@@ -397,17 +397,6 @@ Supports configuring link flow control.
   ``rte_eth_dev_priority_flow_ctrl_set()``.
 
 
-.. _nic_features_flow_api:
-
-Flow API
---------
-
-Supports flow API family.
-
-* **[implements] eth_dev_ops**: ``flow_ops_get``.
-* **[implements] rte_flow_ops**: ``All``.
-
-
 .. _nic_features_rate_limitation:
 
 Rate limitation
doc/guides/nics/features/bnxt.ini +25 -1
index 79335783ec..291faaad05 100644
@@ -27,7 +27,6 @@ VMDq                 = Y
 SR-IOV               = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -52,3 +51,28 @@ x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
 Perf doc             = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mark                 = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+rss                  = Y
+vf                   = Y
+vxlan_decap          = Y
+vxlan_encap          = Y
doc/guides/nics/features/cxgbe.ini +30 -1
index 276879ec1a..a3ecf12aad 100644
@@ -17,7 +17,6 @@ RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 FEC                  = Y
@@ -34,3 +33,33 @@ Linux                = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+pf                   = Y
+phy_port             = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mac_swap             = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+phy_port             = Y
+queue                = Y
+set_ipv4_dst         = Y
+set_ipv4_src         = Y
+set_ipv6_dst         = Y
+set_ipv6_src         = Y
+set_mac_dst          = Y
+set_mac_src          = Y
+set_tp_dst           = Y
+set_tp_src           = Y
doc/guides/nics/features/default.ini +117 -1

127 lines not on this page · raw message

doc/guides/nics/features/dpaa2.ini +18 -1
index 59bd1a2ced..8e3d74cbb5 100644
@@ -18,7 +18,6 @@ Unicast MAC filter   = Y
 RSS hash             = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 VLAN offload         = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -31,3 +30,21 @@ FW version           = Y
 Linux                = Y
 ARMv8                = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+gre                  = Y
+icmp                 = Y
+ipv4                 = Y
+ipv6                 = Y
+meta                 = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/e1000.ini +14 -0
index 7a224cc535..5af6040e37 100644
@@ -29,3 +29,17 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/enic.ini +28 -1
index 16d6aabe47..a582616c07 100644
@@ -25,7 +25,6 @@ Inner RSS            = Y
 SR-IOV               = Y
 CRC offload          = Y
 VLAN offload         = Y
-Flow API             = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
 Inner L3 checksum    = Y
@@ -39,3 +38,31 @@ Linux                = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+flag                 = Y
+jump                 = Y
+mark                 = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+passthru             = Y
+port_id              = Y
+queue                = Y
+rss                  = Y
+vxlan_decap          = Y
+vxlan_encap          = Y
doc/guides/nics/features/failsafe.ini +0 -1
index b6f3dcee61..8a2b92fc9c 100644
@@ -19,7 +19,6 @@ Unicast MAC filter   = Y
 Multicast MAC filter = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Packet type parsing  = Y
 Basic stats          = Y
 Stats per queue      = Y
doc/guides/nics/features/hinic.ini +15 -1
index 988a0ad574..4ea7368704 100644
@@ -32,10 +32,24 @@ Inner L4 checksum    = Y
 Basic stats          = Y
 Extended stats       = Y
 Stats per queue      = Y
-Flow API             = Y
 Flow control         = Y
 FW version           = Y
 Multiprocess aware   = Y
 Linux                = Y
 x86-64               = Y
 ARMv8                = Y
+
+[rte_flow items]
+any                  = Y
+eth                  = Y
+icmp                 = Y
+icmp6                = Y
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
doc/guides/nics/features/hns3.ini +22 -1
index 0f89c60694..cf8d53d0d6 100644
@@ -28,7 +28,6 @@ RSS reta update      = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 FEC                  = Y
@@ -50,3 +49,25 @@ Timestamp offload    = Y
 Multiprocess aware   = Y
 Linux                = Y
 ARMv8                = Y
+
+[rte_flow items]
+eth                  = Y
+geneve               = Y
+icmp                 = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+vxlan_gpe            = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+flag                 = Y
+mark                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/hns3_vf.ini +0 -1
index 92383506c3..7da994c2dc 100644
@@ -25,7 +25,6 @@ RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
 VLAN filter          = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 L3 checksum offload  = Y
doc/guides/nics/features/i40e.ini +30 -1
index 542432c41d..1f3f5eb3ff 100644
@@ -27,7 +27,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Traffic mirroring    = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -52,3 +51,33 @@ x86-32               = Y
 x86-64               = Y
 ARMv8                = Y
 Power8               = Y
+
+[rte_flow items]
+ah                   = Y
+esp                  = Y
+eth                  = Y
+gre                  = Y
+gtpc                 = Y
+gtpu                 = Y
+ipv4                 = Y
+ipv6                 = Y
+l2tpv3oip            = Y
+mpls                 = Y
+nvgre                = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+flag                 = Y
+mark                 = Y
+passthru             = Y
+pf                   = Y
+queue                = Y
+rss                  = Y
+vf                   = Y
doc/guides/nics/features/iavf.ini +29 -1
index 980680e568..7af62d4ce7 100644
@@ -19,7 +19,6 @@ Multicast MAC filter = Y
 RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
-Flow API             = Y
 VLAN filter          = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -34,3 +33,32 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+ah                   = Y
+arp_eth_ipv4         = Y
+ecpri                = Y
+esp                  = Y
+eth                  = Y
+gtpc                 = Y
+gtpu                 = Y
+gtp_psc              = Y
+icmp                 = Y
+icmp6                = Y
+ipv4                 = Y
+ipv6                 = Y
+ipv6_frag_ext        = Y
+l2tpv3oip            = Y
+pfcp                 = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mark                 = Y
+passthru             = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/ice.ini +33 -1
index 2b93872b1c..1b9228c678 100644
@@ -21,7 +21,6 @@ Unicast MAC filter   = Y
 RSS hash             = Y
 RSS key update       = Y
 RSS reta update      = Y
-Flow API             = Y
 VLAN filter          = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -43,3 +42,36 @@ Linux                = Y
 Windows              = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+ah                   = Y
+arp_eth_ipv4         = Y
+esp                  = Y
+eth                  = Y
+gtpu                 = Y
+gtp_psc              = Y
+icmp                 = Y
+icmp6                = Y
+ipv4                 = Y
+ipv6                 = Y
+ipv6_frag_ext        = Y
+l2tpv3oip            = Y
+nvgre                = Y
+pfcp                 = Y
+pppoed               = Y
+pppoes               = Y
+pppoe_proto_id       = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+count                = Y
+drop                 = Y
+mark                 = Y
+passthru             = Y
+queue                = Y
+rss                  = Y
+vf                   = Y
doc/guides/nics/features/ice_dcf.ini +0 -1
index f4998152df..ae79b6a515 100644
@@ -8,7 +8,6 @@ Queue start/stop     = Y
 Jumbo frame          = Y
 Scattered Rx         = Y
 RSS hash             = P
-Flow API             = Y
 CRC offload          = Y
 L3 checksum offload  = P
 L4 checksum offload  = P
doc/guides/nics/features/igb.ini +0 -1
index 2925a8031d..f4f6e9a4cb 100644
@@ -24,7 +24,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 QinQ offload         = Y
doc/guides/nics/features/igc.ini +11 -1
index 300d37e81a..f810c2df4e 100644
@@ -32,6 +32,16 @@ RSS key update       = Y
 RSS reta update      = Y
 VLAN filter          = Y
 VLAN offload         = Y
-Flow API             = P
 Linux                = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+
+[rte_flow actions]
+queue                = Y
+rss                  = Y
doc/guides/nics/features/ipn3ke.ini +14 -1
index 82de553eb2..5586f7cb33 100644
@@ -26,7 +26,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Traffic mirroring    = Y
 CRC offload          = Y
 VLAN offload         = Y
@@ -48,3 +47,17 @@ FreeBSD              = Y
 Linux                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+mpls                 = Y
+nvgre                = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+mark                 = Y
doc/guides/nics/features/ixgbe.ini +23 -1
index c5e6e14aac..93a9cc18ab 100644
@@ -26,7 +26,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Rate limitation      = Y
 Traffic mirroring    = Y
 Inline crypto        = Y
@@ -55,3 +54,26 @@ Linux                = Y
 ARMv8                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+e_tag                = Y
+fuzzy                = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+mark                 = Y
+pf                   = Y
+queue                = Y
+rss                  = Y
+security             = Y
+vf                   = Y
doc/guides/nics/features/mlx4.ini +12 -1
index ebb9ccf767..c394dfcefe 100644
@@ -22,7 +22,6 @@ RSS hash             = Y
 SR-IOV               = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -38,3 +37,15 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/mlx5.ini +72 -1

82 lines not on this page · raw message

doc/guides/nics/features/mvpp2.ini +14 -0
index ef47546d1c..2ce0ca817a 100644
@@ -23,3 +23,17 @@ Basic stats          = Y
 Extended stats       = Y
 ARMv8                = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+raw                  = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+meter                = Y
+queue                = Y
doc/guides/nics/features/octeontx2.ini +42 -1

52 lines not on this page · raw message

doc/guides/nics/features/octeontx2_vec.ini +0 -1
index 7025e140ad..376a1d6cc1 100644
@@ -27,7 +27,6 @@ RSS reta update      = Y
 Inner RSS            = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Rate limitation      = Y
 Jumbo frame          = Y
 VLAN offload         = Y
doc/guides/nics/features/octeontx2_vf.ini +0 -1
index 7f5e5b8bba..8141aadf85 100644
@@ -23,7 +23,6 @@ RSS reta update      = Y
 Inner RSS            = Y
 Inline protocol      = Y
 VLAN filter          = Y
-Flow API             = Y
 Rate limitation      = Y
 Jumbo frame          = Y
 Scattered Rx         = Y
doc/guides/nics/features/qede.ini +10 -1
index 852cecb3d3..e65d5d076e 100644
@@ -20,7 +20,6 @@ RSS key update       = Y
 RSS reta update      = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 CRC offload          = Y
 VLAN offload         = Y
 L3 checksum offload  = Y
@@ -39,3 +38,13 @@ ARMv8                = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+
+[rte_flow actions]
+drop                 = Y
+queue                = Y
doc/guides/nics/features/sfc.ini +34 -1
index 7e29568e5f..9e66ec4293 100644
@@ -24,7 +24,6 @@ RSS key update       = Y
 RSS reta update      = Y
 SR-IOV               = Y
 Flow control         = Y
-Flow API             = Y
 VLAN offload         = P
 L3 checksum offload  = Y
 L4 checksum offload  = Y
@@ -41,3 +40,37 @@ FreeBSD              = Y
 Linux                = Y
 ARMv8                = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+geneve               = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+pppoed               = Y
+pppoes               = Y
+tcp                  = Y
+udp                  = Y
+vf                   = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+flag                 = Y
+mark                 = Y
+of_pop_vlan          = Y
+of_push_vlan         = Y
+of_set_vlan_pcp      = Y
+of_set_vlan_vid      = Y
+pf                   = Y
+phy_port             = Y
+port_id              = Y
+queue                = Y
+rss                  = Y
+vf                   = Y
+vxlan_decap          = Y
+vxlan_encap          = Y
doc/guides/nics/features/tap.ini +14 -1
index be5e53dbe9..b4a356e5d5 100644
@@ -11,7 +11,6 @@ Rx interrupt         = Y
 Promiscuous mode     = Y
 Allmulticast mode    = Y
 Basic stats          = Y
-Flow API             = Y
 L3 checksum offload  = Y
 L4 checksum offload  = Y
 MTU update           = Y
@@ -26,3 +25,17 @@ Power8               = Y
 x86-32               = Y
 x86-64               = Y
 Usage doc            = Y
+
+[rte_flow items]
+eth                  = Y
+ipv4                 = Y
+ipv6                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+
+[rte_flow actions]
+drop                 = Y
+passthru             = Y
+queue                = Y
+rss                  = Y
doc/guides/nics/features/txgbe.ini +23 -1
index a3fdee9f8a..61cb3f6d9f 100644
@@ -26,7 +26,6 @@ SR-IOV               = Y
 DCB                  = Y
 VLAN filter          = Y
 Flow control         = Y
-Flow API             = Y
 Rate limitation      = Y
 Inline crypto        = Y
 CRC offload          = P
@@ -52,3 +51,26 @@ Linux                = Y
 ARMv8                = Y
 x86-32               = Y
 x86-64               = Y
+
+[rte_flow items]
+eth                  = Y
+e_tag                = Y
+fuzzy                = Y
+ipv4                 = Y
+ipv6                 = Y
+nvgre                = Y
+raw                  = Y
+sctp                 = Y
+tcp                  = Y
+udp                  = Y
+vlan                 = Y
+vxlan                = Y
+
+[rte_flow actions]
+drop                 = Y
+mark                 = Y
+pf                   = Y
+queue                = Y
+rss                  = Y
+security             = Y
+vf                   = Y
doc/guides/nics/overview.rst +8 -0
index 20cd52b097..67575c699c 100644
@@ -32,3 +32,11 @@ More details about features can be found in :doc:`features`.
 
    Features marked with "P" are partially supported. Refer to the appropriate
    NIC guide in the following sections for details.
+
+.. include:: rte_flow_items_table.txt
+
+.. include:: rte_flow_actions_table.txt
+
+.. Note::
+
+   rte_flow actions marked with "I" can be indirect as well.
Signature · 1 line
2.31.1
#30 lore raw

PATCH v6 3/3 devtools: check flow API doc tables

In reply to Thomas Monjalon

The script check-doc-vs-code.sh may be used to add some automatic checks of the doc.

If run without any argument, a complete check is done. The optional argument is a git history reference point to check faster only what has changed since this commit.

In this commit, the only check is for rte_flow tables, achieved through the script parse-flow-support.sh. If run without a .ini reference, it prints rte_flow tables.
Note: detected features are marked with the value Y, while the real .ini file could have special values like I. The script allow parsing exceptions (exclude or include), like for bnxt code which lists unsupported items and actions.

---
v6 changes:
- fix redundant drivers
- ignore indirect action
- prefix misses with a category (item or action)

---
 devtools/check-doc-vs-code.sh  | 84 ++++++++++++++++++++++++++++++++++
 devtools/parse-flow-support.sh | 78 +++++++++++++++++++++++++++++++
 2 files changed, 162 insertions(+)
 create mode 100755 devtools/check-doc-vs-code.sh
 create mode 100755 devtools/parse-flow-support.sh
devtools/check-doc-vs-code.sh new file +84 -0
new file mode 100755
index 0000000000..c58c239c87
@@ -0,0 +1,84 @@
+#! /bin/sh -e
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright 2021 Mellanox Technologies, Ltd
+
+# Check whether doc & code are in sync.
+# Optional argument: check only what changed since a commit.
+trusted_commit=$1 # example: origin/main
+
+selfdir=$(dirname $(readlink -f $0))
+rootdir=$(readlink -f $selfdir/..)
+
+# speed up by ignoring Unicode details
+export LC_COLLATE=C
+
+result=0
+error() # <message>
+{
+	echo "$*"
+	result=$(($result + 1))
+}
+
+changed_files()
+{
+	[ -n "$files" ] ||
+		files=$(git diff-tree --name-only -r $trusted_commit..)
+	echo "$files"
+}
+
+has_code_change() # <pattern>
+{
+	test -n "$(git log --format='%h' -S"$1" $trusted_commit..)"
+}
+
+has_file_change() # <pattern>
+{
+	changed_files | grep -q "$1"
+}
+
+changed_net_drivers()
+{
+	net_paths='drivers/net/|doc/guides/nics/features/'
+	[ -n "$drivers" ] ||
+		drivers=$(changed_files |
+			sed -rn "s,^($net_paths)([^./]*).*,\2,p" |
+			sort -u)
+	echo "$drivers"
+}
+
+all_net_drivers()
+{
+	find $rootdir/drivers/net -mindepth 1 -maxdepth 1 -type d |
+	sed 's,.*/,,' |
+	sort
+}
+
+check_rte_flow() # <driver>
+{
+	code=$rootdir/drivers/net/$1
+	doc=$rootdir/doc/guides/nics/features/$1.ini
+	[ -d $code ] || return 0
+	[ -f $doc ] || return 0
+	report=$($selfdir/parse-flow-support.sh $code $doc)
+	if [ -n "$report" ]; then
+		error "rte_flow doc out of sync for $1"
+		echo "$report" | sed 's,^,\t,'
+	fi
+}
+
+if [ -z "$trusted_commit" ]; then
+	# check all
+	for driver in $(all_net_drivers); do
+		check_rte_flow $driver
+	done
+	exit $result
+fi
+
+# find what changed and check
+if has_code_change 'RTE_FLOW_.*_TYPE_' ||
+		has_file_change 'doc/guides/nics/features'; then
+	for driver in $(changed_net_drivers); do
+		check_rte_flow $driver
+	done
+fi
+exit $result
devtools/parse-flow-support.sh new file +78 -0

78 lines not on this page · raw message

Signature · 1 line
2.31.1
#31 lore raw

Re: [dpdk-dev] [PATCH v6 0/3] rte_flow doc matrix

In reply to Thomas Monjalon

18/05/2021 15:28, Thomas Monjalon:

Quoted 11 lines

This is an improvement of the rte_flow documentation:
it makes possible to quickly read which items and actions may be accepted by the drivers in a DPDK release.

A script is provided for CI to make sure the matrix is updated, while allowing some manual tuning.

Thomas Monjalon (3):
doc: rename sfc features file
doc: add flow API features tables
devtools: check flow API doc tables

Applied