]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
net: increase skb->users instead of skb_clone()
authorChangli Gao <xiaosuo@gmail.com>
Wed, 15 Dec 2010 19:57:25 +0000 (19:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Dec 2010 05:50:20 +0000 (21:50 -0800)
commit71d9dec24dce548bf699815c976cf063ad9257e2
treeaad41859f011a20125acb3a717b3fc3121f108a2
parent1a75972c61f2c224eb5283c183f9f6b17fb09b6b
net: increase skb->users instead of skb_clone()

In dev_queue_xmit_nit(), we have to clone skbs as we need to mangle skbs,
however, we don't need to clone skbs for all the packet_types.

Except for the first packet_type, we increase skb->users instead of
skb_clone().

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c