From: Eric Dumazet Date: Wed, 1 Oct 2014 22:27:15 +0000 (-0700) Subject: net: avoid one atomic operation in skb_clone() X-Git-Tag: fixes-against-v3.18-rc2~144^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce1a4ea3f125863bfbcb1afb76590ee2b7b93fbf;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed