[dpdk-dev] [PATCH v4 0/3] Support UDP/IPv4 GSO

Jiayu Hu jiayu.hu at intel.com
Fri Jul 6 03:02:21 CEST 2018


With the support of UDP Fragmentation Offload (UFO) and TCP Segmentation
Offload (TSO) in virtio, VMs can exchange large UDP and TCP packets
exceeding MTU between each other, which can greatly reduce per-packet
processing overheads.

When the destination of the large TCP and UDP packets is crossing
machines, the host application needs to call two different libraries,
GSO and IP fragmentation, to split the large packets respectively.
However,the GSO and IP fragmentation library have quite different APIs,
which greatly complicates the host application implementation.

To simplify application development, we propose to support UDP/IPv4
fragmentation in the GSO library. With supporting UDP GSO, host
applicationss can use the unified APIs to split large UDP and TCP packets.

This patchset is to support UDP/IPv4 GSO. The first patch is to provide
UDP GSO function, the second patch is to enable UDP/IPv4 GSO in the
testpmd checksum forwarding engine, and the last patch is to update the
programmer guide and testpmd user guide.

Change log
==========
v4:
- update Acked-by and Tested-by information to commit log.
v3:
- replace rte_pktmbuf_mtod() with rte_pktmbuf_mtod_offset().
- fix meson build.
- add updates to document for better explaining how UDP GSO works.
V2:
- fix fragment offset calculation bug.
- add UDP GSO description in testpmd user guide.
- shorten the second patch name.

Jiayu Hu (3):
  gso: support UDP/IPv4 fragmentation
  app/testpmd: enable UDP GSO in csum engine
  gso: update documents for UDP/IPv4 GSO

 app/test-pmd/cmdline.c                             |  5 +-
 app/test-pmd/csumonly.c                            |  2 +
 app/test-pmd/testpmd.c                             |  2 +-
 .../generic_segmentation_offload_lib.rst           | 10 +++
 doc/guides/testpmd_app_ug/testpmd_funcs.rst        |  7 ++
 lib/librte_gso/Makefile                            |  1 +
 lib/librte_gso/gso_common.h                        |  3 +
 lib/librte_gso/gso_udp4.c                          | 81 ++++++++++++++++++++++
 lib/librte_gso/gso_udp4.h                          | 42 +++++++++++
 lib/librte_gso/meson.build                         |  2 +-
 lib/librte_gso/rte_gso.c                           | 24 +++++--
 lib/librte_gso/rte_gso.h                           |  6 +-
 12 files changed, 175 insertions(+), 10 deletions(-)
 create mode 100644 lib/librte_gso/gso_udp4.c
 create mode 100644 lib/librte_gso/gso_udp4.h

-- 
2.7.4



More information about the dev mailing list