From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id D2B1C1B1CF for ; Wed, 10 Jan 2018 14:59:21 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jan 2018 05:59:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,340,1511856000"; d="scan'208";a="26046650" Received: from dpdk15.sh.intel.com ([10.67.111.77]) by orsmga002.jf.intel.com with ESMTP; 10 Jan 2018 05:59:19 -0800 From: Jiayu Hu To: dev@dpdk.org Cc: thomas@monjalon.net, junjie.j.chen@intel.com, jianfeng.tan@intel.com, lei.a.yao@intel.com, Jiayu Hu Date: Wed, 10 Jan 2018 22:03:09 +0800 Message-Id: <1515592992-70278-1-git-send-email-jiayu.hu@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515132769-52572-1-git-send-email-jiayu.hu@intel.com> References: <1515132769-52572-1-git-send-email-jiayu.hu@intel.com> Subject: [dpdk-dev] [PATCH v5 0/3] 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: Wed, 10 Jan 2018 13:59:22 -0000 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. This patchset is to support VxLAN GRO. The first patch cleans up current codes and updates the document for better understanding. The second patch complies RFC 6848 to process IPv4 ID for TCP/IPv4 packets. The third patch supports GRO on the VxLAN packets which have an outer IPv4 header and an inner TCP/IPv4 packet. Change log =========== v5: - split the patch set into three patches - convert license headers to SPDX tags v4: - replace gro-key-algorithm.png with gro-key-algorithm.svg - reduce key comparison times in gro_tcp4_reassemble() and gro_vxlan_tcp4_reassemble() - reduce comparison times in rte_gro_get_pkt_count() 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 Jiayu Hu (3): gro: codes cleanup gro: comply RFC 6864 to process IPv4 ID gro: support VxLAN GRO .../prog_guide/generic_receive_offload_lib.rst | 269 ++++++----- doc/guides/prog_guide/img/gro-key-algorithm.svg | 223 ++++++++++ lib/librte_gro/Makefile | 1 + lib/librte_gro/gro_tcp4.c | 325 +++++--------- lib/librte_gro/gro_tcp4.h | 251 ++++++++--- lib/librte_gro/gro_vxlan_tcp4.c | 494 +++++++++++++++++++++ lib/librte_gro/gro_vxlan_tcp4.h | 156 +++++++ lib/librte_gro/rte_gro.c | 197 +++++--- lib/librte_gro/rte_gro.h | 97 ++-- 9 files changed, 1513 insertions(+), 500 deletions(-) create mode 100644 doc/guides/prog_guide/img/gro-key-algorithm.svg create mode 100644 lib/librte_gro/gro_vxlan_tcp4.c create mode 100644 lib/librte_gro/gro_vxlan_tcp4.h -- 2.7.4