commit | 71d9dec24dce548bf699815c976cf063ad9257e2 | [log] [tgz] |
---|---|---|
author | Changli Gao <xiaosuo@gmail.com> | Wed Dec 15 19:57:25 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Dec 19 21:50:20 2010 -0800 |
tree | aad41859f011a20125acb3a717b3fc3121f108a2 | |
parent | 1a75972c61f2c224eb5283c183f9f6b17fb09b6b [diff] |
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>