Skip to contentSkip to conversation

doc: document a limitation for a meter with RSS action

PATCH In review Li Zhang 3 participants 17 messages Oct 26, 2021 – Oct 31, 2021

lore
Share & tools
lore

Li Zhang

author
#0 lore raw

PATCH 1/1 doc: document a limitation for a meter with RSS action

A meter policy with RSS/Queue action is not supported when dv_xmeta_en != 0.

Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst +1 -0
index 47709d93b3..4129fe2009 100644
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when dv_xmeta_en != 0.
   - meter profile packet mode is supported.
   - meter profiles of RFC2697, RFC2698 and RFC4115 are supported.
 
Signature · 1 line
2.27.0
#1 lore raw

26/10/2021 04:08, Li Zhang:

Quoted 2 lines

A meter policy with RSS/Queue action is not supported when dv_xmeta_en != 0.

You could say why. HW limitation? driver design?

Quoted 2 lines

- Policy actions of RSS for green and yellow should have the same configuration except queues.
+ - Policy with RSS/queue action is not supported when dv_xmeta_en != 0.

dv_xmeta_en should be enclosed with ticks: ``dv_xmeta_en`` != 0 should be said in english: "is not zero" or "is enabled".

author
#2 lore raw

Thanks Thomas,
I will update it in the new patch.

Regards,
Li Zhang

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, October 26, 2021 4:43 PM
To: Li Zhang <[email protected]>
Cc: Ori Kam <[email protected]>; Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Shun Hao <[email protected]>; [email protected]; Raslan Darawsheh <[email protected]>; Roni Bar Yanai <[email protected]>
Subject: Re: [PATCH] doc: document a limitation for a meter with RSS action

External email: Use caution opening links or attachments

26/10/2021 04:08, Li Zhang:

Quoted 2 lines

A meter policy with RSS/Queue action is not supported when dv_xmeta_en != 0.

You could say why. HW limitation? driver design?

Quoted 2 lines

- Policy actions of RSS for green and yellow should have the same configuration except queues.
+ - Policy with RSS/queue action is not supported when dv_xmeta_en != 0.

dv_xmeta_en should be enclosed with ticks: ``dv_xmeta_en`` != 0 should be said in english: "is not zero" or "is enabled".

author
#3 lore raw

PATCH 1/1 doc: document a limitation for a meter with RSS action

In reply to Li Zhang

A meter policy with RSS/Queue action is not supported when dv_xmeta_en is not zero.

Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst +1 -0
index 47709d93b3..4129fe2009 100644
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when dv_xmeta_en != 0.
   - meter profile packet mode is supported.
   - meter profiles of RFC2697, RFC2698 and RFC4115 are supported.
 
Signature · 1 line
2.27.0
author
#4 lore raw

PATCH v2 1/1 doc: document a limitation for a meter with RSS action

In reply to Li Zhang

A meter policy with RSS/Queue action is not supported when dv_xmeta_en is not zero.

Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst +1 -0
index 47709d93b3..4129fe2009 100644
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when dv_xmeta_en != 0.
   - meter profile packet mode is supported.
   - meter profiles of RFC2697, RFC2698 and RFC4115 are supported.
 
Signature · 1 line
2.27.0
author
#5 lore raw

PATCH v3 1/1 doc: document a limitation for a meter with RSS action

In reply to Li Zhang

A meter policy with RSS/Queue action is not supported when dv_xmeta_en is not zero.

Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst +1 -0
index 47709d93b3..5d1d3a7f0e 100644
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when dv_xmeta_en is not zero.
   - meter profile packet mode is supported.
   - meter profiles of RFC2697, RFC2698 and RFC4115 are supported.
 
Signature · 1 line
2.27.0
#6 lore raw

26/10/2021 11:31, Li Zhang:

Quoted 2 lines

A meter policy with RSS/Queue action is not supported when dv_xmeta_en is not zero.

It is still not explaining why.

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

Quoted 11 lines
Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")

---

doc/guides/nics/mlx5.rst +1 -0
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when dv_xmeta_en is not zero.

It is still not enclosed like this: ``dv_xmeta_en``

Don't you think "enabled" is better than "not zero"?

author
#7 lore raw

Thanks Thomas.
Will update the following commit-log in patch v4

A meter policy with RSS/Queue action is not supported when dv_xmeta_en enabled.

When dv_xmeta_en enabled in legacy creating flow,
it will split into two flows (one set_tag with jump flow and one RSS/queue action flow). For meter policy as termination table, it cannot split flow and cannot support dv_xmeta_en enabled.

Regards,
Li Zhang

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, October 26, 2021 5:51 PM
To: Li Zhang <[email protected]>
Cc: Ori Kam <[email protected]>; Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Shun Hao <[email protected]>; [email protected]; Raslan Darawsheh <[email protected]>; Roni Bar Yanai <[email protected]>; [email protected]
Subject: Re: [PATCH v3] doc: document a limitation for a meter with RSS action

External email: Use caution opening links or attachments

26/10/2021 11:31, Li Zhang:

Quoted 2 lines

A meter policy with RSS/Queue action is not supported when dv_xmeta_en is not zero.

It is still not explaining why.

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

Quoted 11 lines
Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")

---

doc/guides/nics/mlx5.rst +1 -0
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when dv_xmeta_en is not zero.

It is still not enclosed like this: ``dv_xmeta_en``

Don't you think "enabled" is better than "not zero"?

author
#8 lore raw

PATCH v4 1/1 doc: document a limitation for a meter with RSS action

In reply to Li Zhang

A meter policy with RSS/Queue action is not supported when dv_xmeta_en enabled.

When dv_xmeta_en enabled in legacy creating flow, it will split into two flows
(one set_tag with jump flow and one RSS/queue action flow). For meter policy as termination table,
it cannot split flow and
cannot support dv_xmeta_en enabled.

Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst +1 -0
index 47709d93b3..2f46ed0263 100644
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when dv_xmeta_en enabled.
   - meter profile packet mode is supported.
   - meter profiles of RFC2697, RFC2698 and RFC4115 are supported.
 
Signature · 1 line
2.27.0
#9 lore raw

26/10/2021 12:10, Li Zhang:

Quoted 9 lines

A meter policy with RSS/Queue action is not supported when dv_xmeta_en enabled.

When dv_xmeta_en enabled in legacy creating flow, it will split into two flows
(one set_tag with jump flow and one RSS/queue action flow). For meter policy as termination table,
it cannot split flow and
cannot support dv_xmeta_en enabled.

Thank you for the explanation.

Quoted 14 lines
Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst +0 -0
index 47709d93b3..2f46ed0263 100644

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

Quoted 4 lines
doc/guides/nics/mlx5.rst +1 -0
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when dv_xmeta_en enabled.

Did you understand my comment about the formatting? You must add quotes like that: ``dv_xmeta_en`` Look at other occurences in the doc.

author
#10 lore raw

Sorry, I misunderstood your comment and update it in patch v5.

Regards,
Li Zhang

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, October 26, 2021 6:16 PM
To: Li Zhang <[email protected]>
Cc: Ori Kam <[email protected]>; Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Shun Hao <[email protected]>; [email protected]; Raslan Darawsheh <[email protected]>; Roni Bar Yanai <[email protected]>; [email protected]
Subject: Re: [PATCH v4] doc: document a limitation for a meter with RSS action

External email: Use caution opening links or attachments

26/10/2021 12:10, Li Zhang:

Quoted 7 lines

A meter policy with RSS/Queue action is not supported when dv_xmeta_en enabled.

When dv_xmeta_en enabled in legacy creating flow, it will split into two flows (one set_tag with jump flow and one RSS/queue action flow). For meter policy as termination table, it cannot split flow and cannot support dv_xmeta_en enabled.

Thank you for the explanation.

Quoted 14 lines
Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst index renamed from doc/guides/nics/mlx5.rst +0 -0

47709d93b3..2f46ed0263 100644

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

Quoted 4 lines
doc/guides/nics/mlx5.rst +1 -0
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when dv_xmeta_en enabled.

Did you understand my comment about the formatting?
You must add quotes like that: ``dv_xmeta_en`` Look at other occurences in the doc.

author
#11 lore raw

PATCH v5 1/1 doc: document a limitation for a meter with RSS action

In reply to Li Zhang

A meter policy with RSS/Queue action is not supported when ``dv_xmeta_en`` enabled.

When ``dv_xmeta_en`` enabled in legacy creating flow, it will split into two flows
(one set_tag with jump flow and one RSS/queue action flow). For meter policy as termination table,
it cannot split flow and
cannot support when ``dv_xmeta_en`` enabled.

Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst +1 -0
index 47709d93b3..cd28c04c1e 100644
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when ``dv_xmeta_en`` enabled.
   - meter profile packet mode is supported.
   - meter profiles of RFC2697, RFC2698 and RFC4115 are supported.
 
Signature · 1 line
2.27.0
#12 lore raw

The title should mention "mlx5 guide" as the scope.

26/10/2021 13:53, Li Zhang:

Quoted 2 lines

A meter policy with RSS/Queue action is not supported when ``dv_xmeta_en`` enabled.

The quotes are RST syntax.
Raslan, while merging, you can remove the quotes from the commit log.

Quoted 28 lines

When ``dv_xmeta_en`` enabled in legacy creating flow, it will split into two flows
(one set_tag with jump flow and one RSS/queue action flow). For meter policy as termination table,
it cannot split flow and
cannot support when ``dv_xmeta_en`` enabled.

Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst +1 -0
index 47709d93b3..cd28c04c1e 100644
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when ``dv_xmeta_en`` enabled.
   - meter profile packet mode is supported.
   - meter profiles of RFC2697, RFC2698 and RFC4115 are supported.
author
#13 lore raw

Thanks!
I will update it into patch v6 according to your comments. Please take a look.

Regards,
Li Zhang

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, October 26, 2021 8:28 PM
To: Li Zhang <[email protected]>; Raslan Darawsheh <[email protected]>
Cc: Ori Kam <[email protected]>; Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Shun Hao <[email protected]>; [email protected]; Roni Bar Yanai <[email protected]>; [email protected]
Subject: Re: [PATCH v5] doc: document a limitation for a meter with RSS action

External email: Use caution opening links or attachments

The title should mention "mlx5 guide" as the scope.

26/10/2021 13:53, Li Zhang:

Quoted 2 lines

A meter policy with RSS/Queue action is not supported when ``dv_xmeta_en`` enabled.

The quotes are RST syntax.
Raslan, while merging, you can remove the quotes from the commit log.

Quoted 27 lines

When ``dv_xmeta_en`` enabled in legacy creating flow, it will split into two flows (one set_tag with jump flow and one RSS/queue action flow).
For meter policy as termination table, it cannot split flow and cannot support when ``dv_xmeta_en`` enabled.

Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst index renamed from doc/guides/nics/mlx5.rst +0 -0

47709d93b3..cd28c04c1e 100644

doc/guides/nics/mlx5.rst +1 -0
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when ``dv_xmeta_en`` enabled.
   - meter profile packet mode is supported.
   - meter profiles of RFC2697, RFC2698 and RFC4115 are supported.
author
#14 lore raw

PATCH v6 1/1 doc: document a limitation for a meter with RSS action

In reply to Li Zhang

A meter policy with RSS/Queue action is not supported when dv_xmeta_en enabled.

When dv_xmeta_en enabled in legacy creating flow, it will split into two flows
(one set_tag with jump flow and one RSS/queue action flow). For meter policy as termination table,
it cannot split flow and
cannot support when dv_xmeta_en enabled.

Add this limitation in mlx5 guide document.

Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst +1 -0
index 47709d93b3..cd28c04c1e 100644
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when ``dv_xmeta_en`` enabled.
   - meter profile packet mode is supported.
   - meter profiles of RFC2697, RFC2698 and RFC4115 are supported.
 
Signature · 1 line
2.27.0
author
#15 lore raw

PATCH v7 1/1 doc: add metering limitation in mlx5 guide

In reply to Li Zhang

A meter policy with RSS/Queue action is not supported when dv_xmeta_en enabled.

When dv_xmeta_en enabled in legacy creating flow, it will split into two flows
(one set_tag with jump flow and one RSS/queue action flow). For meter policy as termination table,
it cannot split flow and
cannot support when dv_xmeta_en enabled.

Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")
---
 doc/guides/nics/mlx5.rst | 1 +
 1 file changed, 1 insertion(+)
doc/guides/nics/mlx5.rst +1 -0
index 47709d93b3..cd28c04c1e 100644
@@ -435,6 +435,7 @@ Limitations
      - yellow: QUEUE, RSS, PORT_ID, REPRESENTED_PORT, JUMP, DROP, MARK and SET_TAG.
      - RED: must be DROP.
   - Policy actions of RSS for green and yellow should have the same configuration except queues.
+  - Policy with RSS/queue action is not supported when ``dv_xmeta_en`` enabled.
   - meter profile packet mode is supported.
   - meter profiles of RFC2697, RFC2698 and RFC4115 are supported.
 
Signature · 1 line
2.27.0
#16 lore raw

Re: [dpdk-dev] [PATCH v7] doc: add metering limitation in mlx5 guide

Hi,

Quoted 20 lines

-----Original Message-----
From: Li Zhang <[email protected]>
Sent: Wednesday, October 27, 2021 12:14 PM
To: Ori Kam <[email protected]>; Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Shahaf Shuler <[email protected]>; Shun Hao <[email protected]>
Cc: [email protected]; NBU-Contact-Thomas Monjalon <[email protected]>; Raslan Darawsheh <[email protected]>; Roni Bar Yanai <[email protected]>; [email protected]
Subject: [PATCH v7] doc: add metering limitation in mlx5 guide

A meter policy with RSS/Queue action is not supported when dv_xmeta_en enabled.

When dv_xmeta_en enabled in legacy creating flow, it will split into two flows (one set_tag with jump flow and one RSS/queue action flow). For meter policy as termination table,
it cannot split flow and
cannot support when dv_xmeta_en enabled.

Quoted 5 lines
Fixes 51ec04d ("net/mlx5: connect meter policy to created flows")

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh