]> git.baikalelectronics.ru Git - kernel.git/commit
neigh: fix ARP retransmit timer guard
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 28 May 2020 07:15:13 +0000 (15:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 May 2020 23:56:53 +0000 (16:56 -0700)
commite952f81dee890a2796aadae5d58fe11dc2b6728b
treebf1184fe334ca092ebf06a492c882d29db7e2251
parentc601e5b4d5d75c3592e16f8bad1f82338086e4c0
neigh: fix ARP retransmit timer guard

In commit 4103b619bff8 ("neigh: support smaller retrans_time settting")
we add more accurate control for ARP and NS. But for ARP I forgot to
update the latest guard in neigh_timer_handler(), then the next
retransmit would be reset to jiffies + HZ/2 if we set the retrans_time
less than 500ms. Fix it by setting the time_before() check to HZ/100.

IPv6 does not have this issue.

Reported-by: Jianwen Ji <jiji@redhat.com>
Fixes: 4103b619bff8 ("neigh: support smaller retrans_time settting")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c