public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCHv5 net-next 0/4] selftests: bonding: use slowwait when waiting
@ 2024-02-05 13:00 Hangbin Liu
  2024-02-05 13:00 ` [PATCHv5 net-next 1/4] selftests/net/forwarding: add slowwait functions Hangbin Liu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Hangbin Liu @ 2024-02-05 13:00 UTC (permalink / raw)
  To: netdev
  Cc: Jay Vosburgh, David S . Miller, Jakub Kicinski, Paolo Abeni,
	Eric Dumazet, Liang Li, Przemek Kitszel, Hangbin Liu

There are a lot waitings in bonding tests use sleep. Let's replace them with
slowwait(added in the first patch). This could save much test time. e.g.

bond-break-lacpdu-tx.sh
  before: 0m16.346s
  after: 0m2.824s

bond_options.sh
  before: 9m25.299s
  after: 6m14.439s

bond-lladdr-target.sh
  before: 0m7.090s
  after: 0m6.148s

In total, we could save about 180 seconds.

v5: Drop the changes in bond_macvlan test (Jakub Kicinski)
v4: Make sure the client could reach to macvlan2 (Jakub Kicinski)
v3: Rebase to latest net-next
v2: Reduce slowwait sleep time to 0.1 (Paolo Abeni)
    Reduce num_grat_arp() miimon time (Paolo Abeni)
    Use slowwait for ping result in lag_lib.sh

Hangbin Liu (4):
  selftests/net/forwarding: add slowwait functions
  selftests: bonding: use tc filter to check if LACP was sent
  selftests: bonding: reduce garp_test/arp_validate test time
  selftests: bonding: use slowwait instead of hard code sleep

 .../net/bonding/bond-break-lacpdu-tx.sh       | 19 +++++-----
 .../drivers/net/bonding/bond-lladdr-target.sh | 21 ++++++++--
 .../drivers/net/bonding/bond_options.sh       | 38 ++++++++++++++-----
 .../drivers/net/bonding/bond_topo_2d1c.sh     |  6 +--
 .../selftests/drivers/net/bonding/lag_lib.sh  |  7 ++--
 tools/testing/selftests/net/forwarding/lib.sh | 35 +++++++++++++++++
 6 files changed, 97 insertions(+), 29 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-08  2:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05 13:00 [PATCHv5 net-next 0/4] selftests: bonding: use slowwait when waiting Hangbin Liu
2024-02-05 13:00 ` [PATCHv5 net-next 1/4] selftests/net/forwarding: add slowwait functions Hangbin Liu
2024-02-05 13:00 ` [PATCHv5 net-next 2/4] selftests: bonding: use tc filter to check if LACP was sent Hangbin Liu
2024-02-05 13:00 ` [PATCHv5 net-next 3/4] selftests: bonding: reduce garp_test/arp_validate test time Hangbin Liu
2024-02-05 13:00 ` [PATCHv5 net-next 4/4] selftests: bonding: use slowwait instead of hard code sleep Hangbin Liu
2024-02-08  2:40 ` [PATCHv5 net-next 0/4] selftests: bonding: use slowwait when waiting patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox