From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [PATCH 3/4] tun: Allow GSO using virtio_net_hdr Date: Fri, 25 Jul 2008 09:54:18 +1000 Message-ID: <200807250954.19120.rusty@rustcorp.com.au> References: <200806260028.07883.rusty@rustcorp.com.au> <200806260030.38293.rusty@rustcorp.com.au> <20080724142044.GA8266@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Max Krasnyansky , netdev@vger.kernel.org, virtualization@lists.linux-foundation.org, markmc@redhat.com To: Herbert Xu Return-path: Received: from ozlabs.org ([203.10.76.45]:54550 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751884AbYGXXz1 (ORCPT ); Thu, 24 Jul 2008 19:55:27 -0400 In-Reply-To: <20080724142044.GA8266@gondor.apana.org.au> Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-ID: On Friday 25 July 2008 00:20:44 Herbert Xu wrote: > On Thu, Jun 26, 2008 at 12:30:37AM +1000, Rusty Russell wrote: > > Add a IFF_VNET_HDR flag. This uses the same ABI as virtio_net (ie. > > prepending struct virtio_net_hdr to packets) to indicate GSO and checksum > > information. > > > > Signed-off-by: Rusty Russell > > I just noticed that we still allocate a linear skb even when GSO > is enabled. Please fix this by allocating page frags where > necessary. Otherwise GSO is only going to work before memory > fragmentation sets in. > > IIRC I'd sent out a patch to the virt mailing list with code > that did this. > > Thanks, Hi Herbert, Thanks for the reminder. I have this code in the virtio_net patches which Linus failed to pull. Will just need to share it with the tun code (maybe a skb_alloc_large() helper). Cheers, Rusty.