net: ip_rt_send_redirect() optimization
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 29 Aug 2009 06:52:01 +0000 (23:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Aug 2009 06:52:01 +0000 (23:52 -0700)
commit30038fc61adfdab162b1966e34261f06eda67f02
treec9266e5d3c54c7a9a4b17bd68b28b24d629249b2
parentdf19a6267705456f463871ae2aabc44299909d2a
net: ip_rt_send_redirect() optimization

While doing some forwarding benchmarks, I noticed
ip_rt_send_redirect() is rather expensive, even if send_redirects is
false for the device.

Fix is to avoid two atomic ops, we dont really need to take a
reference on in_dev

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