Skip to contentSkip to conversation

doc: update match with compare result item limitation

PATCH Superseded Suanming Mou 4 participants 8 messages Nov 5, 2024 – Nov 26, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: update match with compare result item limitation

In switch mode, when ``repr_matching_en`` flag is enabled in the devarg, the match with compare result item is not supported to the ``ingress`` rule as an implicit REPRESENTED_PORT need to be added to the matcher. That REPRESENTED_PORT item conflicts with the single item limitation for match with compare result item.

Fixes cb25df7ce9d6 ("net/mlx5: support comparison matching")
---
 doc/guides/nics/mlx5.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/nics/mlx5.rst +5 -0
index 7ced6ca8f9..43ae9070ab 100644
@@ -460,6 +460,11 @@ Limitations
   - The field type ``RTE_FLOW_FIELD_VALUE`` must be the base (``b``) field.
   - The field type ``RTE_FLOW_FIELD_RANDOM`` can only be compared with
     ``RTE_FLOW_FIELD_VALUE``.
+  - In switch mode, when ``repr_matching_en`` flag is enabled in the devarg,
+    the match with compare result item is not supported to the ``ingress``
+    rule as an implicit REPRESENTED_PORT need to be added to the matcher.
+    That REPRESENTED_PORT item conflicts with the single item limitation for
+    match with compare result item.
 
 - No Tx metadata go to the E-Switch steering domain for the Flow group 0.
   The flows within group 0 and set metadata action are rejected by hardware.
Signature · 1 line
2.34.1
#1 lore raw

The repr_matching_en flag is enabled (by default) can be added.

Quoted 46 lines

-----Original Message-----
From: Suanming Mou <[email protected]>
Sent: Tuesday, November 5, 2024 9:48 AM
To: Dariusz Sosnowski <[email protected]>; Slava Ovsiienko <[email protected]>; Bing Zhao <[email protected]>; Ori Kam <[email protected]>; Matan Azrad <[email protected]>
Cc: [email protected]; [email protected]
Subject: [PATCH] doc: update match with compare result item limitation

In switch mode, when ``repr_matching_en`` flag is enabled in the devarg, the match with compare result item is not supported to the ``ingress`` rule as an implicit REPRESENTED_PORT need to be added to the matcher. That REPRESENTED_PORT item conflicts with the single item limitation for match with compare result item.

Fixes cb25df7ce9d6 ("net/mlx5: support comparison matching")
---
 doc/guides/nics/mlx5.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/nics/mlx5.rst index renamed from doc/guides/nics/mlx5.rst +0 -0

7ced6ca8f9..43ae9070ab 100644

doc/guides/nics/mlx5.rst +0 -0
@@ -460,6 +460,11 @@ Limitations
   - The field type ``RTE_FLOW_FIELD_VALUE`` must be the base (``b``)

field.
- The field type ``RTE_FLOW_FIELD_RANDOM`` can only be compared with

     ``RTE_FLOW_FIELD_VALUE``.

+ - In switch mode, when ``repr_matching_en`` flag is enabled in the devarg,
+ the match with compare result item is not supported to the
``ingress``

doc/guides/nics/mlx5.rst +2 -0
+    rule as an implicit REPRESENTED_PORT need to be added to the matcher.
+    That REPRESENTED_PORT item conflicts with the single item limitation

for
+ match with compare result item.

- No Tx metadata go to the E-Switch steering domain for the Flow group 0. The flows within group 0 and set metadata action are rejected by
hardware.
--
2.34.1

#2 lore raw
Quoted 11 lines

-----Original Message-----
From: Bing Zhao <[email protected]>
Sent: Tuesday, November 5, 2024 11:48 AM
To: Suanming Mou <[email protected]>; Dariusz Sosnowski <[email protected]>; Slava Ovsiienko <[email protected]>; Ori Kam <[email protected]>; Matan Azrad <[email protected]>
Cc: [email protected]; [email protected]
Subject: RE: [PATCH] doc: update match with compare result item limitation

Quoted 1 line

The repr_matching_en flag is enabled (by default) can be added.

OK, let's update a new version.

Quoted 51 lines
Quoted 10 lines

-----Original Message-----
From: Suanming Mou <[email protected]>
Sent: Tuesday, November 5, 2024 9:48 AM
To: Dariusz Sosnowski <[email protected]>; Slava Ovsiienko <[email protected]>; Bing Zhao <[email protected]>; Ori Kam <[email protected]>; Matan Azrad <[email protected]>
Cc: [email protected]; [email protected]
Subject: [PATCH] doc: update match with compare result item limitation

Quoted 3 lines

In switch mode, when ``repr_matching_en`` flag is enabled in the devarg, the match with compare result item is not supported to the ``ingress`` rule as an implicit REPRESENTED_PORT need to be added to the

matcher.

Quoted 17 lines

That REPRESENTED_PORT item conflicts with the single item limitation for match with compare result item.

Fixes cb25df7ce9d6 ("net/mlx5: support comparison matching")
---
 doc/guides/nics/mlx5.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/nics/mlx5.rst index renamed from doc/guides/nics/mlx5.rst +0 -0

7ced6ca8f9..43ae9070ab 100644

doc/guides/nics/mlx5.rst +0 -0
@@ -460,6 +460,11 @@ Limitations
   - The field type ``RTE_FLOW_FIELD_VALUE`` must be the base (``b``)
Quoted 2 lines

field.
- The field type ``RTE_FLOW_FIELD_RANDOM`` can only be compared

with

Quoted 6 lines
     ``RTE_FLOW_FIELD_VALUE``.

+ - In switch mode, when ``repr_matching_en`` flag is enabled in the devarg,
+ the match with compare result item is not supported to the
``ingress``
+ rule as an implicit REPRESENTED_PORT need to be added to the

matcher.

Quoted 10 lines

+ That REPRESENTED_PORT item conflicts with the single item
+ limitation
for
+ match with compare result item.

- No Tx metadata go to the E-Switch steering domain for the Flow group 0. The flows within group 0 and set metadata action are rejected by
hardware.
--
2.34.1

#3 lore raw

PATCH v2 1/1 doc: update match with compare result item limitation

In reply to Suanming Mou

In switch mode, when ``repr_matching_en`` flag is enabled in the devarg, the match with compare result item is not supported to the ``ingress`` rule as an implicit REPRESENTED_PORT need to be added to the matcher. That REPRESENTED_PORT item conflicts with the single item limitation for match with compare result item.

Fixes cb25df7ce9d6 ("net/mlx5: support comparison matching")

---

v2: Add `repr_matching_en`` enabled by default explanation.

---
 doc/guides/nics/mlx5.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/nics/mlx5.rst +5 -0
index 7ced6ca8f9..64933a0823 100644
@@ -460,6 +460,11 @@ Limitations
   - The field type ``RTE_FLOW_FIELD_VALUE`` must be the base (``b``) field.
   - The field type ``RTE_FLOW_FIELD_RANDOM`` can only be compared with
     ``RTE_FLOW_FIELD_VALUE``.
+  - In switch mode, when ``repr_matching_en`` flag is enabled (by default)
+    in the devarg, the match with compare result item is not supported to
+    the ``ingress`` rule as an implicit REPRESENTED_PORT need to be added to
+    the matcher. That REPRESENTED_PORT item conflicts with the single item
+    limitation for match with compare result item.
 
 - No Tx metadata go to the E-Switch steering domain for the Flow group 0.
   The flows within group 0 and set metadata action are rejected by hardware.
Signature · 1 line
2.34.1
Acked-by on v2 1/1
#4 lore raw

Thanks.

Quoted 15 lines

-----Original Message-----
From: Suanming Mou <[email protected]>
Sent: Wednesday, November 6, 2024 5:34 PM
To: Dariusz Sosnowski <[email protected]>; Slava Ovsiienko <[email protected]>; Bing Zhao <[email protected]>; Ori Kam <[email protected]>; Matan Azrad <[email protected]>
Cc: [email protected]; [email protected]
Subject: [PATCH v2] doc: update match with compare result item limitation

In switch mode, when ``repr_matching_en`` flag is enabled in the devarg, the match with compare result item is not supported to the ``ingress`` rule as an implicit REPRESENTED_PORT need to be added to the matcher. That REPRESENTED_PORT item conflicts with the single item limitation for match with compare result item.

Quoted 4 lines
Fixes cb25df7ce9d6 ("net/mlx5: support comparison matching")
Quoted 31 lines

---

v2: Add `repr_matching_en`` enabled by default explanation.

---
 doc/guides/nics/mlx5.rst | 5 +++++
 1 file changed, 5 insertions(+)
doc/guides/nics/mlx5.rst index renamed from doc/guides/nics/mlx5.rst +0 -0

7ced6ca8f9..64933a0823 100644

doc/guides/nics/mlx5.rst +0 -0
@@ -460,6 +460,11 @@ Limitations
   - The field type ``RTE_FLOW_FIELD_VALUE`` must be the base (``b``)

field.
- The field type ``RTE_FLOW_FIELD_RANDOM`` can only be compared with

     ``RTE_FLOW_FIELD_VALUE``.

+ - In switch mode, when ``repr_matching_en`` flag is enabled (by default)

doc/guides/nics/mlx5.rst +2 -0
+    in the devarg, the match with compare result item is not supported to
+    the ``ingress`` rule as an implicit REPRESENTED_PORT need to be added

to
+ the matcher. That REPRESENTED_PORT item conflicts with the single
item
+ limitation for match with compare result item.

- No Tx metadata go to the E-Switch steering domain for the Flow group 0. The flows within group 0 and set metadata action are rejected by
hardware.
--
2.34.1

#5 lore raw
In reply to Suanming Mou

Hi,

From: Suanming Mou <[email protected]>
Sent: Wednesday, November 6, 2024 11:34 AM
To: Dariusz Sosnowski; Slava Ovsiienko; Bing Zhao; Ori Kam; Matan Azrad
Cc: [email protected]; [email protected]
Subject: [PATCH v2] doc: update match with compare result item limitation

In switch mode, when ``repr_matching_en`` flag is enabled in the devarg, the match with compare result item is not supported to the ``ingress`` rule as an implicit REPRESENTED_PORT need to be added to the matcher. That REPRESENTED_PORT item conflicts with the single item limitation for match with compare result item.

Fixes cb25df7ce9d6 ("net/mlx5: support comparison matching")

---

v2: Add `repr_matching_en`` enabled by default explanation.

----

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh

#6 lore raw
In reply to Suanming Mou

doc/guides/nics/mlx5.rst Limitations · line 467

Quoted 5 lines · On Tue, 5 Nov 2024 09:47:36 +0800 Suanming Mou <[email protected]> wrote:
doc/guides/nics/mlx5.rst +5 -0
+  - In switch mode, when ``repr_matching_en`` flag is enabled in the devarg,
+    the match with compare result item is not supported to the ``ingress``
+    rule as an implicit REPRESENTED_PORT need to be added to the matcher.
+    That REPRESENTED_PORT item conflicts with the single item limitation for
+    match with compare result item.

These sentences are hard to read, the wording is very awkward.

Have no detailed insight into the mlx5 matching but maybe this wording:

In switch mode, when the ``repr_matching_en`` flag is used then matching with ingress comparison is not supported because an implicit rule is required to match the REPRESENTED_PORT. And that implicit rule would conflict with the ingress compare rule.

#7 lore raw

@Suanming Mou, could you please reword the description as Stephen suggested and send a new version? Hi, @Stephen Hemminger, PSB. Rule should be item, that would be more accurate.

Quoted 23 lines

-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Thursday, November 7, 2024 2:29 AM
To: Suanming Mou <[email protected]>
Cc: Dariusz Sosnowski <[email protected]>; Slava Ovsiienko <[email protected]>; Bing Zhao <[email protected]>; Ori Kam <[email protected]>; Matan Azrad <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH] doc: update match with compare result item limitation

External email: Use caution opening links or attachments

Quoted 1 line · On Tue, 5 Nov 2024 09:47:36 +0800 Suanming Mou <[email protected]> wrote:

+ - In switch mode, when ``repr_matching_en`` flag is enabled in the

devarg,

Quoted 1 line

+ the match with compare result item is not supported to the

``ingress``

Quoted 1 line

+ rule as an implicit REPRESENTED_PORT need to be added to the

matcher.

Quoted 1 line

+ That REPRESENTED_PORT item conflicts with the single item

Quoted 8 lines

limitation for

Quoted 1 line

+ match with compare result item.

These sentences are hard to read, the wording is very awkward.

Have no detailed insight into the mlx5 matching but maybe this wording:

In switch mode, when the ``repr_matching_en`` flag is used then matching

is used (by default)

Quoted 1 line

with ingress comparison is not supported because an implicit rule is

Implicit rule -> implicit item

Quoted 1 line

required to match the REPRESENTED_PORT. And that implicit rule would

Match the REPxxxx with the same rule
Rule-> item

Quoted 1 line

conflict with the ingress compare rule.

Comparison item.