]> git.baikalelectronics.ru Git - kernel.git/commit
ip6tnl: avoid touching dst refcount in ip6_tnl_xmit2()
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 28 Jul 2011 04:32:25 +0000 (04:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2011 07:12:00 +0000 (00:12 -0700)
commitd55ed8d57278f5b8fd5b1e2743286a01c6e0a0f1
tree633279786602d3677ea5c4959528aa00219afed2
parent92ade2977a1dfd9c726388c91570467c7ed4199b
ip6tnl: avoid touching dst refcount in ip6_tnl_xmit2()

Even using percpu stats, we still hit tunnel dst_entry refcount in
ip6_tnl_xmit2()

Since we are in RCU locked section, we can use skb_dst_set_noref() and
avoid these atomic operations, leaving dst shared on cpus.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_tunnel.c