Subject: Re: [PATCH] tcpdump may trace some outbound packets twice.

From: Patrick McHardy <[email-masked]>
Date: Tue, 16 May 2006 03:17:59 +0200

Herbert Xu wrote:
> David S. Miller <[email-masked]> wrote:
> 
>>Other implementation possibility suggestions welcome :-)
> 
> 
> I see two possibilities:
> 
> 1) Move the af_packet hook into the NIC driver.
> 2) Rethink the lockless tx setup.  If all NICs followed the tg3 and
>    replaced spin_lock_irqsave with spin_lock then we should be able
>    to go back to just using the xmit_lock.

3) Clone the skb and have dev_queue_xmit_nit() consume it.

That should actually be pretty easy.