net: add skb_dst_set_noref_force
authorJulian Anastasov <ja@ssi.bg>
Thu, 21 Mar 2013 09:57:58 +0000 (11:57 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Apr 2013 22:22:53 +0000 (00:22 +0200)
commit932bc4d7a53ba418de67fdab533248df5b36c752
tree19747cdef824180014d98baf8959757d0bae1198
parente5c5d22e8dcf7c2d430336cbf8e180bd38e8daf1
net: add skb_dst_set_noref_force

Rename skb_dst_set_noref to __skb_dst_set_noref and
add force flag as suggested by David Miller. The new wrapper
skb_dst_set_noref_force will force dst entries that are not
cached to be attached as skb dst without taking reference
as long as provided dst is reclaimed after RCU grace period.

Signed-off-by: Julian Anastasov <ja@ssi.bg>
Signed-off by: Hans Schillstrom <hans@schillstrom.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/linux/skbuff.h
net/core/dst.c