ipv4: avoid two atomic ops in ip_rt_redirect()
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 8 Jun 2010 04:49:44 +0000 (21:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2010 04:49:44 +0000 (21:49 -0700)
commited7865a47d4759e85bbd7bed44bee411d868eaad
treef0d2bd7d1f6c2c9d962baf84d2041a5b8c1c6b64
parent9a57a9d291980302b4a3184fbc47dbddac71903e
ipv4: avoid two atomic ops in ip_rt_redirect()

in_dev_get() -> __in_dev_get_rcu() in a rcu protected function.

[ Fix build with CONFIG_IP_ROUTE_VERBOSE disabled. -DaveM ]

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