aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorHangbin Liu <liuhangbin@gmail.com>2024-02-05 21:00:47 +0800
committerJakub Kicinski <kuba@kernel.org>2024-02-07 18:26:20 -0800
commit45bf79bc56c4158afb6f57cca67ac0ef0a7073ef (patch)
tree88e2034ead1194e5bb9fbdbd0a11a87393d10281 /net/unix/garbage.c
parentselftests: bonding: use tc filter to check if LACP was sent (diff)
downloadwireguard-linux-45bf79bc56c4158afb6f57cca67ac0ef0a7073ef.tar.xz
wireguard-linux-45bf79bc56c4158afb6f57cca67ac0ef0a7073ef.zip
selftests: bonding: reduce garp_test/arp_validate test time
The purpose of grat_arp is testing commit 9949e2efb54e ("bonding: fix send_peer_notif overflow"). As the send_peer_notif was defined to u8, to overflow it, we need to send_peer_notif = num_peer_notif * peer_notif_delay = num_grat_arp * peer_notify_delay / miimon > 255 (kernel) (kernel parameter) (user parameter) e.g. 30 (num_grat_arp) * 1000 (peer_notify_delay) / 100 (miimon) > 255. Which need 30s to complete sending garp messages. To save the testing time, the only way is reduce the miimon number. Something like 30 (num_grat_arp) * 100 (peer_notify_delay) / 10 (miimon) > 255. To save more time, the 50 num_grat_arp testing could be removed. The arp_validate_test also need to check the mii_status, which sleep too long. Use slowwait to save some time. For other connection checkings, make sure active slave changed first. Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com> Link: https://lore.kernel.org/r/20240205130048.282087-4-liuhangbin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions