diff mbox series

[v2,3/3] gso: update documents for UDP/IPv4 GSO

Message ID 1529205194-87434-4-git-send-email-jiayu.hu@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers show
Series Support UDP/IPv4 GSO | expand


Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues

Commit Message

Hu, Jiayu June 17, 2018, 3:13 a.m. UTC
This patch updates the programmer guide and testpmd user guide for

Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
 doc/guides/prog_guide/generic_segmentation_offload_lib.rst | 6 ++++++
 doc/guides/testpmd_app_ug/testpmd_funcs.rst                | 6 ++++++
 2 files changed, 12 insertions(+)
diff mbox series


diff --git a/doc/guides/prog_guide/generic_segmentation_offload_lib.rst b/doc/guides/prog_guide/generic_segmentation_offload_lib.rst
index 9959f0d..cf700c5 100644
--- a/doc/guides/prog_guide/generic_segmentation_offload_lib.rst
+++ b/doc/guides/prog_guide/generic_segmentation_offload_lib.rst
@@ -43,6 +43,7 @@  Limitations
 #. Currently, the GSO library supports the following IPv4 packet types:
  - TCP
+ - UDP
  - VxLAN
  - GRE
@@ -146,6 +147,11 @@  TCP/IPv4 GSO
 TCP/IPv4 GSO supports segmentation of suitably large TCP/IPv4 packets, which
 may also contain an optional VLAN tag.
+UDP/IPv4 GSO supports segmentation of suitably large UDP/IPv4 packets, which
+may also contain an optional VLAN tag.
 VxLAN packets GSO supports segmentation of suitably large VxLAN packets,
diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
index 0d6fd50..1a9dcd8 100644
--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst
+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst
@@ -1059,6 +1059,12 @@  By default, GSO is disabled for all ports.
    testpmd> csum set tcp hw <port_id>
+   UDP GSO is the same as IP fragmentation, which treats the UDP header
+   as the payload and does not modify it during segmentation. That is,
+   after UDP GSO, only the first output fragment has the original UDP
+   header. Therefore, users just need to enable HW IPv4 checksum
+   calculation for GSO-enabled ports, when input packets are UDP/IPv4.
 set gso segsz