]> git.baikalelectronics.ru Git - kernel.git/commit
neigh: support smaller retrans_time settting
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 1 Apr 2020 06:46:20 +0000 (14:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Apr 2020 00:55:26 +0000 (17:55 -0700)
commit4103b619bff8e25fc395bdbd76ece26bfe59a014
treeb44f420faa79b7dac43e6c5251c3f0639705a5e1
parent20c032970aa8ed1acc5bc951bf09f699869fb723
neigh: support smaller retrans_time settting

Currently, we limited the retrans_time to be greater than HZ/2. i.e.
setting retrans_time less than 500ms will not work. This makes the user
unable to achieve a more accurate control for bonding arp fast failover.

Update the sanity check to HZ/100, which is 10ms, to let users have more
ability on the retrans_time control.

v3: sync the behavior with IPv6 and update all the timer handler
v2: use HZ instead of hard code number

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c
net/ipv6/addrconf.c
net/ipv6/ndisc.c