[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100408.051144.183699401.davem@davemloft.net>
Date: Thu, 08 Apr 2010 05:11:44 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: herbert@...dor.apana.org.au
Cc: netdev@...r.kernel.org
Subject: Re: dhcp client packet sniffing...
From: Herbert Xu <herbert@...dor.apana.org.au>
Date: Thu, 8 Apr 2010 19:47:38 +0800
> Another approach is to use skb_share. At some point all protocols
> were designed to handle shared skbs.
>
> If we could tap into that then it would be an obvious way to
> eliminate the clone. To do this we'd need to audit all the
> protocols to ensure that they can still handle shared packets
> safely.
I don't even want to call down into the AF_PACKET code for
the case where the filter doesn't pass.
We have the socket pointer etc. already in dev_queue_xmit_nit(), so we
can easily do it.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists