doc: minor fixes for GSO prog_guide
PATCH 1/1 doc: minor fixes for GSO prog_guide
Correct two minor issues in the GSO programmer's guide:
- a note is rendered incorrectly in the middle of an unordered list; this results in the remainder of the list appearing inside the note. Move note to end of the list to resolve same.
- two minor visual artifacts are present in the 'three-part-output-segment' diagram. Remove same.
--- .../generic_segmentation_offload_lib.rst | 18 ++-- doc/guides/prog_guide/img/gso-three-seg-mbuf.svg | 116 ++++++++++----------- 2 files changed, 68 insertions(+), 66 deletions(-)
doc/guides/prog_guide/generic_segmentation_offload_lib.rst +10 -8
@@ -195,14 +195,8 @@ To segment an outgoing packet, an application must: used to store the GSO segments' packet headers. - a pointer to the mbuf pool for allocating indirect buffers, which are - used to locate GSO segments' packet payloads. - -.. note:: - - An application may use the same pool for both direct and indirect - buffers. However, since each indirect mbuf simply stores a pointer, the - application may reduce its memory consumption by creating a separate memory - pool, containing smaller elements, for the indirect pool. + used to locate GSO segments' packet payloads. See note_ below for + additional details regarding this mempool. - the size of each output segment, including packet headers and payload, measured in bytes.
@@ -219,6 +213,14 @@ To segment an outgoing packet, an application must: - a flag, that indicates whether the IPv4 headers of output segments should contain fixed or incremental ID values. +.. _note: +.. note:: + + An application may use the same pool for both direct and indirect + buffers. However, since indirect mbufs simply store a pointer, the + application may reduce its memory consumption by creating a separate memory + pool, containing smaller elements, for the indirect pool. + 2. Set the appropriate ol_flags in the mbuf. - The GSO library use the value of an mbuf's ``ol_flags`` attribute to
doc/guides/prog_guide/img/gso-three-seg-mbuf.svg +58 -58
338 lines not on this page · raw message
Signature · 1 line
1.9.3
Quoted 28 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Mark Kavanagh
Sent: Thursday, October 12, 2017 2:46 PM
To: [email protected]
Cc: Hu, Jiayu <[email protected]>; Tan, Jianfeng <[email protected]>; Ananyev, Konstantin <[email protected]>; Yigit, Ferruh <[email protected]>; [email protected]; Kavanagh, Mark B <[email protected]>
Subject: [dpdk-dev] [PATCH] doc: minor fixes for GSOprog_guideCorrect two minor issues in the GSO programmer's guide:
- a note is rendered incorrectly in the middle of an unordered list; this results in the remainder of the list appearing inside the note. Move note to end of the list to resolve same.
- two minor visual artifacts are present in the 'three-part-output- segment'
diagram. Remove same.Fixes f6010c7 ("doc: add GSO programmer's guide")Signed-off-by Mark Kavanagh <[email protected]>+..
_note:
+.. note::
doc/guides/prog_guide/generic_segmentation_offload_lib.rst To segment an outgoing packet, an application must: · line 220
Quoted 3 lines
doc/guides/prog_guide/generic_segmentation_offload_lib.rst +3
-0+ + An application may use the same pool for both direct and indirect + buffers. However, since indirect mbufs simply store a pointer, the
Hi Mark,
The _note target should be more specific since the these targets are used across all the documentation. So something like _gso_note would be better. Or alternatively leave out the target and just say something in the text like "See the note below.", without the link, since the note is quite close to the referring text.
Also, the note isn't indented to the level of the bullet point. I don't know if that is intentional or not but I would say there should be an additional 3 spaces indentation from ..note:: to the end of the note.
With or without these changes:
Quoted 35 lines
From: Mcnamara, John
Sent: Thursday, October 12, 2017 4:29 PM
To: Kavanagh, Mark B <[email protected]>; [email protected]
Cc: Hu, Jiayu <[email protected]>; Tan, Jianfeng <[email protected]>; Ananyev, Konstantin <[email protected]>; Yigit, Ferruh <[email protected]>; [email protected]; Kavanagh, Mark B <[email protected]>
Subject: RE: [dpdk-dev] [PATCH] doc: minor fixes for GSOprog_guideQuoted 21 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Mark Kavanagh
Sent: Thursday, October 12, 2017 2:46 PM
To: [email protected]
Cc: Hu, Jiayu <[email protected]>; Tan, Jianfeng <[email protected]>; Ananyev, Konstantin <[email protected]>; Yigit, Ferruh <[email protected]>; [email protected]; Kavanagh, Mark B <[email protected]>
Subject: [dpdk-dev] [PATCH] doc: minor fixes for GSOprog_guideCorrect two minor issues in the GSO programmer's guide:
- a note is rendered incorrectly in the middle of an unordered list; this results in the remainder of the list appearing inside the note. Move note to end of the list to resolve same.
- two minor visual artifacts are present in the 'three-part-output- segment'
diagram. Remove same.Fixes f6010c7 ("doc: add GSO programmer's guide")Signed-off-by Mark Kavanagh <[email protected]>
Quoted 7 lines
doc/guides/prog_guide/generic_segmentation_offload_lib.rst To segment an outgoing packet, an application must: · line 220
Quoted 5 lines
+..
_note:
+.. note::doc/guides/prog_guide/generic_segmentation_offload_lib.rst +3
-0+ + An application may use the same pool for both direct and indirect + buffers. However, since indirect mbufs simply store a pointer, theHi Mark,
Hey John,
Thanks for the feedback - responses inline.
I'll post v2 now, and carry forward your Ack.
Cheers,
Mark
Quoted 6 lines
The
_notetarget should be more specific since the these targets are used across all the documentation. So something like_gso_notewould be better. Or alternatively leave out the target and just say something in the text like "See the note below.", without the link, since the note is quite close to the referring text.
I've moved the note back to its original position, but corrected the indentation, so this target can be removed.
Quoted 4 lines
Also, the note isn't indented to the level of the bullet point. I don't know if that is intentional or not but I would say there should be an additional 3 spaces indentation from ..note:: to the end of the note.
As above (the syntax highlighting of my editor shows indented 'note' tags as incorrect, which is why indentation was incorrect in the first place!).
Quoted 6 lines
With or without these changes:
Acked-by John McNamara <[email protected]>
PATCH v2 1/1 doc: minor fixes for GSO prog_guide
In reply to Mark KavanaghCorrect two minor issues in the GSO programmer's guide:
- a note is rendered incorrectly in the middle of an unordered list; this results in the remainder of the list appearing inside the note. Correct indentation of the note to resolve same.
- two minor visual artifacts are present in the 'three-part-output-segment' diagram. Remove same.
---
v2:
- Move note back to original position.
- Remove link to note, as it is no longer needed.
- Correct note's indentation, inline with text.
.../generic_segmentation_offload_lib.rst | 18 ++-- doc/guides/prog_guide/img/gso-three-seg-mbuf.svg | 116 ++++++++++----------- 2 files changed, 68 insertions(+), 66 deletions(-)
doc/guides/prog_guide/generic_segmentation_offload_lib.rst +10 -8
@@ -195,14 +195,8 @@ To segment an outgoing packet, an application must: used to store the GSO segments' packet headers. - a pointer to the mbuf pool for allocating indirect buffers, which are - used to locate GSO segments' packet payloads. - -.. note:: - - An application may use the same pool for both direct and indirect - buffers. However, since each indirect mbuf simply stores a pointer, the - application may reduce its memory consumption by creating a separate memory - pool, containing smaller elements, for the indirect pool. + used to locate GSO segments' packet payloads. See note_ below for + additional details regarding this mempool. - the size of each output segment, including packet headers and payload, measured in bytes.
@@ -219,6 +213,14 @@ To segment an outgoing packet, an application must: - a flag, that indicates whether the IPv4 headers of output segments should contain fixed or incremental ID values. +.. _note: +.. note:: + + An application may use the same pool for both direct and indirect + buffers. However, since indirect mbufs simply store a pointer, the + application may reduce its memory consumption by creating a separate memory + pool, containing smaller elements, for the indirect pool. + 2. Set the appropriate ol_flags in the mbuf. - The GSO library use the value of an mbuf's ``ol_flags`` attribute to
doc/guides/prog_guide/img/gso-three-seg-mbuf.svg +58 -58
338 lines not on this page · raw message
Signature · 1 line
1.9.3
PATCH v3 1/1 doc: minor fixes for GSO prog_guide
In reply to Mark KavanaghCorrect two minor issues in the GSO programmer's guide:
- a note is rendered incorrectly in the middle of an unordered list; this results in the remainder of the list appearing inside the note. Correct indentation of the note to resolve same.
- two minor visual artifacts are present in the 'three-part-output-segment' diagram. Remove same.
---
v3:
- Move note back to original position.
- Remove link to note, as it is no longer needed.
- Correct note's indentation, inline with text.
v2:
- Disregard - sent in error.
.../generic_segmentation_offload_lib.rst | 11 +- doc/guides/prog_guide/img/gso-three-seg-mbuf.svg | 116 ++++++++++----------- 2 files changed, 64 insertions(+), 63 deletions(-)
doc/guides/prog_guide/generic_segmentation_offload_lib.rst +6 -5
@@ -197,12 +197,13 @@ To segment an outgoing packet, an application must: - a pointer to the mbuf pool for allocating indirect buffers, which are used to locate GSO segments' packet payloads. -.. note:: + .. note:: + + An application may use the same pool for both direct and indirect + buffers. However, since indirect mbufs simply store a pointer, the + application may reduce its memory consumption by creating a separate memory + pool, containing smaller elements, for the indirect pool. - An application may use the same pool for both direct and indirect - buffers. However, since each indirect mbuf simply stores a pointer, the - application may reduce its memory consumption by creating a separate memory - pool, containing smaller elements, for the indirect pool. - the size of each output segment, including packet headers and payload, measured in bytes.
doc/guides/prog_guide/img/gso-three-seg-mbuf.svg +58 -58
338 lines not on this page · raw message
Signature · 1 line
1.9.3
Ferruh Yigit
AppliedQuoted 11 lines · Mark Kavanagh
Correct two minor issues in the GSO programmer's guide:
- a note is rendered incorrectly in the middle of an unordered list; this results in the remainder of the list appearing inside the note. Correct indentation of the note to resolve same.
- two minor visual artifacts are present in the 'three-part-output-segment' diagram. Remove same.Fixes f6010c7 ("doc: add GSO programmer's guide")Signed-off-by Mark Kavanagh <[email protected]>Acked-by John McNamara <[email protected]>
Applied to dpdk-next-net/master, thanks.