From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753920AbZBBIJX (ORCPT ); Mon, 2 Feb 2009 03:09:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751797AbZBBIJE (ORCPT ); Mon, 2 Feb 2009 03:09:04 -0500 Received: from fg-out-1718.google.com ([72.14.220.156]:4321 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751762AbZBBIJC (ORCPT ); Mon, 2 Feb 2009 03:09:02 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=eW1/oYNYbgO5PlS64gEFNfMHEpMW9m5xPYC9gLFDHF9v9c4XFwYn+QK5kdQKNiQyVY CfuvGvSuEFsfUZ6AYxAxv3sQDyZPeMGNxmw0//ASotp7l1o45wnaHYERQvLr47KL4uuV zjuB+Qvp+ZTvrqtuHTUlqmordqVjcN0YOMpiw= Date: Mon, 2 Feb 2009 08:08:55 +0000 From: Jarek Poplawski To: Herbert Xu Cc: David Miller , zbr@ioremap.net, w@1wt.eu, dada1@cosmosbay.com, ben@zeus.com, mingo@elte.hu, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, jens.axboe@oracle.com Subject: Re: [PATCH v2] tcp: splice as many packets as possible at once Message-ID: <20090202080855.GA4129@ff.dom.local> References: <20090126212130.GA4338@ioremap.net> <20090126.221056.174077798.davem@davemloft.net> <20090127074048.GA4197@ff.dom.local> <20090130.134227.123379239.davem@davemloft.net> <20090130221604.GD11381@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090130221604.GD11381@gondor.apana.org.au> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 31, 2009 at 09:16:04AM +1100, Herbert Xu wrote: > On Fri, Jan 30, 2009 at 01:42:27PM -0800, David Miller wrote: ... > > Back to real life, I think long term the thing to do is to just do the > > cached page allocator thing we'll be doing after Jarek's socket page > > patch is integrated, and for best performance the driver has to > > receive it's data into pages, only explicitly pulling the ethernet > > header into the linear area, like NIU does. > > Yes that sounds like the way to go. Looks like a lot of changes in drivers, plus: would it work with jumbo frames? I wonder why the linear area can't be allocated as paged, and freed with put_page() instead of kfree(skb->head) in skb_release_data(). Actually, at least for some time, there could be used both of these methods (on paged alloc failure) with some ifs in skb_release_data() and spd_fill_page() (to check if linear_to_page() is needed). Jarek P.