Skip to contentSkip to conversation

gro: support TCP/IPv6 and UDP/IPv6 for VLAN and VXLAN

PATCH In review [email protected] 4 participants 13 messages Dec 21, 2020 – Jun 12, 2023 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

cover gro: support TCP/IPv6 and UDP/IPv6 for VLAN and VXLAN

From: Yi Yang <[email protected]>

In production system, both IPv4 and IPv6 are required, this patch series added TCP/IPv6 and UDP/IPv6 gro support for both VLAN and VXLAN use cases, with this patch seiries applied, DPDK can support gro for all the below cases:

VLAN TCP/IPv4
VLAN UDP/IPv4
VLAN TCP/IPv6
VLAN UDP/IPv6
IPv4 VXLAN TCP/IPv4
IPv4 VXLAN UDP/IPv4
IPv4 VXLAN TCP/IPv6
IPv4 VXLAN UDP/IPv6
IPv6 VXLAN TCP/IPv4
IPv6 VXLAN UDP/IPv4
IPv6 VXLAN TCP/IPv6
IPv4 VXLAN UDP/IPv6

Yi Yang (8):
gro: support TCP/IPv6
gro: support IPv4 VXLAN TCP/IPv6
gro: support IPv6 VXLAN TCP/IPv4
gro: support IPv6 VXLAN TCP/IPv6
gro: support UDP/IPv6
gro: support IPv4 VXLAN UDP/IPv6
gro: support IPv6 VXLAN UDP/IPv4
gro: support IPv6 VXLAN UDP/IPv6

 .../prog_guide/generic_receive_offload_lib.rst     |  16 +-
 doc/guides/rel_notes/release_21_02.rst             |  39 ++
 lib/librte_gro/gro_tcp6.c                          | 368 +++++++++++++
 lib/librte_gro/gro_tcp6.h                          | 314 +++++++++++
 lib/librte_gro/gro_udp6.c                          | 487 +++++++++++++++++
 lib/librte_gro/gro_udp6.h                          | 284 ++++++++++
 lib/librte_gro/gro_vxlan6_tcp4.c                   | 507 +++++++++++++++++
 lib/librte_gro/gro_vxlan6_tcp4.h                   | 153 ++++++
 lib/librte_gro/gro_vxlan6_tcp6.c                   | 464 ++++++++++++++++
 lib/librte_gro/gro_vxlan6_tcp6.h                   | 153 ++++++
 lib/librte_gro/gro_vxlan6_udp4.c                   | 559 +++++++++++++++++++
 lib/librte_gro/gro_vxlan6_udp4.h                   | 148 +++++
 lib/librte_gro/gro_vxlan6_udp6.c                   | 589 ++++++++++++++++++++
 lib/librte_gro/gro_vxlan6_udp6.h                   | 148 +++++
 lib/librte_gro/gro_vxlan_tcp6.c                    | 496 +++++++++++++++++
 lib/librte_gro/gro_vxlan_tcp6.h                    | 156 ++++++
 lib/librte_gro/gro_vxlan_udp6.c                    | 607 +++++++++++++++++++++
 lib/librte_gro/gro_vxlan_udp6.h                    | 152 ++++++
 lib/librte_gro/meson.build                         |   2 +-
 lib/librte_gro/rte_gro.c                           | 537 +++++++++++++++++-
 lib/librte_gro/rte_gro.h                           |  24 +
 21 files changed, 6186 insertions(+), 17 deletions(-)
 create mode 100644 lib/librte_gro/gro_tcp6.c
 create mode 100644 lib/librte_gro/gro_tcp6.h
 create mode 100644 lib/librte_gro/gro_udp6.c
 create mode 100644 lib/librte_gro/gro_udp6.h
 create mode 100644 lib/librte_gro/gro_vxlan6_tcp4.c
 create mode 100644 lib/librte_gro/gro_vxlan6_tcp4.h
 create mode 100644 lib/librte_gro/gro_vxlan6_tcp6.c
 create mode 100644 lib/librte_gro/gro_vxlan6_tcp6.h
 create mode 100644 lib/librte_gro/gro_vxlan6_udp4.c
 create mode 100644 lib/librte_gro/gro_vxlan6_udp4.h
 create mode 100644 lib/librte_gro/gro_vxlan6_udp6.c
 create mode 100644 lib/librte_gro/gro_vxlan6_udp6.h
 create mode 100644 lib/librte_gro/gro_vxlan_tcp6.c
 create mode 100644 lib/librte_gro/gro_vxlan_tcp6.h
 create mode 100644 lib/librte_gro/gro_vxlan_udp6.c
 create mode 100644 lib/librte_gro/gro_vxlan_udp6.h
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/8 gro: support TCP/IPv6

From: Yi Yang <[email protected]>

TCP/IPv6 GRO can help improve TCP/IPv6 performance.

With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM TCP/IPv6 performance, it will merge small adjacent TCP/IPv6 segments to a big TCP/IPv6 segment immediate after they are received from a physical NIC. It is very helpful in OVS DPDK VLAN use case.

---
 .../prog_guide/generic_receive_offload_lib.rst     |  10 +-
 doc/guides/rel_notes/release_21_02.rst             |   5 +
 lib/librte_gro/gro_tcp6.c                          | 368 +++++++++++++++++++++
 lib/librte_gro/gro_tcp6.h                          | 314 ++++++++++++++++++
 lib/librte_gro/meson.build                         |   2 +-
 lib/librte_gro/rte_gro.c                           |  74 ++++-
 lib/librte_gro/rte_gro.h                           |   3 +
 7 files changed, 762 insertions(+), 14 deletions(-)
 create mode 100644 lib/librte_gro/gro_tcp6.c
 create mode 100644 lib/librte_gro/gro_tcp6.h
doc/guides/prog_guide/generic_receive_offload_lib.rst +5 -5
index 98a5d29..fee856e 100644
@@ -30,9 +30,9 @@ assumes the packets are complete (i.e., MF==0 && frag_off==0), when IP
 fragmentation is possible (i.e., DF==0). Additionally, it complies RFC
 6864 to process the IPv4 ID field.
 
-Currently, the GRO library provides GRO supports for TCP/IPv4 and UDP/IPv4
-packets as well as VxLAN packets which contain an outer IPv4 header and an
-inner TCP/IPv4 or UDP/IPv4 packet.
+Currently, the GRO library provides GRO supports for TCP/IPv4, UDP/IPv4,
+and TCP/IPv6 packets as well as VxLAN packets which contain an outer IPv4
+header and an inner TCP/IPv4 or UDP/IPv4 packet.
 
 Two Sets of API
 ---------------
@@ -83,8 +83,8 @@ Reassembly Algorithm
 
 The reassembly algorithm is used for reassembling packets. In the GRO
 library, different GRO types can use different algorithms. In this
-section, we will introduce an algorithm, which is used by TCP/IPv4 GRO
-and VxLAN GRO.
+section, we will introduce an algorithm, which is used by TCP/IPv4 GRO,
+TCP/IPv6 GRO and VxLAN GRO.
 
 Challenges
 ~~~~~~~~~~
doc/guides/rel_notes/release_21_02.rst +5 -0
index 638f981..1a1aeff 100644
@@ -55,6 +55,11 @@ New Features
      Also, make sure to start the actual text at the margin.
      =======================================================
 
+* **Added TCP/IPv6 GRO support for non-VXLAN packets.**
+
+   Added TCP/IPv6 GRO support for non-VXLAN packets, this enabled TCP/IPv6
+   GRO support for VLAN use case.
+
 
 Removed Items
 -------------
lib/librte_gro/gro_tcp6.c new file +368 -0

368 lines not on this page · raw message

lib/librte_gro/gro_tcp6.h new file +314 -0

314 lines not on this page · raw message

lib/librte_gro/meson.build +1 -1
index ea8b45c..6143dd0 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c')
+sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c')
 headers = files('rte_gro.h')
 deps += ['ethdev']
lib/librte_gro/rte_gro.c +66 -8

167 lines not on this page · raw message

lib/librte_gro/rte_gro.h +3 -0
index 9f9ed49..39b57e8 100644
@@ -38,6 +38,9 @@
 #define RTE_GRO_IPV4_VXLAN_UDP_IPV4_INDEX 3
 #define RTE_GRO_IPV4_VXLAN_UDP_IPV4 (1ULL << RTE_GRO_IPV4_VXLAN_UDP_IPV4_INDEX)
 /**< VxLAN UDP/IPv4 GRO flag. */
+#define RTE_GRO_TCP_IPV6_INDEX 4
+#define RTE_GRO_TCP_IPV6 (1ULL << RTE_GRO_TCP_IPV6_INDEX)
+/**< TCP/IPv6 GRO flag */
 
 /**
  * Structure used to create GRO context objects or used to pass
Signature · 1 line
1.8.3.1
#2 lore raw

PATCH 2/8 gro: support IPv4 VXLAN TCP/IPv6

In reply to [email protected]

From: Yi Yang <[email protected]>

IPv4 VXLAN TCP/IPv6 GRO can help improve TCP/IPv6 performance in IPv4 VXLAN use case.

With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM TCP/IPv6 performance, it will merge small adjacent IPv4 VXLAN TCP/IPv6 packets to a big IPv4 VXLAN TCP/IPv6 packet immediate after they are received from a physical NIC. It is very helpful in OVS DPDK IPv4 VXLAN use case.

---
 .../prog_guide/generic_receive_offload_lib.rst     |   6 +-
 doc/guides/rel_notes/release_21_02.rst             |   5 +
 lib/librte_gro/gro_vxlan_tcp6.c                    | 496 +++++++++++++++++++++
 lib/librte_gro/gro_vxlan_tcp6.h                    | 156 +++++++
 lib/librte_gro/meson.build                         |   2 +-
 lib/librte_gro/rte_gro.c                           |  81 +++-
 lib/librte_gro/rte_gro.h                           |   3 +
 7 files changed, 736 insertions(+), 13 deletions(-)
 create mode 100644 lib/librte_gro/gro_vxlan_tcp6.c
 create mode 100644 lib/librte_gro/gro_vxlan_tcp6.h
doc/guides/prog_guide/generic_receive_offload_lib.rst +3 -3
index fee856e..ecb5909 100644
@@ -32,7 +32,7 @@ fragmentation is possible (i.e., DF==0). Additionally, it complies RFC
 
 Currently, the GRO library provides GRO supports for TCP/IPv4, UDP/IPv4,
 and TCP/IPv6 packets as well as VxLAN packets which contain an outer IPv4
-header and an inner TCP/IPv4 or UDP/IPv4 packet.
+header and an inner TCP/IPv4, UDP/IPv4 or TCP/IPv6 packet.
 
 Two Sets of API
 ---------------
@@ -161,8 +161,8 @@ Header fields deciding if two packets are neighbors include:
 - IPv4 ID. The IPv4 ID fields of the packets, whose DF bit is 0, should
   be increased by 1.
 
-VxLAN GRO
----------
+IPv4 VxLAN TCP/IPv4 GRO
+-----------------------
 
 The table structure used by VxLAN GRO, which is in charge of processing
 VxLAN packets with an outer IPv4 header and inner TCP/IPv4 packet, is
doc/guides/rel_notes/release_21_02.rst +5 -0
index 1a1aeff..035d774 100644
@@ -60,6 +60,11 @@ New Features
    Added TCP/IPv6 GRO support for non-VXLAN packets, this enabled TCP/IPv6
    GRO support for VLAN use case.
 
+* **Added TCP/IPv6 GRO support for IPv4 VXLAN packets.**
+
+   Added TCP/IPv6 GRO support for IPv4 VXLAN packets, this enabled TCP/IPv6
+   GRO support for IPv4 VXLAN use case.
+
 
 Removed Items
 -------------
lib/librte_gro/gro_vxlan_tcp6.c new file +496 -0

496 lines not on this page · raw message

lib/librte_gro/gro_vxlan_tcp6.h new file +156 -0

156 lines not on this page · raw message

lib/librte_gro/meson.build +1 -1
index 6143dd0..020e7e8 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c')
+sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c')
 headers = files('rte_gro.h')
 deps += ['ethdev']
lib/librte_gro/rte_gro.c +72 -9

178 lines not on this page · raw message

lib/librte_gro/rte_gro.h +3 -0
index 39b57e8..41a2bec 100644
@@ -41,6 +41,9 @@
 #define RTE_GRO_TCP_IPV6_INDEX 4
 #define RTE_GRO_TCP_IPV6 (1ULL << RTE_GRO_TCP_IPV6_INDEX)
 /**< TCP/IPv6 GRO flag */
+#define RTE_GRO_IPV4_VXLAN_TCP_IPV6_INDEX 5
+#define RTE_GRO_IPV4_VXLAN_TCP_IPV6 (1ULL << RTE_GRO_IPV4_VXLAN_TCP_IPV6_INDEX)
+/**< IPv4 VxLAN TCP/IPv6 GRO flag. */
 
 /**
  * Structure used to create GRO context objects or used to pass
Signature · 1 line
1.8.3.1
#3 lore raw

PATCH 3/8 gro: support IPv6 VXLAN TCP/IPv4

In reply to [email protected]

From: Yi Yang <[email protected]>

IPv6 VXLAN TCP/IPv4 GRO can help improve TCP/IPv4 performance in IPv6 VXLAN use case.

With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM TCP/IPv4 performance, it will merge small adjacent IPv6 VXLAN TCP/IPv4 packets to a big IPv6 VXLAN TCP/IPv4 packet immediate after they are received from a physical NIC. It is very helpful in OVS DPDK IPv6 VXLAN use case.

---
 .../prog_guide/generic_receive_offload_lib.rst     |   3 +-
 doc/guides/rel_notes/release_21_02.rst             |   4 +
 lib/librte_gro/gro_vxlan6_tcp4.c                   | 507 +++++++++++++++++++++
 lib/librte_gro/gro_vxlan6_tcp4.h                   | 153 +++++++
 lib/librte_gro/meson.build                         |   2 +-
 lib/librte_gro/rte_gro.c                           |  86 +++-
 lib/librte_gro/rte_gro.h                           |   3 +
 7 files changed, 747 insertions(+), 11 deletions(-)
 create mode 100644 lib/librte_gro/gro_vxlan6_tcp4.c
 create mode 100644 lib/librte_gro/gro_vxlan6_tcp4.h
doc/guides/prog_guide/generic_receive_offload_lib.rst +2 -1
index ecb5909..a822eaf 100644
@@ -32,7 +32,8 @@ fragmentation is possible (i.e., DF==0). Additionally, it complies RFC
 
 Currently, the GRO library provides GRO supports for TCP/IPv4, UDP/IPv4,
 and TCP/IPv6 packets as well as VxLAN packets which contain an outer IPv4
-header and an inner TCP/IPv4, UDP/IPv4 or TCP/IPv6 packet.
+header and an inner TCP/IPv4, UDP/IPv4 or TCP/IPv6 packet or an outer IPv6
+header and an inner TCP/IPv4 packet.
 
 Two Sets of API
 ---------------
doc/guides/rel_notes/release_21_02.rst +4 -0
index 035d774..3b98915 100644
@@ -65,6 +65,10 @@ New Features
    Added TCP/IPv6 GRO support for IPv4 VXLAN packets, this enabled TCP/IPv6
    GRO support for IPv4 VXLAN use case.
 
+* **Added TCP/IPv4 GRO support for IPv6 VXLAN packets.**
+
+   Added TCP/IPv4 GRO support for IPv6 VXLAN packets, this enabled TCP/IPv4
+   GRO support for IPv6 VXLAN use case.
 
 Removed Items
 -------------
lib/librte_gro/gro_vxlan6_tcp4.c new file +507 -0

507 lines not on this page · raw message

lib/librte_gro/gro_vxlan6_tcp4.h new file +153 -0

153 lines not on this page · raw message

lib/librte_gro/meson.build +1 -1
index 020e7e8..994ee06 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c')
+sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c')
 headers = files('rte_gro.h')
 deps += ['ethdev']
lib/librte_gro/rte_gro.c +77 -9

191 lines not on this page · raw message

lib/librte_gro/rte_gro.h +3 -0
index 41a2bec..2949980 100644
@@ -44,6 +44,9 @@
 #define RTE_GRO_IPV4_VXLAN_TCP_IPV6_INDEX 5
 #define RTE_GRO_IPV4_VXLAN_TCP_IPV6 (1ULL << RTE_GRO_IPV4_VXLAN_TCP_IPV6_INDEX)
 /**< IPv4 VxLAN TCP/IPv6 GRO flag. */
+#define RTE_GRO_IPV6_VXLAN_TCP_IPV4_INDEX 6
+#define RTE_GRO_IPV6_VXLAN_TCP_IPV4 (1ULL << RTE_GRO_IPV6_VXLAN_TCP_IPV4_INDEX)
+/**< IPv6 VxLAN TCP/IPv4 GRO flag. */
 
 /**
  * Structure used to create GRO context objects or used to pass
Signature · 1 line
1.8.3.1
#4 lore raw

PATCH 4/8 gro: support IPv6 VXLAN TCP/IPv6

In reply to [email protected]

From: Yi Yang <[email protected]>

IPv6 VXLAN TCP/IPv6 GRO can help improve TCP/IPv6 performance in IPv6 VXLAN use case.

With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM TCP/IPv6 performance, it will merge small adjacent IPv6 VXLAN TCP/IPv6 packets to a big IPv6 VXLAN TCP/IPv6 packet immediate after they are received from a physical NIC. It is very helpful in OVS DPDK IPv6 VXLAN use case.

---
 .../prog_guide/generic_receive_offload_lib.rst     |   2 +-
 doc/guides/rel_notes/release_21_02.rst             |   5 +
 lib/librte_gro/gro_vxlan6_tcp6.c                   | 464 +++++++++++++++++++++
 lib/librte_gro/gro_vxlan6_tcp6.h                   | 153 +++++++
 lib/librte_gro/meson.build                         |   2 +-
 lib/librte_gro/rte_gro.c                           |  87 +++-
 lib/librte_gro/rte_gro.h                           |   3 +
 7 files changed, 706 insertions(+), 10 deletions(-)
 create mode 100644 lib/librte_gro/gro_vxlan6_tcp6.c
 create mode 100644 lib/librte_gro/gro_vxlan6_tcp6.h
doc/guides/prog_guide/generic_receive_offload_lib.rst +1 -1
index a822eaf..0efade3 100644
@@ -33,7 +33,7 @@ fragmentation is possible (i.e., DF==0). Additionally, it complies RFC
 Currently, the GRO library provides GRO supports for TCP/IPv4, UDP/IPv4,
 and TCP/IPv6 packets as well as VxLAN packets which contain an outer IPv4
 header and an inner TCP/IPv4, UDP/IPv4 or TCP/IPv6 packet or an outer IPv6
-header and an inner TCP/IPv4 packet.
+header and an inner TCP/IPv4 or TCP/IPv6 packet.
 
 Two Sets of API
 ---------------
doc/guides/rel_notes/release_21_02.rst +5 -0
index 3b98915..a5bc2f1 100644
@@ -70,6 +70,11 @@ New Features
    Added TCP/IPv4 GRO support for IPv6 VXLAN packets, this enabled TCP/IPv4
    GRO support for IPv6 VXLAN use case.
 
+* **Added TCP/IPv6 GRO support for IPv6 VXLAN packets.**
+
+   Added TCP/IPv6 GRO support for IPv6 VXLAN packets, this enabled TCP/IPv6
+   GRO support for IPv6 VXLAN use case.
+
 Removed Items
 -------------
 
lib/librte_gro/gro_vxlan6_tcp6.c new file +464 -0

464 lines not on this page · raw message

lib/librte_gro/gro_vxlan6_tcp6.h new file +153 -0

153 lines not on this page · raw message

lib/librte_gro/meson.build +1 -1
index 994ee06..3eff89c 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c')
+sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c', 'gro_vxlan6_tcp6.c')
 headers = files('rte_gro.h')
 deps += ['ethdev']
lib/librte_gro/rte_gro.c +79 -8

188 lines not on this page · raw message

lib/librte_gro/rte_gro.h +3 -0
index 2949980..cb0895f 100644
@@ -47,6 +47,9 @@
 #define RTE_GRO_IPV6_VXLAN_TCP_IPV4_INDEX 6
 #define RTE_GRO_IPV6_VXLAN_TCP_IPV4 (1ULL << RTE_GRO_IPV6_VXLAN_TCP_IPV4_INDEX)
 /**< IPv6 VxLAN TCP/IPv4 GRO flag. */
+#define RTE_GRO_IPV6_VXLAN_TCP_IPV6_INDEX 7
+#define RTE_GRO_IPV6_VXLAN_TCP_IPV6 (1ULL << RTE_GRO_IPV6_VXLAN_TCP_IPV6_INDEX)
+/**< IPv6 VxLAN TCP/IPv6 GRO flag. */
 
 /**
  * Structure used to create GRO context objects or used to pass
Signature · 1 line
1.8.3.1
#5 lore raw

PATCH 5/8 gro: support UDP/IPv6

In reply to [email protected]

From: Yi Yang <[email protected]>

UDP/IPv6 GRO can help improve UDP/IPv6 performance.

With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP/IPv6 performance, it will merge small adjacent UDP/IPv6 fragments to a big UDP/IPv6 packet immediate after they are received from a physical NIC. It is very helpful in OVS DPDK VLAN use case.

---
 .../prog_guide/generic_receive_offload_lib.rst     |   6 +-
 doc/guides/rel_notes/release_21_02.rst             |   5 +
 lib/librte_gro/gro_udp6.c                          | 487 +++++++++++++++++++++
 lib/librte_gro/gro_udp6.h                          | 284 ++++++++++++
 lib/librte_gro/meson.build                         |   2 +-
 lib/librte_gro/rte_gro.c                           |  72 ++-
 lib/librte_gro/rte_gro.h                           |   3 +
 7 files changed, 847 insertions(+), 12 deletions(-)
 create mode 100644 lib/librte_gro/gro_udp6.c
 create mode 100644 lib/librte_gro/gro_udp6.h
doc/guides/prog_guide/generic_receive_offload_lib.rst +3 -3
index 0efade3..0ea3076 100644
@@ -31,9 +31,9 @@ fragmentation is possible (i.e., DF==0). Additionally, it complies RFC
 6864 to process the IPv4 ID field.
 
 Currently, the GRO library provides GRO supports for TCP/IPv4, UDP/IPv4,
-and TCP/IPv6 packets as well as VxLAN packets which contain an outer IPv4
-header and an inner TCP/IPv4, UDP/IPv4 or TCP/IPv6 packet or an outer IPv6
-header and an inner TCP/IPv4 or TCP/IPv6 packet.
+UDP/IPv6, and TCP/IPv6 packets as well as VxLAN packets which contain an
+outer IPv4 header and an inner TCP/IPv4, UDP/IPv4 or TCP/IPv6 packet or
+an outer IPv6 header and an inner TCP/IPv4 or TCP/IPv6 packet.
 
 Two Sets of API
 ---------------
doc/guides/rel_notes/release_21_02.rst +5 -0
index a5bc2f1..d8974b7 100644
@@ -75,6 +75,11 @@ New Features
    Added TCP/IPv6 GRO support for IPv6 VXLAN packets, this enabled TCP/IPv6
    GRO support for IPv6 VXLAN use case.
 
+* **Added UDP/IPv6 GRO support for non-VXLAN packets.**
+
+   Added UDP/IPv6 GRO support for non-VXLAN packets, this enabled UDP/IPv6
+   GRO support for IPv6 VLAN use case.
+
 Removed Items
 -------------
 
lib/librte_gro/gro_udp6.c new file +487 -0

487 lines not on this page · raw message

lib/librte_gro/gro_udp6.h new file +284 -0

284 lines not on this page · raw message

lib/librte_gro/meson.build +1 -1
index 3eff89c..7939081 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c', 'gro_vxlan6_tcp6.c')
+sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c', 'gro_vxlan6_tcp6.c', 'gro_udp6.c')
 headers = files('rte_gro.h')
 deps += ['ethdev']
lib/librte_gro/rte_gro.c +64 -8

178 lines not on this page · raw message

lib/librte_gro/rte_gro.h +3 -0
index cb0895f..94ed3d3 100644
@@ -50,6 +50,9 @@
 #define RTE_GRO_IPV6_VXLAN_TCP_IPV6_INDEX 7
 #define RTE_GRO_IPV6_VXLAN_TCP_IPV6 (1ULL << RTE_GRO_IPV6_VXLAN_TCP_IPV6_INDEX)
 /**< IPv6 VxLAN TCP/IPv6 GRO flag. */
+#define RTE_GRO_UDP_IPV6_INDEX 8
+#define RTE_GRO_UDP_IPV6 (1ULL << RTE_GRO_UDP_IPV6_INDEX)
+/**< UDP/IPv6 GRO flag */
 
 /**
  * Structure used to create GRO context objects or used to pass
Signature · 1 line
1.8.3.1
#6 lore raw

PATCH 6/8 gro: support IPv4 VXLAN UDP/IPv6

In reply to [email protected]

From: Yi Yang <[email protected]>

IPv4 VXLAN UDP/IPv6 GRO can help improve UDP/IPv6
performance in IPv4 VXLAN use case.

With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP/IPv6 performance, it will merge small adjacent IPv4 VXLAN UDP/IPv6 fragments to a big IPv4 VXLAN UDP/IPv6 packet immediate after they are received from a physical NIC. It is very helpful in OVS DPDK IPv4 VXLAN use case.

---
 .../prog_guide/generic_receive_offload_lib.rst     |   4 +-
 doc/guides/rel_notes/release_21_02.rst             |   5 +
 lib/librte_gro/gro_vxlan_udp6.c                    | 607 +++++++++++++++++++++
 lib/librte_gro/gro_vxlan_udp6.h                    | 152 ++++++
 lib/librte_gro/meson.build                         |   2 +-
 lib/librte_gro/rte_gro.c                           |  83 ++-
 lib/librte_gro/rte_gro.h                           |   3 +
 7 files changed, 845 insertions(+), 11 deletions(-)
 create mode 100644 lib/librte_gro/gro_vxlan_udp6.c
 create mode 100644 lib/librte_gro/gro_vxlan_udp6.h
doc/guides/prog_guide/generic_receive_offload_lib.rst +2 -2
index 0ea3076..906e85f 100644
@@ -32,8 +32,8 @@ fragmentation is possible (i.e., DF==0). Additionally, it complies RFC
 
 Currently, the GRO library provides GRO supports for TCP/IPv4, UDP/IPv4,
 UDP/IPv6, and TCP/IPv6 packets as well as VxLAN packets which contain an
-outer IPv4 header and an inner TCP/IPv4, UDP/IPv4 or TCP/IPv6 packet or
-an outer IPv6 header and an inner TCP/IPv4 or TCP/IPv6 packet.
+outer IPv4 header and an inner TCP/IPv4, UDP/IPv4, TCP/IPv6 or UDP/IPv6
+packet or an outer IPv6 header and an inner TCP/IPv4 or TCP/IPv6 packet.
 
 Two Sets of API
 ---------------
doc/guides/rel_notes/release_21_02.rst +5 -0
index d8974b7..4758cea 100644
@@ -80,6 +80,11 @@ New Features
    Added UDP/IPv6 GRO support for non-VXLAN packets, this enabled UDP/IPv6
    GRO support for IPv6 VLAN use case.
 
+* **Added UDP/IPv6 GRO support for IPv4 VXLAN packets.**
+
+   Added UDP/IPv6 GRO support for IPv4 VXLAN packets, this enabled UDP/IPv6
+   GRO support for IPv4 VXLAN use case.
+
 Removed Items
 -------------
 
lib/librte_gro/gro_vxlan_udp6.c new file +607 -0

607 lines not on this page · raw message

lib/librte_gro/gro_vxlan_udp6.h new file +152 -0

152 lines not on this page · raw message

lib/librte_gro/meson.build +1 -1
index 7939081..14b6b64 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c', 'gro_vxlan6_tcp6.c', 'gro_udp6.c')
+sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c', 'gro_vxlan6_tcp6.c', 'gro_udp6.c', 'gro_vxlan_udp6.c')
 headers = files('rte_gro.h')
 deps += ['ethdev']
lib/librte_gro/rte_gro.c +75 -8

189 lines not on this page · raw message

lib/librte_gro/rte_gro.h +3 -0
index 94ed3d3..1824ce3 100644
@@ -53,6 +53,9 @@
 #define RTE_GRO_UDP_IPV6_INDEX 8
 #define RTE_GRO_UDP_IPV6 (1ULL << RTE_GRO_UDP_IPV6_INDEX)
 /**< UDP/IPv6 GRO flag */
+#define RTE_GRO_IPV4_VXLAN_UDP_IPV6_INDEX 9
+#define RTE_GRO_IPV4_VXLAN_UDP_IPV6 (1ULL << RTE_GRO_IPV4_VXLAN_UDP_IPV6_INDEX)
+/**< IPv4 VxLAN UDP/IPv6 GRO flag. */
 
 /**
  * Structure used to create GRO context objects or used to pass
Signature · 1 line
1.8.3.1
#7 lore raw

PATCH 7/8 gro: support IPv6 VXLAN UDP/IPv4

In reply to [email protected]

From: Yi Yang <[email protected]>

IPv6 VXLAN UDP/IPv4 GRO can help improve UDP/IPv4
performance in IPv6 VXLAN use case.

With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP/IPv4 performance, it will merge small adjacent IPv6 VXLAN UDP/IPv4 fragments to a big IPv6 VXLAN UDP/IPv4 packet immediate after they are received from a physical NIC. It is very helpful in OVS DPDK VXLAN use case.

---
 .../prog_guide/generic_receive_offload_lib.rst     |   3 +-
 doc/guides/rel_notes/release_21_02.rst             |   5 +
 lib/librte_gro/gro_vxlan6_udp4.c                   | 559 +++++++++++++++++++++
 lib/librte_gro/gro_vxlan6_udp4.h                   | 148 ++++++
 lib/librte_gro/meson.build                         |   2 +-
 lib/librte_gro/rte_gro.c                           |  84 +++-
 lib/librte_gro/rte_gro.h                           |   3 +
 7 files changed, 794 insertions(+), 10 deletions(-)
 create mode 100644 lib/librte_gro/gro_vxlan6_udp4.c
 create mode 100644 lib/librte_gro/gro_vxlan6_udp4.h
doc/guides/prog_guide/generic_receive_offload_lib.rst +2 -1
index 906e85f..8f48809 100644
@@ -33,7 +33,8 @@ fragmentation is possible (i.e., DF==0). Additionally, it complies RFC
 Currently, the GRO library provides GRO supports for TCP/IPv4, UDP/IPv4,
 UDP/IPv6, and TCP/IPv6 packets as well as VxLAN packets which contain an
 outer IPv4 header and an inner TCP/IPv4, UDP/IPv4, TCP/IPv6 or UDP/IPv6
-packet or an outer IPv6 header and an inner TCP/IPv4 or TCP/IPv6 packet.
+packet or an outer IPv6 header and an inner TCP/IPv4, UDP/IPv4 or TCP/IPv6
+packet.
 
 Two Sets of API
 ---------------
doc/guides/rel_notes/release_21_02.rst +5 -0
index 4758cea..5e3d10b 100644
@@ -85,6 +85,11 @@ New Features
    Added UDP/IPv6 GRO support for IPv4 VXLAN packets, this enabled UDP/IPv6
    GRO support for IPv4 VXLAN use case.
 
+* **Added UDP/IPv4 GRO support for IPv6 VXLAN packets.**
+
+   Added UDP/IPv4 GRO support for IPv6 VXLAN packets, this enabled UDP/IPv4
+   GRO support for IPv6 VXLAN use case.
+
 Removed Items
 -------------
 
lib/librte_gro/gro_vxlan6_udp4.c new file +559 -0

559 lines not on this page · raw message

lib/librte_gro/gro_vxlan6_udp4.h new file +148 -0

148 lines not on this page · raw message

lib/librte_gro/meson.build +1 -1
index 14b6b64..e23197d 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c', 'gro_vxlan6_tcp6.c', 'gro_udp6.c', 'gro_vxlan_udp6.c')
+sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c', 'gro_vxlan6_tcp6.c', 'gro_udp6.c', 'gro_vxlan_udp6.c', 'gro_vxlan6_udp4.c')
 headers = files('rte_gro.h')
 deps += ['ethdev']
lib/librte_gro/rte_gro.c +76 -8

190 lines not on this page · raw message

lib/librte_gro/rte_gro.h +3 -0
index 1824ce3..ddcded6 100644
@@ -56,6 +56,9 @@
 #define RTE_GRO_IPV4_VXLAN_UDP_IPV6_INDEX 9
 #define RTE_GRO_IPV4_VXLAN_UDP_IPV6 (1ULL << RTE_GRO_IPV4_VXLAN_UDP_IPV6_INDEX)
 /**< IPv4 VxLAN UDP/IPv6 GRO flag. */
+#define RTE_GRO_IPV6_VXLAN_UDP_IPV4_INDEX 10
+#define RTE_GRO_IPV6_VXLAN_UDP_IPV4 (1ULL << RTE_GRO_IPV6_VXLAN_UDP_IPV4_INDEX)
+/**< IPv6 VxLAN UDP/IPv4 GRO flag. */
 
 /**
  * Structure used to create GRO context objects or used to pass
Signature · 1 line
1.8.3.1
#8 lore raw

PATCH 8/8 gro: support IPv6 VXLAN UDP/IPv6

In reply to [email protected]

From: Yi Yang <[email protected]>

IPv6 VXLAN UDP/IPv6 GRO can help improve UDP/IPv6
performance in IPv6 VXLAN use case.

With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP/IPv6 performance, it will merge small adjacent IPv6 VXLAN UDP/IPv6 fragments to a big IPv6 VXLAN UDP/IPv6 packet immediate after they are received from a physical NIC. It is very helpful in OVS DPDK IPv6 VXLAN use case.

---
 .../prog_guide/generic_receive_offload_lib.rst     |   4 +-
 doc/guides/rel_notes/release_21_02.rst             |   5 +
 lib/librte_gro/gro_vxlan6_udp6.c                   | 589 +++++++++++++++++++++
 lib/librte_gro/gro_vxlan6_udp6.h                   | 148 ++++++
 lib/librte_gro/meson.build                         |   2 +-
 lib/librte_gro/rte_gro.c                           |  84 ++-
 lib/librte_gro/rte_gro.h                           |   3 +
 7 files changed, 824 insertions(+), 11 deletions(-)
 create mode 100644 lib/librte_gro/gro_vxlan6_udp6.c
 create mode 100644 lib/librte_gro/gro_vxlan6_udp6.h
doc/guides/prog_guide/generic_receive_offload_lib.rst +2 -2
index 8f48809..971323d 100644
@@ -33,8 +33,8 @@ fragmentation is possible (i.e., DF==0). Additionally, it complies RFC
 Currently, the GRO library provides GRO supports for TCP/IPv4, UDP/IPv4,
 UDP/IPv6, and TCP/IPv6 packets as well as VxLAN packets which contain an
 outer IPv4 header and an inner TCP/IPv4, UDP/IPv4, TCP/IPv6 or UDP/IPv6
-packet or an outer IPv6 header and an inner TCP/IPv4, UDP/IPv4 or TCP/IPv6
-packet.
+packet or an outer IPv6 header and an inner TCP/IPv4, UDP/IPv4, TCP/IPv6
+or UDP/IPv6 packet.
 
 Two Sets of API
 ---------------
doc/guides/rel_notes/release_21_02.rst +5 -0
index 5e3d10b..991aa51 100644
@@ -90,6 +90,11 @@ New Features
    Added UDP/IPv4 GRO support for IPv6 VXLAN packets, this enabled UDP/IPv4
    GRO support for IPv6 VXLAN use case.
 
+* **Added UDP/IPv6 GRO support for IPv6 VXLAN packets.**
+
+   Added UDP/IPv6 GRO support for IPv6 VXLAN packets, this enabled UDP/IPv6
+   GRO support for IPv6 VXLAN use case.
+
 Removed Items
 -------------
 
lib/librte_gro/gro_vxlan6_udp6.c new file +589 -0

589 lines not on this page · raw message

lib/librte_gro/gro_vxlan6_udp6.h new file +148 -0

148 lines not on this page · raw message

lib/librte_gro/meson.build +1 -1
index e23197d..56d015a 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright(c) 2017 Intel Corporation
 
-sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c', 'gro_vxlan6_tcp6.c', 'gro_udp6.c', 'gro_vxlan_udp6.c', 'gro_vxlan6_udp4.c')
+sources = files('rte_gro.c', 'gro_tcp4.c', 'gro_udp4.c', 'gro_vxlan_tcp4.c', 'gro_vxlan_udp4.c', 'gro_tcp6.c', 'gro_vxlan_tcp6.c', 'gro_vxlan6_tcp4.c', 'gro_vxlan6_tcp6.c', 'gro_udp6.c', 'gro_vxlan_udp6.c', 'gro_vxlan6_udp4.c', 'gro_vxlan6_udp6.c')
 headers = files('rte_gro.h')
 deps += ['ethdev']
lib/librte_gro/rte_gro.c +76 -8

192 lines not on this page · raw message

lib/librte_gro/rte_gro.h +3 -0
index ddcded6..fefa2e9 100644
@@ -59,6 +59,9 @@
 #define RTE_GRO_IPV6_VXLAN_UDP_IPV4_INDEX 10
 #define RTE_GRO_IPV6_VXLAN_UDP_IPV4 (1ULL << RTE_GRO_IPV6_VXLAN_UDP_IPV4_INDEX)
 /**< IPv6 VxLAN UDP/IPv4 GRO flag. */
+#define RTE_GRO_IPV6_VXLAN_UDP_IPV6_INDEX 11
+#define RTE_GRO_IPV6_VXLAN_UDP_IPV6 (1ULL << RTE_GRO_IPV6_VXLAN_UDP_IPV6_INDEX)
+/**< IPv6 VxLAN UDP/IPv6 GRO flag. */
 
 /**
  * Structure used to create GRO context objects or used to pass
Signature · 1 line
1.8.3.1
#9 lore raw
In reply to [email protected]

21/12/2020 04:50, [email protected]:

Quoted 9 lines

Yi Yang (8):
gro: support TCP/IPv6
gro: support IPv4 VXLAN TCP/IPv6
gro: support IPv6 VXLAN TCP/IPv4
gro: support IPv6 VXLAN TCP/IPv6
gro: support UDP/IPv6
gro: support IPv4 VXLAN UDP/IPv6
gro: support IPv6 VXLAN UDP/IPv4
gro: support IPv6 VXLAN UDP/IPv6

There was no review/activity on this thread.
Is it abandoned?

#10 lore raw

24/03/2021 22:22, Thomas Monjalon:

Quoted 11 lines

21/12/2020 04:50, [email protected]:

Quoted 9 lines

Yi Yang (8):
gro: support TCP/IPv6
gro: support IPv4 VXLAN TCP/IPv6
gro: support IPv6 VXLAN TCP/IPv4
gro: support IPv6 VXLAN TCP/IPv6
gro: support UDP/IPv6
gro: support IPv4 VXLAN UDP/IPv6
gro: support IPv6 VXLAN UDP/IPv4
gro: support IPv6 VXLAN UDP/IPv6

Quoted 2 lines

There was no review/activity on this thread.
Is it abandoned?

No reply. Should I assume it can be dropped?

#11 lore raw
Quoted 23 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Saturday, July 24, 2021 4:49 PM
To: [email protected]; Hu, Jiayu <[email protected]>
Cc: [email protected]; Ananyev, Konstantin <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH v1 0/8] gro: support TCP/IPv6 and UDP/IPv6 for VLAN and VXLAN

24/03/2021 22:22, Thomas Monjalon:

Quoted 11 lines

21/12/2020 04:50, [email protected]:

Quoted 9 lines

Yi Yang (8):
gro: support TCP/IPv6
gro: support IPv4 VXLAN TCP/IPv6
gro: support IPv6 VXLAN TCP/IPv4
gro: support IPv6 VXLAN TCP/IPv6
gro: support UDP/IPv6
gro: support IPv4 VXLAN UDP/IPv6
gro: support IPv6 VXLAN UDP/IPv4
gro: support IPv6 VXLAN UDP/IPv6

Quoted 4 lines
Quoted 2 lines

There was no review/activity on this thread.
Is it abandoned?

No reply. Should I assume it can be dropped?

No further updates from Yi on this patch set. So I guess "yes"?

Thanks,
Jiayu

Quoted 1 line
#12 lore raw
Quoted 21 lines · Jiayu
Quoted 21 lines

-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Saturday, July 24, 2021 4:49 PM
To: [email protected]; Hu, Jiayu <[email protected]>
Cc: [email protected]; Ananyev, Konstantin <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH v1 0/8] gro: support TCP/IPv6 and UDP/IPv6 for VLAN and VXLAN

24/03/2021 22:22, Thomas Monjalon:

Quoted 11 lines

21/12/2020 04:50, [email protected]:

Quoted 9 lines

Yi Yang (8):
gro: support TCP/IPv6
gro: support IPv4 VXLAN TCP/IPv6
gro: support IPv6 VXLAN TCP/IPv4
gro: support IPv6 VXLAN TCP/IPv6
gro: support UDP/IPv6
gro: support IPv4 VXLAN UDP/IPv6
gro: support IPv6 VXLAN UDP/IPv4
gro: support IPv6 VXLAN UDP/IPv6

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

There was no review/activity on this thread.
Is it abandoned?

No reply. Should I assume it can be dropped?

No further updates from Yi on this patch set. So I guess "yes"?

Ok, patch marked rejected.
If there is a use case, then a new maintainer can find it in archive and work on it.

What was missing was a clear use case, documentation and testing.