Eric Dumazet ce1a4ea3f1 net: avoid one atomic operation in skb_clone()
Fast clone cloning can actually avoid an atomic_inc(), if we
guarantee prior clone_ref value is 1.

This requires a change kfree_skbmem(), to perform the
atomic_dec_and_test() on clone_ref before setting fclone to
SKB_FCLONE_UNAVAILABLE.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-10-01 21:27:23 -04:00
..
2014-09-10 12:40:10 -07:00
2014-08-22 12:23:11 -07:00
2014-09-30 17:08:06 -04:00
2014-09-10 12:40:10 -07:00
2014-09-07 16:07:25 -07:00
2014-09-30 01:02:26 -04:00
2014-08-13 18:13:19 -06:00
2014-09-10 14:00:58 -07:00