Skip to contentSkip to conversation

doc: fix formatting in testpmd user guide

PATCH In review Ajit Khaparde 4 participants 9 messages Mar 8, 2021 – Apr 27, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix formatting in testpmd user guide

Fix formatting in testpmd user guide for hairpin operation.

Fixes 01817b10d27c ("app/testpmd: change hairpin queues setup")
---
 doc/guides/testpmd_app_ug/run_app.rst | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
doc/guides/testpmd_app_ug/run_app.rst +7 -5
index 3035118cdc..8ec2300ee5 100644
@@ -531,11 +531,13 @@ The command line options are:
 
 *   ``--hairpin-mode=0xXX``
 
-    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set.
-    bit 4 - explicit Tx flow rule
-    bit 1 - two hairpin ports paired
-    bit 0 - two hairpin ports loop
-    The default value is 0. Hairpin will use single port mode and implicit Tx flow mode.
+    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set::
+
+	bit 4 - explicit Tx flow rule
+	bit 1 - two hairpin ports paired
+	bit 0 - two hairpin ports loop
+	The default value is 0.
+	Hairpin will use single port mode and implicit Tx flow mode.
 
 *   ``--eth-link-speed``
 
Signature · 1 line
2.21.1 (Apple Git-122.3)
#1 lore raw
Quoted 23 lines · Ajit Khaparde

Fix formatting in testpmd user guide for hairpin operation.

Fixes 01817b10d27c ("app/testpmd: change hairpin queues setup")
---
  doc/guides/testpmd_app_ug/run_app.rst | 12 +++++++-----
  1 file changed, 7 insertions(+), 5 deletions(-)
doc/guides/testpmd_app_ug/run_app.rst +0 -3
index 3035118cdc..8ec2300ee5 100644
@@ -531,11 +531,13 @@ The command line options are:
 
  *   ``--hairpin-mode=0xXX``
 
-    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set.
-    bit 4 - explicit Tx flow rule
-    bit 1 - two hairpin ports paired

doc/guides/testpmd_app_ug/run_app.rst The command line options are: · line 541

Quoted 10 lines
doc/guides/testpmd_app_ug/run_app.rst +7 -2
-    bit 0 - two hairpin ports loop
-    The default value is 0. Hairpin will use single port mode and implicit Tx flow mode.
+    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set::
+
+	bit 4 - explicit Tx flow rule
+	bit 1 - two hairpin ports paired
+	bit 0 - two hairpin ports loop
+	The default value is 0.
+	Hairpin will use single port mode and implicit Tx flow mode.
 

Not sure if the last line intended to be part of the list, what do you think only keep bit descriptions in the box but left the last sentences as regular paragraph. Ori please correct me if I am wrong with the original intention.

#2 lore raw
Quoted 32 lines · Ferruh Yigit
Quoted 30 lines · Ajit Khaparde

Fix formatting in testpmd user guide for hairpin operation.

Fixes 01817b10d27c ("app/testpmd: change hairpin queues setup")
---
  doc/guides/testpmd_app_ug/run_app.rst | 12 +++++++-----
  1 file changed, 7 insertions(+), 5 deletions(-)
doc/guides/testpmd_app_ug/run_app.rst +5 -5
index 3035118cdc..8ec2300ee5 100644
@@ -531,11 +531,13 @@ The command line options are:
 
  *   ``--hairpin-mode=0xXX``
 
-    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set.
-    bit 4 - explicit Tx flow rule
-    bit 1 - two hairpin ports paired
-    bit 0 - two hairpin ports loop
-    The default value is 0. Hairpin will use single port mode and implicit Tx flow mode.
+    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set::
+
+     bit 4 - explicit Tx flow rule
+     bit 1 - two hairpin ports paired
+     bit 0 - two hairpin ports loop
Quoted 8 lines

doc/guides/testpmd_app_ug/run_app.rst The command line options are: · line 541

Quoted 3 lines
doc/guides/testpmd_app_ug/run_app.rst +2 -0
+     The default value is 0.
+     Hairpin will use single port mode and implicit Tx flow mode.
 

Not sure if the last line intended to be part of the list, what do you think only keep bit descriptions in the box but left the last sentences as regular paragraph.
Ori please correct me if I am wrong with the original intention.

Ori,
Not just indentation. How about this modified text as well?

-       bit 0 - two hairpin ports loop
-       The default value is 0.
-       Hairpin will use single port mode and implicit Tx flow mode.
+       bit 0 - two hairpin ports loop (default)

+
+.. Note::
+
+ When hairpin is used in single port mode, Tx flow rule will be implicit.
Does this statement look right?

#3 lore raw
Quoted 52 lines · Ajit Khaparde
Quoted 32 lines · Ferruh Yigit
Quoted 30 lines · Ajit Khaparde

Fix formatting in testpmd user guide for hairpin operation.

Fixes 01817b10d27c ("app/testpmd: change hairpin queues setup")
---
   doc/guides/testpmd_app_ug/run_app.rst | 12 +++++++-----
   1 file changed, 7 insertions(+), 5 deletions(-)
doc/guides/testpmd_app_ug/run_app.rst +5 -5
index 3035118cdc..8ec2300ee5 100644
@@ -531,11 +531,13 @@ The command line options are:
 
   *   ``--hairpin-mode=0xXX``
 
-    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set.
-    bit 4 - explicit Tx flow rule
-    bit 1 - two hairpin ports paired
-    bit 0 - two hairpin ports loop
-    The default value is 0. Hairpin will use single port mode and implicit Tx flow mode.
+    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set::
+
+     bit 4 - explicit Tx flow rule
+     bit 1 - two hairpin ports paired
+     bit 0 - two hairpin ports loop
Quoted 8 lines

doc/guides/testpmd_app_ug/run_app.rst The command line options are: · line 541

Quoted 3 lines
doc/guides/testpmd_app_ug/run_app.rst +2 -0
+     The default value is 0.
+     Hairpin will use single port mode and implicit Tx flow mode.
 

Not sure if the last line intended to be part of the list, what do you think only keep bit descriptions in the box but left the last sentences as regular paragraph.
Ori please correct me if I am wrong with the original intention.

Ori,
Not just indentation. How about this modified text as well?

(quoted diff) +5 -3
-       bit 0 - two hairpin ports loop
-       The default value is 0.
-       Hairpin will use single port mode and implicit Tx flow mode.
+       bit 0 - two hairpin ports loop (default)
+
+.. Note::
+
+   When hairpin is used in single port mode, Tx flow rule will be implicit.
Quoted 2 lines

Does this statement look right?

Ping

#4 lore raw
Quoted 48 lines · Ferruh Yigit
Quoted 47 lines · Ajit Khaparde
Quoted 35 lines · Ferruh Yigit
Quoted 33 lines · Ajit Khaparde

Fix formatting in testpmd user guide for hairpin operation.

Fixes 01817b10d27c ("app/testpmd: change hairpin queues setup")

---
   doc/guides/testpmd_app_ug/run_app.rst | 12 +++++++-----

   1 file changed, 7 insertions(+), 5 deletions(-)
doc/guides/testpmd_app_ug/run_app.rst +0 -1
index 3035118cdc..8ec2300ee5 100644
@@ -531,11 +531,13 @@ The command line options are:
 
    *   ``--hairpin-mode=0xXX``
 
-    Set the hairpin port mode with bitmask, only valid when hairpin queues 

number is set.
-    bit 4 - explicit Tx flow rule
-    bit 1 - two hairpin ports paired
-    bit 0 - two hairpin ports loop
-    The default value is 0. Hairpin will use single port mode and implicit Tx flow mode.
+    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set::
+
+     bit 4 - explicit Tx flow rule
+     bit 1 - two hairpin ports paired
+     bit 0 - two hairpin ports loop

Quoted 8 lines
Quoted 3 lines

+     The default value is 0.
+     Hairpin will use single port mode and implicit Tx flow mode.

Not sure if the last line intended to be part of the list, what do you think only keep bit descriptions in the box but left the last sentences as regular paragraph.
Ori please correct me if I am wrong with the original intention.

Ori,
Not just indentation. How about this modified text as well?

Quoted 12 lines
Quoted 10 lines

-       bit 0 - two hairpin ports loop
-       The default value is 0.
-       Hairpin will use single port mode and implicit Tx flow mode. +       bit 0 - two hairpin ports loop (default)

(quoted diff) +4 -0
+
+.. Note::
+
+   When hairpin is used in single port mode, Tx flow rule will be implicit.

Does this statement look right?

Ping

Hi Ori, can you please check the question, let's close this patch out of way.

#5 lore raw

PATCH v2 1/1 doc: fix formatting in testpmd user guide

In reply to Ajit Khaparde

From: Ajit Khaparde <[email protected]>

Fix formatting in testpmd user guide for hairpin operation.

Fixes 01817b10d27c ("app/testpmd: change hairpin queues setup")

---
Cc: Bing Zhao <[email protected]>
Cc: Ori Kam <[email protected]>

v2:
* Fix only list formatting

---
 doc/guides/testpmd_app_ug/run_app.rst | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
doc/guides/testpmd_app_ug/run_app.rst +6 -4
index d0621658ae64..eb4831835322 100644
@@ -538,8 +538,10 @@ The command line options are:
 
 *   ``--hairpin-mode=0xXX``
 
-    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set.
-    bit 4 - explicit Tx flow rule
-    bit 1 - two hairpin ports paired
-    bit 0 - two hairpin ports loop
+    Set the hairpin port mode with bitmask, only valid when hairpin queues number is set::
+
+	bit 4 - explicit Tx flow rule
+	bit 1 - two hairpin ports paired
+	bit 0 - two hairpin ports loop
+
     The default value is 0. Hairpin will use single port mode and implicit Tx flow mode.
Signature · 1 line
2.30.2
Acked-by on v2 1/1
#6 lore raw

Hi

Quoted 9 lines

-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Saturday, April 24, 2021 00:30
To: Li, Xiaoyun <[email protected]>; Ori Kam <[email protected]>; Bing Zhao <[email protected]>
Cc: Yigit, Ferruh <[email protected]>; [email protected]; Ajit Khaparde <[email protected]>
Subject: [PATCH v2] doc: fix formatting in testpmd user guide

Quoted 6 lines

From: Ajit Khaparde <[email protected]>

Fix formatting in testpmd user guide for hairpin operation.

Fixes 01817b10d27c ("app/testpmd: change hairpin queues setup")

Missing a space after "Cc:" as patchwork says.

Except for this typo,

Applied
#7 lore raw
Quoted 15 lines · Xiaoyun

Hi

Quoted 13 lines

-----Original Message-----
From: Yigit, Ferruh <[email protected]>
Sent: Saturday, April 24, 2021 00:30
To: Li, Xiaoyun <[email protected]>; Ori Kam <[email protected]>; Bing Zhao <[email protected]>
Cc: Yigit, Ferruh <[email protected]>; [email protected]; Ajit Khaparde <[email protected]>
Subject: [PATCH v2] doc: fix formatting in testpmd user guide

From: Ajit Khaparde <[email protected]>

Fix formatting in testpmd user guide for hairpin operation.

Quoted 8 lines
Quoted 2 lines
Fixes 01817b10d27c ("app/testpmd: change hairpin queues setup")

Missing a space after "Cc:" as patchwork says.

Except for this typo,

Applied to dpdk-next-net/main, thanks.

Typo fixed while merging.

Reviewed-by on v2 1/1
#8 lore raw
In reply to Ferruh Yigit

Hi,

Quoted 52 lines

-----Original Message-----
From: Ferruh Yigit <[email protected]>
Sent: Saturday, April 24, 2021 12:30 AM
To: Xiaoyun Li <[email protected]>; Ori Kam <[email protected]>; Bing Zhao <[email protected]>
Cc: Ferruh Yigit <[email protected]>; [email protected]; Ajit Khaparde <[email protected]>
Subject: [PATCH v2] doc: fix formatting in testpmd user guide

External email: Use caution opening links or attachments

From: Ajit Khaparde <[email protected]>

Fix formatting in testpmd user guide for hairpin operation.

Fixes 01817b10d27c ("app/testpmd: change hairpin queues setup")

---
Cc: Bing Zhao <[email protected]>
Cc: Ori Kam <[email protected]>

v2:
* Fix only list formatting

---
 doc/guides/testpmd_app_ug/run_app.rst | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
doc/guides/testpmd_app_ug/run_app.rst +0 -1
index d0621658ae64..eb4831835322 100644
@@ -538,8 +538,10 @@ The command line options are:
 
 *   ``--hairpin-mode=0xXX``
 
-    Set the hairpin port mode with bitmask, only valid when hairpin

queues number is set.

doc/guides/testpmd_app_ug/run_app.rst +1 -3
-    bit 4 - explicit Tx flow rule
-    bit 1 - two hairpin ports paired
-    bit 0 - two hairpin ports loop
+    Set the hairpin port mode with bitmask, only valid when hairpin

queues number is set::

doc/guides/testpmd_app_ug/run_app.rst +5 -0
+
+       bit 4 - explicit Tx flow rule
+       bit 1 - two hairpin ports paired
+       bit 0 - two hairpin ports loop
+
     The default value is 0. Hairpin will use single port mode and
Quoted 3 lines

implicit Tx flow mode.
--
2.30.2