From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id E694B5B14 for ; Mon, 25 Jun 2018 06:13:42 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jun 2018 21:13:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,268,1526367600"; d="scan'208";a="59890564" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by FMSMGA003.fm.intel.com with ESMTP; 24 Jun 2018 21:13:39 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 24 Jun 2018 21:13:40 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.82]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.51]) with mapi id 14.03.0319.002; Mon, 25 Jun 2018 12:13:38 +0800 From: "Wang, Xiao W" To: "Hu, Jiayu" , "dev@dpdk.org" CC: "Ananyev, Konstantin" , "Zhang, Yuwei1" , "Iremonger, Bernard" , "thomas@monjalon.net" Thread-Topic: [PATCH v3 0/3] Support UDP/IPv4 GSO Thread-Index: AQHUCexXpfQsQ5ihak+dmLppoeAHRKRwYYDw Date: Mon, 25 Jun 2018 04:13:37 +0000 Message-ID: References: <1529205194-87434-1-git-send-email-jiayu.hu@intel.com> <1529646843-45903-1-git-send-email-jiayu.hu@intel.com> In-Reply-To: <1529646843-45903-1-git-send-email-jiayu.hu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTc0NDI0MDktNWVhOS00YTY4LWE5ZTQtN2E1YmI3ZWUzZDViIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiM1pKRE5RSE5IeVJxbDJQNEhFQWVCR0tGZlRwVXZBV3JHXC9hcW9rOUI5cFBmKzhOb1Fsc1lSNnNXcnRoSFpnZVAifQ== dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 0/3] Support UDP/IPv4 GSO X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2018 04:13:43 -0000 Hi, > -----Original Message----- > From: Hu, Jiayu > Sent: Friday, June 22, 2018 1:54 PM > To: dev@dpdk.org > Cc: Wang, Xiao W ; Ananyev, Konstantin > ; Zhang, Yuwei1 ; > Iremonger, Bernard ; thomas@monjalon.net; > Hu, Jiayu > Subject: [PATCH v3 0/3] Support UDP/IPv4 GSO >=20 > 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. >=20 > 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. >=20 > 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= . >=20 > 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. >=20 > Change log > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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. >=20 > Jiayu Hu (3): > gso: support UDP/IPv4 fragmentation > app/testpmd: enable UDP GSO in csum engine > gso: update documents for UDP/IPv4 GSO >=20 > 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 >=20 > -- > 2.7.4 Series Acked-by: Xiao Wang BRs, Xiao