Re: [dpdk-dev] [PATCH v4] gso: add VXLAN UDP/IPv4 support

2021-01-17 Thread yang_y_yi
At 2021-01-15 18:24:47, "Thomas Monjalon" wrote: >15/01/2021 04:51, yang_y_yi: >> >> At 2020-11-19 14:49:23, "Hu, Jiayu" wrote: >> >Acked-by: Jiayu Hu >> >> Hi, Thomas >> >> This patch has been acked very long, but

Re: [dpdk-dev] [PATCH v4] gso: add VXLAN UDP/IPv4 support

2021-01-14 Thread yang_y_yi
At 2020-11-19 14:49:23, "Hu, Jiayu" wrote: >Acked-by: Jiayu Hu Hi, Thomas This patch has been acked very long, but it isn't merged into master, what's wrong? > >> -Original Message- >> From: yang_y...@163.com >> Sent: Thursday, November 19, 2020 2:44 PM >> To: dev@dpdk.org >> Cc: H

[dpdk-dev] [PATCH v1 8/8] gro: support IPv6 VXLAN UDP/IPv6

2020-12-20 Thread yang_y_yi
From: Yi Yang 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 immedia

[dpdk-dev] [PATCH v1 7/8] gro: support IPv6 VXLAN UDP/IPv4

2020-12-20 Thread yang_y_yi
From: Yi Yang 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 immedia

[dpdk-dev] [PATCH v1 4/8] gro: support IPv6 VXLAN TCP/IPv6

2020-12-20 Thread yang_y_yi
From: Yi Yang 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

[dpdk-dev] [PATCH v1 6/8] gro: support IPv4 VXLAN UDP/IPv6

2020-12-20 Thread yang_y_yi
From: Yi Yang 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 immedia

[dpdk-dev] [PATCH v1 5/8] gro: support UDP/IPv6

2020-12-20 Thread yang_y_yi
From: Yi Yang 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 ve

[dpdk-dev] [PATCH v1 2/8] gro: support IPv4 VXLAN TCP/IPv6

2020-12-20 Thread yang_y_yi
From: Yi Yang 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

[dpdk-dev] [PATCH v1 1/8] gro: support TCP/IPv6

2020-12-20 Thread yang_y_yi
From: Yi Yang 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 ve

[dpdk-dev] [PATCH v1 3/8] gro: support IPv6 VXLAN TCP/IPv4

2020-12-20 Thread yang_y_yi
From: Yi Yang 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

[dpdk-dev] [PATCH v1 0/8] gro: support TCP/IPv6 and UDP/IPv6 for VLAN and VXLAN

2020-12-20 Thread yang_y_yi
From: Yi Yang 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

[dpdk-dev] [PATCH v4] gso: add VXLAN UDP/IPv4 support

2020-11-18 Thread yang_y_yi
From: Yi Yang As most NICs do not support segmentation for VXLAN-encapsulated UDP/IPv4 packets, this patch adds VXLAN UDP/IPv4 GSO support. OVS DPDK can significantly improve VXLAN UDP/IPv4 performance by VXLAN UDP/IPv4 GSO. Signed-off-by: Yi Yang --- Changelog: v3 -> v4: - Use more precise

[dpdk-dev] [PATCH v3] gso: add VXLAN UDP GSO support

2020-11-15 Thread yang_y_yi
From: Yi Yang Many NICs can't offload VXLAN UFO, so it is very important to do VXLAN UDP GSO by software to improve VM-to-VM UDP performance, especially for the case that VM MTU is just 1500 but not 9000. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, pe

Re: [dpdk-dev] [PATCH v2] gso: add VXLAN UDP GSO support

2020-11-15 Thread yang_y_yi
At 2020-11-13 21:16:38, "Ananyev, Konstantin" wrote: >... >> diff --git a/lib/librte_gso/rte_gso.c b/lib/librte_gso/rte_gso.c >> index 896350e..fb76a21 100644 >> --- a/lib/librte_gso/rte_gso.c >> +++ b/lib/librte_gso/rte_gso.c >> @@ -11,6 +11,7 @@ >> #include "gso_common.h" >> #include "gso_tcp

[dpdk-dev] [PATCH v2] gso: add VXLAN UDP GSO support

2020-11-09 Thread yang_y_yi
From: Yi Yang Many NICs can't offload VXLAN UFO, so it is very important to do VXLAN UDP GSO by software to improve VM-to-VM UDP performance, especially for the case that VM MTU is just 1500 but not 9000. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, pe

Re: [dpdk-dev] [PATCH v1] gso: add VXLAN UDP GSO support

2020-11-08 Thread yang_y_yi
At 2020-11-06 12:09:16, "Jiayu Hu" wrote: >On Thu, Oct 29, 2020 at 02:47:43PM +0800, yang_y...@163.com wrote: >> From: Yi Yang >> >> Many NICs can't offload VXLAN UFO, so it is very important >> to do VXLAN UDP GSO by software to improve VM-to-VM UDP >> performance, especially for the case that

[dpdk-dev] [PATCH v2] gro: fix an error when packet is IPv6

2020-11-04 Thread yang_y_yi
From: Yi Yang For VxLAN packets, GRO will mistakenly reassemble them if inner L3 is IPv6, inner L4 is TCP or UDP, and outer L3 is IPv4 because the value of IS_IPV4_VXLAN_TCP4/UDP4_PKT is true for them. This fix makes sure IS_IPV4_TCP_PKT, IS_IPV4_UDP_PKT, IS_IPV4_VXLAN_TCP4_PKT and IS_IPV4_VXLA

Re: [dpdk-dev] [PATCH] gro: fix an error when packet is IPv6

2020-11-04 Thread yang_y_yi
At 2020-11-05 09:41:13, "Hu, Jiayu" wrote: >Hi Yi, > >> -Original Message- >> From: yang_y...@163.com >> Sent: Wednesday, November 4, 2020 12:23 PM >> To: dev@dpdk.org >> Cc: Hu, Jiayu ; Ananyev, Konstantin >> ; tho...@monjalon.net; >> yangy...@inspur.com; yang_y...@163.com >> Subject: [P

[dpdk-dev] [PATCH] gro: fix an error when packet is IPv6

2020-11-03 Thread yang_y_yi
From: Yi Yang Current code will think IPv6 packet as IPv4 packet if inner header is IPv6 and outer header is IPv4, the result is rte_gro_reassemble() will handle it as if inner header also is IPv4, so IPv6 can't be handled correctly as one of unprocess_pkts. Fixes: e2d811063673 ("gro: support VX

Re: [dpdk-dev] [PATCH v3] gso: fix free issue of mbuf gso segments attach to

2020-11-03 Thread yang_y_yi
At 2020-11-04 05:34:52, "Thomas Monjalon" wrote: >29/10/2020 22:39, Thomas Monjalon: >> I don't have a clear opinion on this patch. >> Techboard members, ping for feedbacks. >> If no objection, I will merge it soon, but I would prefer having more acks. >> >> >> 27/10/2020 20:55, Ananyev, Konstan

[dpdk-dev] [PATCH v1] gso: add VXLAN UDP GSO support

2020-10-28 Thread yang_y_yi
From: Yi Yang Many NICs can't offload VXLAN UFO, so it is very important to do VXLAN UDP GSO by software to improve VM-to-VM UDP performance, especially for the case that VM MTU is just 1500 but not 9000. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, pe

[dpdk-dev] [PATCH v3] gso: fix free issue of mbuf gso segments attach to

2020-10-25 Thread yang_y_yi
From: Yi Yang rte_gso_segment decreased refcnt of pkt by one, but it is wrong if pkt is external mbuf, pkt won't be freed because of incorrect refcnt, the result is application can't allocate mbuf from mempool because mbufs in mempool are run out of. One correct way is application should call rt

Re: [dpdk-dev] [PATCH v2] gso: fix free issue of mbuf gso segments attach to

2020-10-25 Thread yang_y_yi
At 2020-10-26 10:06:09, "Jiayu Hu" wrote: >On Mon, Oct 26, 2020 at 08:57:30AM +0800, yang_y_yi wrote: >> At 2020-10-23 22:46:42, "Ananyev, Konstantin" >> wrote: >> >> >> From: yang_y_yi >> >> Sent: Friday, October 23, 2020

Re: [dpdk-dev] [PATCH v2] gso: fix free issue of mbuf gso segments attach to

2020-10-25 Thread yang_y_yi
At 2020-10-23 22:46:42, "Ananyev, Konstantin" wrote: >> From: yang_y_yi >> Sent: Friday, October 23, 2020 2:18 PM >> To: Ananyev, Konstantin >> Cc: dev@dpdk.org; Hu, Jiayu ; techbo...@dpdk.org; >> tho...@monjalon.net; yangy...@inspur.com >> Sub

Re: [dpdk-dev] [PATCH v2] gso: fix free issue of mbuf gso segments attach to

2020-10-23 Thread yang_y_yi
At 2020-10-23 08:57:15, "Hu, Jiayu" wrote: > > >> -Original Message- >> From: Ananyev, Konstantin >> Sent: Thursday, October 22, 2020 11:34 PM >> To: yang_y...@163.com; dev@dpdk.org >> Cc: Hu, Jiayu ; techbo...@dpdk.org; >> tho...@monjalon.net; yangy...@inspur.com >> Subject: RE: [PATCH v

Re: [dpdk-dev] [PATCH v2] gso: fix free issue of mbuf gso segments attach to

2020-10-23 Thread yang_y_yi
At 2020-10-22 23:33:42, "Ananyev, Konstantin" wrote: > >> > >> > rte_gso_segment decreased refcnt of pkt by one, but >> > it is wrong if pkt is external mbuf, pkt won't be >> > freed because of incorrect refcnt, the result is >> > application can't allocate mbuf from mempool because >> > mbufs in

Re: [dpdk-dev] [PATCH v2] gso: fix free issue of mbuf gso segments attach to

2020-10-23 Thread yang_y_yi
Konstantin, thank you so much for comments, my replies inline, please check them. At 2020-10-22 21:16:43, "Ananyev, Konstantin" wrote: > >> >> rte_gso_segment decreased refcnt of pkt by one, but >> it is wrong if pkt is external mbuf, pkt won't be >> freed because of incorrect refcnt, the resul

[dpdk-dev] [PATCH v2] gso: fix free issue of mbuf gso segments attach to

2020-10-21 Thread yang_y_yi
From: Yi Yang rte_gso_segment decreased refcnt of pkt by one, but it is wrong if pkt is external mbuf, pkt won't be freed because of incorrect refcnt, the result is application can't allocate mbuf from mempool because mbufs in mempool are run out of. One correct way is application should call rt

Re: [dpdk-dev] [PATCH] gso: fix free issue of mbuf gso segments attach to

2020-10-19 Thread yang_y_yi
; attach to > > > > From: yang_y_yi > Sent: Monday, October 19, 2020 7:45 AM > To: Hu, Jiayu > Cc: Ananyev, Konstantin ; dev@dpdk.org; > olivier.m...@6wind.com; tho...@monjalon.net; > yangy...@inspur.com > Subject: Re:RE: Re:RE: [PATCH] gso: fix free issue of m

Re: [dpdk-dev] [PATCH] gso: fix free issue of mbuf gso segments attach to

2020-10-18 Thread yang_y_yi
At 2020-10-19 11:17:48, "Hu, Jiayu" wrote: > > >> -Original Message- >> From: Ananyev, Konstantin >> Sent: Friday, October 16, 2020 4:31 PM >> To: Hu, Jiayu ; yang_y_yi >> Cc: dev@dpdk.org; olivier.m...@6wind.com; tho...@monjalon.net; >&g

Re: [dpdk-dev] [PATCH] gso: fix free issue of mbuf gso segments attach to

2020-10-18 Thread yang_y_yi
At 2020-10-16 08:53:00, "Hu, Jiayu" wrote: > > >> -Original Message- >> From: Ananyev, Konstantin >> Sent: Friday, October 16, 2020 12:16 AM >> To: Hu, Jiayu ; yang_y_yi >> Cc: dev@dpdk.org; olivier.m...@6wind.com; tho...@monjalon.net

Re: [dpdk-dev] [PATCH] gso: fix free issue of mbuf gso segments attach to

2020-10-18 Thread yang_y_yi
At 2020-10-16 00:16:03, "Ananyev, Konstantin" wrote: > > >> >> > -Original Message- >> > From: Ananyev, Konstantin >> > Sent: Wednesday, October 14, 2020 8:06 PM >> > To: yang_y_yi ; Hu, Jiayu >> > Cc: dev@dpdk.org; ol

Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-10-14 Thread yang_y_yi
Got it, thanks a lot. At 2020-10-14 21:55:25, "Olivier Matz" wrote: >Hi, > >On Sat, Oct 10, 2020 at 09:49:35AM +0800, yang_y_yi wrote: >> Olivier, thank you so much for helping figure out this, it does work >> as the code you changed, so we

Re: [dpdk-dev] [PATCH] gso: fix free issue of mbuf gso segments attach to

2020-10-13 Thread yang_y_yi
I think it isn't a good idea to free it in rte_gso_segment, maybe application will continue to use this pkt for other purpose, rte_gso_segment can't make decision for application without any notice, it is better to return this decision right backt to application. At 2020-10-

[dpdk-dev] [PATCH] gso: fix free issue of mbuf gso segments attach to

2020-10-09 Thread yang_y_yi
From: Yi Yang rte_gso_segment decreased refcnt of pkt by one, but it is wrong if pkt is external mbuf, pkt won't be freed because of incorrect refcnt, the result is application can't allocate mbuf from mempool because mbufs in mempool are run out of. One correct way is application should call rt

Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-10-09 Thread yang_y_yi
Matz" wrote: >Hi, > >On Fri, Oct 09, 2020 at 05:51:23PM +0800, yang_y_yi wrote: >> Olivier, thank you so much for your reply, your patch post for vhost help me >> understand your concern better, I totally agree. For GSO case, let me show >>

Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-10-09 Thread yang_y_yi
:21, "Olivier Matz" wrote: >Hi, > >On Sun, Sep 27, 2020 at 01:55:21PM +0800, yang_y_yi wrote: >> Per GSO requirement, this is a must-have change, Jiayu, can you help review >> this series? > >I can't ack this patch until I have a simple and clear test case (

Re: [dpdk-dev] [PATCH] vhost: fix external mbuf creation

2020-10-09 Thread yang_y_yi
Thanks Oliver for posting this patch, it clearly explain his concern, I totally agree this change. I tested it by OVS DPDK, it works well. At 2020-10-07 20:53:18, "Olivier Matz" wrote: >In virtio_dev_extbuf_alloc(), the shinfo structure used to store >the reference counter and the free callback

Re: [dpdk-dev] [PATCH] vhost: fix external mbuf creation

2020-10-09 Thread yang_y_yi
Tested-by: Yi Yang At 2020-10-07 20:53:18, "Olivier Matz" wrote: >In virtio_dev_extbuf_alloc(), the shinfo structure used to store >the reference counter and the free callback of the external buffer >is by default stored inside the mbuf data. > >This is wrong because the mbuf

Re: [dpdk-dev] [PATCH] doc: update rel_notes for GRO

2020-10-09 Thread yang_y_yi
Thanks for reminder, marked as Superseded. At 2020-10-09 16:14:15, "David Marchand" wrote: >On Fri, Oct 9, 2020 at 10:13 AM yang_y_yi wrote: >> >> Please ignore this one, it indeed has been there. > >Please mark it accordingly in patchwork. >Thank you. > > >-- >David Marchand

Re: [dpdk-dev] [PATCH] doc: update rel_notes for GRO

2020-10-09 Thread yang_y_yi
Please ignore this one, it indeed has been there. At 2020-10-09 15:40:59, yang_y...@163.com wrote: >From: Yi Yang > >Release 20.11 added UDP/IPv4 and VXLAN UDP/IPv4 support >for GRO, so update rel_notes to reflect these changes. > >Signed-off-by: Yi Yang >Acked-by: Jiayu Hu >--- > doc/guides/re

Re: [dpdk-dev] [PATCH v7 3/3] doc: update prog_guide and rel_notes for GRO

2020-10-09 Thread yang_y_yi
rep "\.rst" 0002-gro-add-VXLAN-UDP-IPv4-GRO-support.patch At 2020-10-09 15:47:49, "yang_y_yi" wrote: >Thomas, sorry for confusion, previous two merges did include changes against >doc/guides/prog_guide/generic_receive_offload_lib.rst, but >doc/guides/rel_notes/release

Re: [dpdk-dev] [PATCH v7 3/3] doc: update prog_guide and rel_notes for GRO

2020-10-09 Thread yang_y_yi
https://patches.dpdk.org/patch/80105/, thanks a lot. At 2020-10-09 14:48:19, "Thomas Monjalon" wrote: >09/10/2020 08:34, yang_y_yi: >> Thomas, only this one of this series hasn't yet been merged, maybe you >> missed it, also please help merge it, thanks a lot. > >No I did no

[dpdk-dev] [PATCH] doc: update rel_notes for GRO

2020-10-09 Thread yang_y_yi
From: Yi Yang Release 20.11 added UDP/IPv4 and VXLAN UDP/IPv4 support for GRO, so update rel_notes to reflect these changes. Signed-off-by: Yi Yang Acked-by: Jiayu Hu --- doc/guides/rel_notes/release_20_11.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/rele

Re: [dpdk-dev] [PATCH v7 3/3] doc: update prog_guide and rel_notes for GRO

2020-10-08 Thread yang_y_yi
Thomas, only this one of this series hasn't yet been merged, maybe you missed it, also please help merge it, thanks a lot. At 2020-09-27 12:56:54, "Hu, Jiayu" wrote: >Acked-by: Jiayu Hu > >> -Original Message- >> From: yang_y...@163.com >> Sent: Thursday, September 24, 2020 4:58 PM >

Re: [dpdk-dev] [PATCH] gso: add VXLAN UDP GSO support

2020-09-26 Thread yang_y_yi
Jiayu, also please help review this GSO patch, thanks a lot. At 2020-07-01 14:46:43, yang_y...@163.com wrote: >From: Yi Yang > >Many NICs can't offload VXLAN UFO, so it is very important >to do VXLAN UDP GSO by software to improve VM-to-VM UDP >performance, especially for the ca

Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-09-26 Thread yang_y_yi
31:19, "yang_y_yi" wrote: At 2020-08-03 20:34:25, "Olivier Matz" wrote: >On Mon, Aug 03, 2020 at 05:42:13PM +0800, yang_y_yi wrote: >> At 2020-08-03 16:11:39, "Olivier Matz" wrote: >> >On Mon, Aug 03, 2020 at 09:26:40AM +0800, yang_y_yi wrote: >>

Re: [dpdk-dev] [PATCH v7 2/3] gro: add VXLAN UDP/IPv4 GRO support

2020-09-26 Thread yang_y_yi
Ok, thanks Jiayu, but I don't know before which "}" whitespace should be inserted, can you paste your check report here? BTW, I used chekpatch.pl in Linux 5.5.9, it doesn't report this,I also tried checkpatch.pl in Linus kernel git tree, the same result, so out of curiosity, can you send me yo

[dpdk-dev] [PATCH v7 0/3] gro: add UDP/IPv4 GRO and VXLAN UDP/IPv4 GRO support

2020-09-24 Thread yang_y_yi
From: Yi Yang In case that UFO or GSO is enabled, GRO is very necessary, especially for UDP, it is more so. Many NICs can't support VXLAN UDP UFO/USO and VLAN UFO/USO, so UDP performance improvement depends on GSO and GRO to a great extent. This patch series added VLAN UDP/IPv4 GRO and VXLAN UDP

[dpdk-dev] [PATCH v7 1/3] gro: add UDP/IPv4 GRO support

2020-09-24 Thread yang_y_yi
From: Yi Yang UDP/IPv4 GRO can help improve VM-to-VM UDP performance when UFO or GSO is enabled in VM, GRO must be supported if UFO or GSO is enabled, otherwise, performance can't get big improvement if only GSO is there. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UD

[dpdk-dev] [PATCH v7 2/3] gro: add VXLAN UDP/IPv4 GRO support

2020-09-24 Thread yang_y_yi
From: Yi Yang VXLAN UDP/IPv4 GRO can help improve VM-to-VM UDP performance when UFO or GSO is enabled in VM, GRO must be supported if UFO or GSO is enabled, otherwise, performance can't get big improvement if only GSO is there. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to

[dpdk-dev] [PATCH v7 3/3] doc: update prog_guide and rel_notes for GRO

2020-09-24 Thread yang_y_yi
From: Yi Yang Release 20.11 added UDP/IPv4 and VXLAN UDP/IPv4 support for GRO, so update prog_guide and rel_notes to reflect these changes. Signed-off-by: Yi Yang --- doc/guides/prog_guide/generic_receive_offload_lib.rst | 6 +++--- doc/guides/rel_notes/release_20_11.rst| 6 +++

Re: [dpdk-dev] [PATCH v6 2/3] gro: add VXLAN UDP/IPv4 GRO support

2020-09-23 Thread yang_y_yi
9-23 10:43:03, "Jiayu Hu" wrote: >On Wed, Sep 23, 2020 at 10:28:00AM +0800, yang_y_yi wrote: >> Thanks Jiayu, do you mean not comparing timestamp and flush all the packets >> in >> a flow as I showed code, right? If so, we shouldn't provide argument >&g

Re: [dpdk-dev] [PATCH v6 2/3] gro: add VXLAN UDP/IPv4 GRO support

2020-09-22 Thread yang_y_yi
esult may be you can't reassemble out any original UDP packet because every UDP fragments will be flushed very soon, no chance to reassemble. At 2020-09-23 10:15:12, "Jiayu Hu" wrote: >On Tue, Sep 22, 2020 at 03:38:29PM +0800, yang_y_yi wrote: >> The problem is timestamp o

Re: [dpdk-dev] [PATCH v6 2/3] gro: add VXLAN UDP/IPv4 GRO support

2020-09-22 Thread yang_y_yi
46, "Jiayu Hu" wrote: >On Tue, Sep 22, 2020 at 02:23:39PM +0800, yang_y_yi wrote: >> Not a question, in next flush, they will be flushed, we have to check >> timestamp >> in the first time unless we don't strictly follow this time limitation. > >who wil

Re: [dpdk-dev] [PATCH v6 2/3] gro: add VXLAN UDP/IPv4 GRO support

2020-09-21 Thread yang_y_yi
ts will not be checked. This is what I want to say. From: yang_y_yi Sent: Tuesday, September 22, 2020 9:44 AM To: Hu, Jiayu Cc: dev@dpdk.org; tho...@monjalon.net; yangy...@inspur.com Subject: Re:Re: [dpdk-dev] [PATCH v6 2/3] gro: add VXLAN UDP/IPv4 GRO support Importance: High BTW, start_

Re: [dpdk-dev] [PATCH v6 2/3] gro: add VXLAN UDP/IPv4 GRO support

2020-09-21 Thread yang_y_yi
're saying), they can be merged, so it isn't the case you're saying. At 2020-09-22 11:01:26, "Jiayu Hu" wrote: >On Tue, Sep 22, 2020 at 09:29:38AM +0800, yang_y_yi wrote: >> Thanks Jiayu, I have fixed other comments except this one: >> >> >>

Re: [dpdk-dev] [PATCH v6 2/3] gro: add VXLAN UDP/IPv4 GRO support

2020-09-21 Thread yang_y_yi
. At 2020-09-22 09:29:38, "yang_y_yi" wrote: >Thanks Jiayu, I have fixed other comments except this one: > > > >>The items of a flow are ordered by frag_oft, and start_time >>of these items is not always in ascending order. Therefore, >>you cannot

Re: [dpdk-dev] [PATCH v6 2/3] gro: add VXLAN UDP/IPv4 GRO support

2020-09-21 Thread yang_y_yi
Thanks Jiayu, I have fixed other comments except this one: >The items of a flow are ordered by frag_oft, and start_time >of these items is not always in ascending order. Therefore, >you cannot skip checking the items after the item whose >start_time is greater than flush_timestamp. This issue al

[dpdk-dev] [PATCH v6 2/3] gro: add VXLAN UDP/IPv4 GRO support

2020-09-16 Thread yang_y_yi
From: Yi Yang VXLAN UDP/IPv4 GRO can help improve VM-to-VM UDP performance when UFO or GSO is enabled in VM, GRO must be supported if UFO or GSO is enabled, otherwise, performance can't get big improvement if only GSO is there. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to

[dpdk-dev] [PATCH v6 3/3] doc: update prog_guide and rel_notes for GRO

2020-09-16 Thread yang_y_yi
From: Yi Yang Release 20.11 added UDP/IPv4 and VXLAN UDP/IPv4 support for GRO, so update prog_guide and rel_notes to reflect these changes. Signed-off-by: Yi Yang --- doc/guides/prog_guide/generic_receive_offload_lib.rst | 6 +++--- doc/guides/rel_notes/release_20_11.rst| 6 +++

[dpdk-dev] [PATCH v6 1/3] gro: add UDP/IPv4 GRO support

2020-09-16 Thread yang_y_yi
From: Yi Yang UDP/IPv4 GRO can help improve VM-to-VM UDP performance when UFO or GSO is enabled in VM, GRO must be supported if UFO or GSO is enabled, otherwise, performance can't get big improvement if only GSO is there. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UD

[dpdk-dev] [PATCH v6 0/3] gro: add UDP/IPv4 GRO and VXLAN UDP/IPv4 GRO support

2020-09-16 Thread yang_y_yi
From: Yi Yang In case that UFO or GSO is enabled, GRO is very necessary, especially for UDP, it is more so. Many NICs can't support VXLAN UDP UFO/USO and VLAN UFO/USO, so UDP performance improvement depends on GSO and GRO to a great extent. This patch series added VLAN UDP/IPv4 GRO and VXLAN UDP

Re: [dpdk-dev] [PATCH v5 2/2] gro: add VXLAN UDP GRO support

2020-09-16 Thread yang_y_yi
ause it is meaningless for reassembly in the ovs case you mentioned, rather than it’s out-of-order. You can give the ovs example in the commit log, and it’s easier to understand the code IMO. Thanks, Jiayu From: yang_y_yi Sent: Wednesday, September 16, 2020 11:06 AM To: Hu, Jiayu Cc: yangy...@

[dpdk-dev] [PATCH v2] gso: fix pyld_unit_size issue for udp gso

2020-09-16 Thread yang_y_yi
From: Yi Yang Fragment offset of IPv4 header is measured in units of 8 bytes. Fragment offset of UDP fragments will be wrong after GSO if pyld_unit_size isn't multiple of 8. Say pyld_unit_size is 1500, fragment offset of the second UDP fragment will be 187 (i.e. 1500 / 8), which means 1496, and i

Re: [dpdk-dev] [PATCH v5 2/2] gro: add VXLAN UDP GRO support

2020-09-15 Thread yang_y_yi
No, next_proto_id of inner IP header can clearly identify it is a UDP packet even if it is a no-udp-header ip fragment. At 2020-09-16 10:54:24, "Jiayu Hu" wrote: >On Mon, Sep 14, 2020 at 05:14:59PM +0800, yang_y_yi wrote: >> >> Jiayu, VM to VM cas

Re: [dpdk-dev] [PATCH v5 2/2] gro: add VXLAN UDP GRO support

2020-09-14 Thread yang_y_yi
r IP ID when DF is 0. Can you give more explanation? From: yang_y_yi Sent: Monday, September 14, 2020 4:27 PM To: Hu, Jiayu Cc: tho...@monjalon.net; yangy...@inspur.com; dev@dpdk.org Subject: Re:Re: Re: [PATCH v5 2/2] gro: add VXLAN UDP GRO support Importance: High For outer_ip_id, there is

Re: [dpdk-dev] [PATCH v5 2/2] gro: add VXLAN UDP GRO support

2020-09-14 Thread yang_y_yi
BTW, you need to update the programmer guide >doc/guides/prog_guide/generic_receive_offload_lib.rst and >release note doc/guides/rel_notes/release_20_11.rst. > >Thanks, >Jiayu > >On Mon, Sep 14, 2020 at 10:13:44AM +0800, yang_y_yi wrote: >> Jiayu, thank you so much, please c

Re: [dpdk-dev] [PATCH v5 2/2] gro: add VXLAN UDP GRO support

2020-09-14 Thread yang_y_yi
0_11.rst. > >Thanks, >Jiayu > >On Mon, Sep 14, 2020 at 10:13:44AM +0800, yang_y_yi wrote: >> Jiayu, thank you so much, please check my replies for some of your comments, >> here is incremental patch. I built it by meson this time :-) >> >> diff --git a/lib/li

Re: [dpdk-dev] [PATCH v4 1/2] gro: add UDP GRO support

2020-09-10 Thread yang_y_yi
Thanks Jiayu, I have sent out v5. At 2020-09-10 10:47:43, "Hu, Jiayu" wrote: No more comments on this patch. Thanks, Jiayu From: yang_y_yi Sent: Wednesday, September 9, 2020 5:00 PM To: Hu, Jiayu Cc: tho...@monjalon.net; dev@dpdk.org; yangy...@inspur.com Subject: Re:Re:

[dpdk-dev] [PATCH v5 2/2] gro: add VXLAN UDP GRO support

2020-09-10 Thread yang_y_yi
From: Yi Yang VXLAN UDP GRO can help improve VM-to-VM UDP performance when VM is enabled UFO or GSO, GRO must be supported if GSO or UFO is enabled, otherwise, performance gain will be hurt. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, this will make s

[dpdk-dev] [PATCH v5 1/2] gro: add UDP GRO support

2020-09-10 Thread yang_y_yi
From: Yi Yang UDP GRO can help improve VM-to-VM UDP performance when VM is enabled UFO or GSO, GRO must be supported if GSO or UFO is enabled, otherwise, performance gain will be hurt. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, this will make sure IP

[dpdk-dev] [PATCH v5 0/2] gro: add UDP GRO and VXLAN UDP GRO support

2020-09-10 Thread yang_y_yi
From: Yi Yang In case that UFO or GSO is enabled, GRO is very necessary, especially for UDP, it is more so. Many NICs can't support VXLAN UDP UFO/USO and VLAN UFO/USO, so UDP performance improvement depends on GSO and GRO to a great extent. This patch series added VLAN UDP GRO and VXLAN UDP GRO

Re: [dpdk-dev] [PATCH v4 1/2] gro: add UDP GRO support

2020-09-09 Thread yang_y_yi
* Check if two UDP/IPv4 packets are neighbors. */ static inline int -udp_check_neighbor(struct gro_udp4_item *item, +udp4_check_neighbor(struct gro_udp4_item *item, uint16_t frag_offset, uint16_t ip_dl, uint16_t l2_offset) At 2020-09-09 15:25:10, &quo

Re: [dpdk-dev] [PATCH v4 1/2] gro: add UDP GRO support

2020-09-09 Thread yang_y_yi
At 2020-09-08 10:05:16, "Jiayu Hu" wrote: >Some comments are inline. Thanks, replies inline. > >Thanks, >Jiayu > >On Fri, Sep 04, 2020 at 04:37:39PM +0800, yang_y...@163.com wrote: >> From: Yi Yang >> >> UDP GRO can help improve VM-to-VM UDP performance when >> VM is enabled UFO or GSO, GRO

[dpdk-dev] [PATCH v4 1/2] gro: add UDP GRO support

2020-09-04 Thread yang_y_yi
From: Yi Yang UDP GRO can help improve VM-to-VM UDP performance when VM is enabled UFO or GSO, GRO must be supported if GSO or UFO is enabled, otherwise, performance gain will be hurt. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, this will make sure IP

[dpdk-dev] [PATCH v4 0/2] gro: add UDP GRO and VXLAN UDP GRO support

2020-09-04 Thread yang_y_yi
From: Yi Yang In case that UFO or GSO is enabled, GRO is very necessary, especially for UDP, it is more so. Many NICs can't support VXLAN UDP UFO/USO and VLAN UFO/USO, so UDP performance improvement depends on GSO and GRO to a great extent. This patch series added VLAN UDP GRO and VXLAN UDP GRO

[dpdk-dev] [PATCH v4 2/2] gro: add VXLAN UDP GRO support

2020-09-04 Thread yang_y_yi
From: Yi Yang VXLAN UDP GRO can help improve VM-to-VM UDP performance when VM is enabled UFO or GSO, GRO must be supported if GSO or UFO is enabled, otherwise, performance gain will be hurt. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, this will make s

Re: [dpdk-dev] [PATCH V3 1/2] gro: add UDP GRO support

2020-09-03 Thread yang_y_yi
At 2020-09-03 15:42:48, "Hu, Jiayu" wrote: >Hi Yi, > >Some comments are inline. > >In addition, have you tested UDP GRO function and measure performance? Yes, I tested GRO and GSO together. The test case is VM sends 8K UDP packet by vhostuserclient, OVS DPDK GSOed it as size 1450 packets, send t

Re: [dpdk-dev] [PATCH] gro: add UDP GRO and VXLAN UDP GRO support

2020-09-02 Thread yang_y_yi
. Either user or rte_gro_rx_prepare() provides correct l2_len etc. value. Thanks, Jiayu From: yang_y_yi Sent: Wednesday, September 2, 2020 1:58 PM To: Hu, Jiayu Cc: dev@dpdk.org; tho...@monjalon.net; yangy...@inspur.com Subject: Re:RE: Re:Re: [dpdk-dev] [PATCH] gro: add UDP GRO and VXLAN

[dpdk-dev] [PATCH V3 2/2] gro: add VXLAN UDP GRO support

2020-09-02 Thread yang_y_yi
From: Yi Yang VXLAN UDP GRO can help improve VM-to-VM UDP performance when VM is enabled UFO or GSO, GRO must be supported if GSO or UFO is enabled, otherwise, performance gain will be hurt. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, this will make s

[dpdk-dev] [PATCH V3 0/2] gro: add UDP GRO and VXLAN UDP GRO support

2020-09-02 Thread yang_y_yi
From: Yi Yang In case that UFO or GSO is enabled, GRO is very necessary, especially for UDP, it is more so. Many NICs can't support VXLAN UDP UFO/USO and VLAN UFO/USO, so UDP performance improvement depends on GSO and GRO to a great extent. This patch series added VLAN UDP GRO and VXLAN UDP GRO

[dpdk-dev] [PATCH V3 1/2] gro: add UDP GRO support

2020-09-02 Thread yang_y_yi
From: Yi Yang UDP GRO can help improve VM-to-VM UDP performance when VM is enabled UFO or GSO, GRO must be supported if GSO or UFO is enabled, otherwise, performance gain will be hurt. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, this will make sure IP

Re: [dpdk-dev] [PATCH] gro: add UDP GRO and VXLAN UDP GRO support

2020-09-01 Thread yang_y_yi
Packet type is checked by mbuf->packet_type field, and input packets should provide correct packet_type value. TCP GRO only process TCP packets whose header length is between 20 and 60 bytes. So we check l4_len. From: yang_y_yi Sent: Tuesday, September 1, 2020 4:43 PM To: Hu, Jiayu Cc: dev@dpd

[dpdk-dev] [PATCH v2 0/2] gro: add UDP GRO and VXLAN UDP GRO support

2020-09-01 Thread yang_y_yi
From: Yi Yang In case that UFO or GSO is enabled, GRO is very necessary, especially for UDP, it is more so. Many NICs can't support VXLAN UDP UFO/USO and VLAN UFO/USO, so UDP performance improvement depends on GSO and GRO to a great extent. This patch series added VLAN UDP GRO and VXLAN UDP GRO

[dpdk-dev] [PATCH v2 1/2] gro: add UDP GRO support

2020-09-01 Thread yang_y_yi
From: Yi Yang UDP GRO can help improve VM-to-VM UDP performance when VM is enabled UFO or GSO, GRO must be supported if GSO or UFO is enabled, otherwise, performance gain will be hurt. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, this will make sure IP

[dpdk-dev] [PATCH v2 2/2] gro: add VXLAN UDP GRO support

2020-09-01 Thread yang_y_yi
From: Yi Yang VXLAN UDP GRO can help improve VM-to-VM UDP performance when VM is enabled UFO or GSO, GRO must be supported if GSO or UFO is enabled, otherwise, performance gain will be hurt. With this enabled in DPDK, OVS DPDK can leverage it to improve VM-to-VM UDP performance, this will make s

Re: [dpdk-dev] [PATCH] gro: add UDP GRO and VXLAN UDP GRO support

2020-09-01 Thread yang_y_yi
Jiayu, BTW, after I check it again, I think udp header length check is necessary, it is actually a sanity check io order to ensure it is indeed a udp packet, gro_tcp4.c did same thing. At 2020-09-01 14:10:41, "yang_y_yi" wrote: >At 2020-09-01 12:27:29, "Hu, Jiayu" wr

Re: [dpdk-dev] [PATCH] gro: add UDP GRO and VXLAN UDP GRO support

2020-08-31 Thread yang_y_yi
At 2020-09-01 12:27:29, "Hu, Jiayu" wrote: >Hi Yi, > >This patch supports UDP and VxLAN/UDP, but both are in one patch. >It's too large, and please split it into small patches. Jiayu, thank you so much for your great review , I'll send v2 to split it into two patches and fix your comments. Detai

[dpdk-dev] [PATCH] gso: fix pyld_unit_size issue for udp gso

2020-08-25 Thread yang_y_yi
From: Yi Yang IP fragment offset in IP header must be multiple of 8, if pyld_unit_size isn't multiple of 8, IP total length will be wrong after reassemble, IP payload also will be wrong because some data is lost on reassembling. This has been verified in OVS DPDK by VLAN TSO iperf3 UDP case. Fi

Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-08-03 Thread yang_y_yi
At 2020-08-03 20:34:25, "Olivier Matz" wrote: >On Mon, Aug 03, 2020 at 05:42:13PM +0800, yang_y_yi wrote: >> At 2020-08-03 16:11:39, "Olivier Matz" wrote: >> >On Mon, Aug 03, 2020 at 09:26:40AM +0800, yang_y_yi wrote: >> >> At 202

Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-08-03 Thread yang_y_yi
At 2020-08-03 16:11:39, "Olivier Matz" wrote: >On Mon, Aug 03, 2020 at 09:26:40AM +0800, yang_y_yi wrote: >> At 2020-08-03 04:29:07, "Olivier Matz" wrote: >> >Hi, >> > >> >On Sun, Aug 02, 2020 at 07:12:36AM +0800, yang_y_yi wrote: >>

Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-08-02 Thread yang_y_yi
At 2020-08-03 04:45:12, "Olivier Matz" wrote: >On Sun, Aug 02, 2020 at 10:29:07PM +0200, Olivier Matz wrote: >> Hi, >> >> On Sun, Aug 02, 2020 at 07:12:36AM +0800, yang_y_yi wrote: >> > >> > >> > At 2020-07-31 23:15:43, "Olivier

Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-08-02 Thread yang_y_yi
At 2020-08-03 04:29:07, "Olivier Matz" wrote: >Hi, > >On Sun, Aug 02, 2020 at 07:12:36AM +0800, yang_y_yi wrote: >> >> >> At 2020-07-31 23:15:43, "Olivier Matz" wrote: >> >Hi, >> > >> >On Thu, Jul 30, 2020 at 08:08:59P

Re: [dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-08-01 Thread yang_y_yi
At 2020-07-31 23:15:43, "Olivier Matz" wrote: >Hi, > >On Thu, Jul 30, 2020 at 08:08:59PM +0800, yang_y...@163.com wrote: >> From: Yi Yang >> >> In GSO case, segmented mbufs are attached to original >> mbuf which can't be freed when it is external. The issue >> is free_cb doesn't know original

[dpdk-dev] [PATCH] doc: announce deprecation of rte_mbuf_extbuf_free_callback_t

2020-07-30 Thread yang_y_yi
From: Yi Yang typedef rte_mbuf_extbuf_free_callback_t will be deprecated in 20.08 release. Signed-off-by: Yi Yang --- doc/guides/rel_notes/deprecation.rst | 8 1 file changed, 8 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst in

Re: [dpdk-dev] 答复: [PATCH 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-07-30 Thread yang_y_yi
Unfortunately, git send-email in windows can't work with -cc-cmd, I just tried it but maintainers weren't added to cc list. Here is my get-maintainer.sh. Anybody knows why it can't work. $ ./get-maintainer.sh dpdk-patches/-cover-letter.patch yangyi01@yangyi0100 MINGW64 ~ $ ./get-maintainer

[dpdk-dev] [PATCH V1 3/3] vhost: use new free_cb interface to fix mbuf free issue

2020-07-30 Thread yang_y_yi
From: Yi Yang New free_cb interface can help fix original external mbuf free issue in GSO case, it still can be compatible with normal non-GSO case. dpdkvhostuser port can work both in GSO case and in non-GSO case by this fix. Signed-off-by: Yi Yang --- lib/librte_vhost/virtio_net.c | 22 +

[dpdk-dev] [PATCH V1 0/3] Fix external mbuf free issue in GSO case

2020-07-30 Thread yang_y_yi
From: Yi Yang It is impossible to fix external mbuf free issue in GSO case, the issue is GSO case only can free buffer in external mbuf but can't free this external mbuf because this is done by free_cb, in order to fix it, free_cb interface has to been changed to adapt to GSO case, this patch ser

[dpdk-dev] [PATCH V1 2/3] mbuf: change free_cb interface to adapt to GSO case

2020-07-30 Thread yang_y_yi
From: Yi Yang In GSO case, segmented mbufs are attached to original mbuf which can't be freed when it is external. The issue is free_cb doesn't know original mbuf and doesn't free it when refcnt of shinfo is 0. Original mbuf can be freed by rte_pktmbuf_free segmented mbufs or by rte_pktmbuf_free

  1   2   >