From: Steffen Klassert Subject: Re: [PATCH RFC 1/3] net: Prepare GSO return values for fraglist GSO. Date: Mon, 14 Jan 2019 13:53:04 +0100 Message-ID: <20190114125304.GG3581@gauss3.secunet.de> References: <20181221075334.9000-1-steffen.klassert@secunet.com> <20181221075334.9000-2-steffen.klassert@secunet.com> <7f353a949e6d8bd89a0b7b63e07cbcf3cf66b6a9.camel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: , Willem de Bruijn , "Jason A. Donenfeld" To: Paolo Abeni Return-path: Received: from a.mx.secunet.com ([62.96.220.36]:56642 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726449AbfANMxH (ORCPT ); Mon, 14 Jan 2019 07:53:07 -0500 Content-Disposition: inline In-Reply-To: <7f353a949e6d8bd89a0b7b63e07cbcf3cf66b6a9.camel@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, Jan 08, 2019 at 02:53:52PM +0100, Paolo Abeni wrote: > On Fri, 2018-12-21 at 08:53 +0100, Steffen Klassert wrote: > > On fraglist GSO, we don't need to clone the original > > skb. So we don't have anything to return to free. > > Prepare GSO that it frees the original skb only > > if the return pointer really changed. Fraglist > > GSO frees the original skb itself on error and > > returns -EREMOTE in this case. > > I think it would be nicer preseving the same sematic with gro list, so > that we don't have to add this special handling. > > e.g. calling skb_get(skb) in skb_segment_list() when successful, would > avoid the special handling for the no error case (at the cost of 2 > atomic ops per gso_list packet) That's a good idea, I'll do this in the next version of the patchset.