Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758582AbZKYKUU (ORCPT ); Wed, 25 Nov 2009 05:20:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758524AbZKYKUT (ORCPT ); Wed, 25 Nov 2009 05:20:19 -0500 Received: from ozlabs.org ([203.10.76.45]:45056 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758420AbZKYKUS (ORCPT ); Wed, 25 Nov 2009 05:20:18 -0500 From: Rusty Russell To: "Michael S. Tsirkin" Subject: Re: [PATCH 1/1] Defer skb allocation for both mergeable buffers and big packets in virtio_net Date: Wed, 25 Nov 2009 20:50:21 +1030 User-Agent: KMail/1.12.2 (Linux/2.6.31-14-generic; KDE/4.3.2; i686; ; ) Cc: Shirley Ma , Eric Dumazet , Avi Kivity , netdev@vger.kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Hollis Blanchard References: <1258697745.7416.20.camel@localhost.localdomain> <200911251042.06368.rusty@rustcorp.com.au> <20091125091530.GA6357@redhat.com> In-Reply-To: <20091125091530.GA6357@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200911252050.21907.rusty@rustcorp.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 716 Lines: 19 On Wed, 25 Nov 2009 07:45:30 pm Michael S. Tsirkin wrote: > Hmm, is it really worth it to save a header copy if it's linear? We are > going to access it anyway, and it fits into one cacheline nicely. On > the other hand we have more code making life harder for compiler and > processor. Not sure: I think there would be many places where it would be useful. We do a similar thing in the kernel to inspect non-linear packets, and it's served us well. Cheers, Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/