diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-08-29 08:52:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-29 08:52:01 +0200 |
commit | 30038fc61adfdab162b1966e34261f06eda67f02 (patch) | |
tree | c9266e5d3c54c7a9a4b17bd68b28b24d629249b2 /samples | |
parent | tcp: keepalive cleanups (diff) | |
download | linux-30038fc61adfdab162b1966e34261f06eda67f02.tar.xz linux-30038fc61adfdab162b1966e34261f06eda67f02.zip |
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions