commit | 30038fc61adfdab162b1966e34261f06eda67f02 | [log] [tgz] |
---|---|---|
author | Eric Dumazet <eric.dumazet@gmail.com> | Fri Aug 28 23:52:01 2009 -0700 |
committer | David S. Miller <davem@davemloft.net> | Fri Aug 28 23:52:01 2009 -0700 |
tree | c9266e5d3c54c7a9a4b17bd68b28b24d629249b2 | |
parent | df19a6267705456f463871ae2aabc44299909d2a [diff] |
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>