From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steffen Klassert Subject: Re: UDP GRO without Merging Date: Wed, 25 Jul 2018 12:52:00 +0200 Message-ID: <20180725105200.tarhvqw7qac3j2el@gauss3.secunet.de> References: <03922960-2b6e-181f-041b-aa636b3c9d98@anarchist.pw> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Cc: To: Gauvain Roussel-Tarbouriech Return-path: Received: from a.mx.secunet.com ([62.96.220.36]:50540 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728885AbeGYMDR (ORCPT ); Wed, 25 Jul 2018 08:03:17 -0400 Content-Disposition: inline In-Reply-To: <03922960-2b6e-181f-041b-aa636b3c9d98@anarchist.pw> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, Jul 25, 2018 at 11:53:45AM +0200, Gauvain Roussel-Tarbouriech wrote: > Subject: > > Hello Netdev, > > I am working on WireGuard as part of Google Summer of Code and Jason and > I are working on adding GRO to WireGuard, on the udp_tunnel side of > things. The goal is to inform udp_tunnel’s gro_receive that certain > packets are part of the same flow. Then sometime later, we’d like to > have a list of those same-flow packets appear in gro_complete. As far as > I can tell, the API seems well suited for merging packets in > gro_receive, such that gro_complete only then gets one single merged > packet. However, we need to receive the entire list of same-flow packets > in gro_complete, unmerged. Is this possible with the present APIs? We recently posted a patchset that does this GRO packet chaining. Not sure if this is exactly what you need, but you can have a look here: https://www.spinics.net/lists/netdev/msg508093.html This is implemented as a part of a forward fastpath, but could be also moved generic code if needed.