Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965009AbWEOVlz (ORCPT ); Mon, 15 May 2006 17:41:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965007AbWEOVlz (ORCPT ); Mon, 15 May 2006 17:41:55 -0400 Received: from stinky.trash.net ([213.144.137.162]:29655 "EHLO stinky.trash.net") by vger.kernel.org with ESMTP id S964920AbWEOVlx (ORCPT ); Mon, 15 May 2006 17:41:53 -0400 Message-ID: <4468F5A0.3040404@trash.net> Date: Mon, 15 May 2006 23:41:52 +0200 From: Patrick McHardy User-Agent: Debian Thunderbird 1.0.7 (X11/20051019) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "David S. Miller" CC: ranjitm@google.com, akpm@osdl.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] tcpdump may trace some outbound packets twice. References: <20060514031034.5d0396e7.akpm@osdl.org> <20060514.134231.101346572.davem@davemloft.net> <20060515.142645.94689626.davem@davemloft.net> In-Reply-To: <20060515.142645.94689626.davem@davemloft.net> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1032 Lines: 28 David S. Miller wrote: > From: Ranjit Manomohan > Date: Mon, 15 May 2006 14:19:06 -0700 (PDT) > > >>Heres a new version which does a copy instead of the clone to avoid >>the double cloning issue. > > > I still very much dislike this patch because it is creating > 1 more clone per packet than is actually necessary and that > is very expensive. > > dev_queue_xmit_nit() is going to clone whatever SKB you send into > there, so better to just bump the reference count (with skb_get()) > instead of cloning or copying. I think this would break the tc actions. Some actions call pskb_expand_head() on input, which BUGs on skb_shared(skb). They can't clone the skb instead because the functions doing that don't own it, the caller would continue with the old skb. - 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/