From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 939E92C39 for ; Fri, 29 Dec 2017 04:52:56 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Dec 2017 19:52:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,473,1508828400"; d="scan'208";a="15880393" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga003.jf.intel.com with ESMTP; 28 Dec 2017 19:52:55 -0800 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 28 Dec 2017 19:52:54 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 28 Dec 2017 19:52:54 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.159]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Fri, 29 Dec 2017 11:52:52 +0800 From: "Chen, Junjie J" To: "Hu, Jiayu" , "dev@dpdk.org" CC: "Tan, Jianfeng" , "Ananyev, Konstantin" , "stephen@networkplumber.org" , "Yigit, Ferruh" , "Yao, Lei A" Thread-Topic: [PATCH v3 0/2] Support VxLAN GRO Thread-Index: AQHTevWFHOtmHuV6UU6nZNZlA9kX0qNZupUQ Date: Fri, 29 Dec 2017 03:52:52 +0000 Message-ID: References: <1513219779-100115-1-git-send-email-jiayu.hu@intel.com> <1513927544-97241-1-git-send-email-jiayu.hu@intel.com> In-Reply-To: <1513927544-97241-1-git-send-email-jiayu.hu@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNjVlZmEyYzMtNTg2MC00NTUwLTg5MzAtYTNkYzYxOGZiYjZhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJBRW1BSTNmYm5BWGg3XC9BS0NKUVQxaGZFVWxCUVR4VUVVUXY3REl6UmlkdVdMMW1WTmJ4Q0I3dk9rNnZvWTM2WiJ9 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/2] Support VxLAN GRO 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: Fri, 29 Dec 2017 03:52:57 -0000 > -----Original Message----- > From: Hu, Jiayu > Sent: Friday, December 22, 2017 3:26 PM > To: dev@dpdk.org > Cc: Tan, Jianfeng ; Chen, Junjie J > ; Ananyev, Konstantin > ; stephen@networkplumber.org; Yigit, > Ferruh ; Yao, Lei A ; Hu, Ji= ayu > > Subject: [PATCH v3 0/2] Support VxLAN GRO >=20 > VxLAN is one of the most widely used tunneled protocols. Providing GRO > support for VxLAN-encapsulated packets can benefit many per-packet based > applications, like Open vSwitch. >=20 > This patchset is to support VxLAN GRO. The first patch cleans up current = gro > codes for the sake of supporting tunneled GRO. The second patch supports > GRO on the VxLAN packets which have an outer IPv4 header and an inner > TCP/IPv4 packet. >=20 > Change log > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > v3: > - remove needless check > - add "likely()" and "unlikely()" to optimize branch prediction > - fix a bug in merge_two_tcp4_packets(): for VxLAN packets, check if > the outer IPv4 packet length is less than or equal to UINT16_MAX, > rather than the inner IPv4 packet length. > - fix a bug in rte_gro.h: change RTE_GRO_TYPE_SUPPORT_NUM to 2 > - Avoid inserting timestamp in rte_gro_reassemble_burst(), since all > packets in the tables will be flushed. > - fix typos > v2: > - comply RFC 6848 to process IP ID fields. Specifically, we require the > IP ID fields of neighbor packets whose DF bit is 0 to be increased by > 1. We don't check IP ID for the packets whose DF bit is 1. > Additionally, packets whose DF bits are different cannot be merged. > - update the programmer guide and function comments >=20 > Jiayu Hu (2): > gro: code cleanup > gro: support VxLAN GRO >=20 > .../prog_guide/generic_receive_offload_lib.rst | 269 ++++++----- > doc/guides/prog_guide/img/gro-key-algorithm.png | Bin 0 -> 28231 > bytes > lib/librte_gro/Makefile | 1 + > lib/librte_gro/gro_tcp4.c | 330 +++++-------- > lib/librte_gro/gro_tcp4.h | 253 +++++++--- > lib/librte_gro/gro_vxlan_tcp4.c | 515 > +++++++++++++++++++++ > lib/librte_gro/gro_vxlan_tcp4.h | 184 ++++++++ > lib/librte_gro/rte_gro.c | 199 +++++--- > lib/librte_gro/rte_gro.h | 97 ++-- > 9 files changed, 1337 insertions(+), 511 deletions(-) create mode 10064= 4 > doc/guides/prog_guide/img/gro-key-algorithm.png > create mode 100644 lib/librte_gro/gro_vxlan_tcp4.c create mode 100644 > lib/librte_gro/gro_vxlan_tcp4.h >=20 > -- > 2.7.4 Reviewed-by: Junjie Chen Thanks