ip6tnl: less dev_put() calls
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 2 Nov 2009 10:21:37 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Nov 2009 11:42:40 +0000 (03:42 -0800)
commitf1a28eab20076542322fcab3efa016834bd732f2
treeda94305517418449975ceaeabe61ea6d1547cd67
parent654d1f8a019dfa06df8355248e1ce222f303b88d
ip6tnl: less dev_put() calls

Using dev_get_by_index_rcu() in ip6_tnl_rcv_ctl() & ip6_tnl_xmit_ctl()
avoids touching device refcount.

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