Skip to contentSkip to conversation

doc: update sample actions support in mlx5 guide

PATCH Superseded Jiawei Wang 3 participants 7 messages Mar 9, 2021 – Mar 17, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: update sample actions support in mlx5 guide

Updates the documentation for supported sample actions in the NIC Rx and E-Switch steering flow.

---
 doc/guides/nics/mlx5.rst | 2 ++
 1 file changed, 2 insertions(+)
doc/guides/nics/mlx5.rst +2 -0
index 7c50497..2aa7483 100644
@@ -370,6 +370,8 @@ Limitations
   - Supports ``RTE_FLOW_ACTION_TYPE_SAMPLE`` action only within NIC Rx and E-Switch steering domain.
   - The E-Switch Sample flow must have the eswitch_manager VPORT destination (PF or ECPF) and no additional actions.
   - For ConnectX-5, the ``RTE_FLOW_ACTION_TYPE_SAMPLE`` is typically used as first action in the E-Switch egress flow if with header modify or encapsulation actions.
+  - Supports ``MARK``, ``COUNT``, ``QUEUE``, ``RSS`` as sample actions for NIC Rx sampling/mirroring flow.
+  - Supports ``RAW ENCAP``, ``Port ID`` as sample actions for E-Switch mirroring (sample ratio = 1) flow.
 
 - Modify Field flow:
 
Signature · 1 line
1.8.3.1
#1 lore raw

09/03/2021 14:09, Jiawei Wang:

Quoted 1 line

+ - Supports ``MARK``, ``COUNT``, ``QUEUE``, ``RSS`` as sample actions for NIC Rx sampling/mirroring flow.

"sample actions for NIC Rx sampling" is redundant.
I suggest "Supports [...] actions for NIC Rx flow sampling/mirroring."

Quoted 1 line

+ - Supports ``RAW ENCAP``, ``Port ID`` as sample actions for E-Switch mirroring (sample ratio = 1) flow.

I suggest "Supports [...] actions for E-Switch flow mirroring."

If lines are long, do not hesitate to start a new line after a punctuation.

#2 lore raw

Hi Thomas,

Quoted 9 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Tuesday, March 9, 2021 9:39 PM
To: Jiawei(Jonny) Wang <[email protected]>
Cc: Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Ori Kam <[email protected]>; [email protected]; Raslan Darawsheh <[email protected]>
Subject: Re: [PATCH] doc: update sample actions support in mlx5 guide

Quoted 7 lines

09/03/2021 14:09, Jiawei Wang:

Quoted 1 line

+ - Supports ``MARK``, ``COUNT``, ``QUEUE``, ``RSS`` as sample actions for

NIC Rx sampling/mirroring flow.

"sample actions for NIC Rx sampling" is redundant.
I suggest "Supports [...] actions for NIC Rx flow sampling/mirroring."

These actions are support in the sample action list, user also can add modify, decap , encap in the NIC RX flow; How about this:

"For NIC RX flow with sample action, Supports [...] actions in the sample action list" ?

Quoted 7 lines
Quoted 1 line

+ - Supports ``RAW ENCAP``, ``Port ID`` as sample actions for E-Switch

mirroring (sample ratio = 1) flow.

I suggest "Supports [...] actions for E-Switch flow mirroring."

If lines are long, do not hesitate to start a new line after a punctuation.

Ok, I will split into two lines.

Thanks.

#3 lore raw

12/03/2021 10:44, Jiawei(Jonny) Wang:

Quoted 5 lines

From: Thomas Monjalon <[email protected]>

Quoted 4 lines

09/03/2021 14:09, Jiawei Wang:

Quoted 1 line

+ - Supports ``MARK``, ``COUNT``, ``QUEUE``, ``RSS`` as sample actions for

NIC Rx sampling/mirroring flow.

Quoted 8 lines
Quoted 3 lines

"sample actions for NIC Rx sampling" is redundant.
I suggest "Supports [...] actions for NIC Rx flow sampling/mirroring."

These actions are support in the sample action list, user also can add modify, decap , encap in the NIC RX flow; How about this:

"For NIC RX flow with sample action, Supports [...] actions in the sample action list" ?

Another suggestion:
For NIC Rx flow, supports [...] in the sampling actions list.

Quoted 11 lines
Quoted 7 lines
Quoted 1 line

+ - Supports ``RAW ENCAP``, ``Port ID`` as sample actions for E-Switch

mirroring (sample ratio = 1) flow.

I suggest "Supports [...] actions for E-Switch flow mirroring."

If lines are long, do not hesitate to start a new line after a punctuation.

Ok, I will split into two lines.

Thanks.

#4 lore raw

PATCH v2 1/1 doc: update sample actions support in mlx5 guide

In reply to Jiawei Wang

Updates the documentation for supported sample actions in the NIC Rx and E-Switch steering flow.

---
 doc/guides/nics/mlx5.rst | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
doc/guides/nics/mlx5.rst +11 -3
index 7c50497..96fce36 100644
@@ -367,9 +367,17 @@ Limitations
 
 - Sample flow:
 
-  - Supports ``RTE_FLOW_ACTION_TYPE_SAMPLE`` action only within NIC Rx and E-Switch steering domain.
-  - The E-Switch Sample flow must have the eswitch_manager VPORT destination (PF or ECPF) and no additional actions.
-  - For ConnectX-5, the ``RTE_FLOW_ACTION_TYPE_SAMPLE`` is typically used as first action in the E-Switch egress flow if with header modify or encapsulation actions.
+  - Supports ``RTE_FLOW_ACTION_TYPE_SAMPLE`` action only within NIC Rx and
+    E-Switch steering domain.
+  - The E-Switch Sample flow must have the eswitch_manager VPORT destination
+    (PF or ECPF) and no additional actions.
+  - For ConnectX-5, the ``RTE_FLOW_ACTION_TYPE_SAMPLE`` is typically used as
+    first action in the E-Switch egress flow if with header modify or
+    encapsulation actions.
+  - For NIC Rx flow, supports ``MARK``, ``COUNT``, ``QUEUE``, ``RSS`` in the
+    sample actions list.
+  - For E-Switch mirroring flow, supports ``RAW ENCAP``, ``Port ID`` in the
+    sample actions list.
 
 - Modify Field flow:
 
Signature · 1 line
1.8.3.1
#5 lore raw

PATCH v3 1/1 doc: update sample actions support in mlx5 guide

Updates the documentation for supported sample actions in the NIC Rx and E-Switch steering flow.

---
v3:
* Update the description.

v2:
* Update the description.

---
 doc/guides/nics/mlx5.rst | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
doc/guides/nics/mlx5.rst +11 -3
index 7c50497..a2cfc51 100644
@@ -367,9 +367,17 @@ Limitations
 
 - Sample flow:
 
-  - Supports ``RTE_FLOW_ACTION_TYPE_SAMPLE`` action only within NIC Rx and E-Switch steering domain.
-  - The E-Switch Sample flow must have the eswitch_manager VPORT destination (PF or ECPF) and no additional actions.
-  - For ConnectX-5, the ``RTE_FLOW_ACTION_TYPE_SAMPLE`` is typically used as first action in the E-Switch egress flow if with header modify or encapsulation actions.
+  - Supports ``RTE_FLOW_ACTION_TYPE_SAMPLE`` action only within NIC Rx and
+    E-Switch steering domain.
+  - For E-Switch Sampling flow with sample ratio > 1, additional actions are not
+    supported in the sample actions list.
+  - For ConnectX-5, the ``RTE_FLOW_ACTION_TYPE_SAMPLE`` is typically used as
+    first action in the E-Switch egress flow if with header modify or
+    encapsulation actions.
+  - For NIC Rx flow, supports ``MARK``, ``COUNT``, ``QUEUE``, ``RSS`` in the
+    sample actions list.
+  - For E-Switch mirroring flow, supports ``RAW ENCAP``, ``Port ID`` in the
+    sample actions list.
 
 - Modify Field flow:
 
Signature · 1 line
1.8.3.1
#6 lore raw

Hi,

Quoted 14 lines

-----Original Message-----
From: Jiawei Wang <[email protected]>
Sent: Tuesday, March 16, 2021 5:18 PM
To: Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Ori Kam <[email protected]>; NBU-Contact-Thomas Monjalon <[email protected]>
Cc: [email protected]; Raslan Darawsheh <[email protected]>
Subject: [PATCH v3] doc: update sample actions support in mlx5 guide

Updates the documentation for supported sample actions in the NIC Rx and E-Switch steering flow.

Quoted 8 lines

---
v3:
* Update the description.

v2:
* Update the description.

---

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh