diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-08-09 08:15:58 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-12 09:55:28 (GMT) |
commit | cd28ca0a3dd17c68d24b839602a0e6268ad28b5d (patch) | |
tree | 3e77945743e2c74c36b6942ad5bfe46a07eb9caa /net/ipv4/route.c | |
parent | 68c3e5a7b91513010d2536e4bcd7bdd54d0e6acf (diff) | |
download | linux-fsl-qoriq-cd28ca0a3dd17c68d24b839602a0e6268ad28b5d.tar.xz |
neigh: reduce arp latency
Remove the artificial HZ latency on arp resolution.
Instead of firing a timer in one jiffy (up to 10 ms if HZ=100), lets
send the ARP message immediately.
Before patch :
# arp -d 192.168.20.108 ; ping -c 3 192.168.20.108
PING 192.168.20.108 (192.168.20.108) 56(84) bytes of data.
64 bytes from 192.168.20.108: icmp_seq=1 ttl=64 time=9.91 ms
64 bytes from 192.168.20.108: icmp_seq=2 ttl=64 time=0.065 ms
64 bytes from 192.168.20.108: icmp_seq=3 ttl=64 time=0.061 ms
After patch :
$ arp -d 192.168.20.108 ; ping -c 3 192.168.20.108
PING 192.168.20.108 (192.168.20.108) 56(84) bytes of data.
64 bytes from 192.168.20.108: icmp_seq=1 ttl=64 time=0.152 ms
64 bytes from 192.168.20.108: icmp_seq=2 ttl=64 time=0.064 ms
64 bytes from 192.168.20.108: icmp_seq=3 ttl=64 time=0.074 ms
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/route.c')
0 files changed, 0 insertions, 0 deletions