Re: [PATCH] net: increase skb->users instead of skb_clone()

Changli Gao
2010-12-16T14:44:09Z

On Thu, Dec 16, 2010 at 10:41 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
>
> Yes, but you want to, because each receiver has to make a private copy
> of the skb.
>
> The big win is that if packet if filtered out (not accepted by the
> socket filter), you end with no extra skb_clone() at all.
>
> Say you have 8 receivers, with a filter matching some hash/cpu, and only
> one af_packet socket will take the message.
>
> Before patch : 8 skb_clones()
>
> After patch : one skb_clone()
>
> If I undertood patch intent ;)
>

Yes, you got it. :)

--
Regards,
Changli Gao(xiaosuo@gmail.com)