Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751261AbWEPETr (ORCPT ); Tue, 16 May 2006 00:19:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751260AbWEPETr (ORCPT ); Tue, 16 May 2006 00:19:47 -0400 Received: from dsl027-180-168.sfo1.dsl.speakeasy.net ([216.27.180.168]:4807 "EHLO sunset.davemloft.net") by vger.kernel.org with ESMTP id S1751243AbWEPETq (ORCPT ); Tue, 16 May 2006 00:19:46 -0400 Date: Mon, 15 May 2006 21:18:43 -0700 (PDT) Message-Id: <20060515.211843.82450846.davem@davemloft.net> To: kaber@trash.net Cc: herbert@gondor.apana.org.au, shemminger@osdl.org, 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. From: "David S. Miller" In-Reply-To: <4469294D.6010509@trash.net> References: <44692847.4080100@trash.net> <4469294D.6010509@trash.net> X-Mailer: Mew version 4.2.53 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1225 Lines: 30 From: Patrick McHardy Date: Tue, 16 May 2006 03:22:21 +0200 > Patrick McHardy wrote: > > 3) Clone the skb and have dev_queue_xmit_nit() consume it. > > > > That should actually be pretty easy. > > On second thought, thats not so great either. netdev_nit > just globally signals that there are some taps, but we > don't know if they're interested in a specific packet. Yes, and all of these issues coming up are why we do the dev_queue_xmit_nit() before not after we try to give it to the device. Even the "NIT done" bit doesn't work, for cases like ICMP replies which can reuse the SKB received, over loopback. Sure we can try to forcefully clear the bit everywhere we reuse buffers for replies like that, but I wish anyone trying to implement that the best of luck finding all spots successfully. To be honest, I don't think this bug is worth all the energy we are trying to put into fixing it. We get a double packet when the spinlock is hit, big deal. - 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/