Skip to content

selftests: bonding: use slowwait when waiting

Hangbin Liu netdev 5 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 0 repliesApplied 4/4
  2. v44 patches 2 repliesSuperseded
  3. v34 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches1 replySuperseded
v14 patches6 repliesSuperseded

Patches in v5 All 4 applied

#Subject and filesSizeRepliesApplied
1/4selftests/net/forwarding: add slowwait functionstools/testing/selftests/net/forwarding/lib.sh+35 -00 repliesApplied
2/4selftests: bonding: use tc filter to check if LACP was senttools/testing/selftests/drivers/net/bonding/bond-break-lacpdu-tx.sh+9 -100 repliesApplied
3/4selftests: bonding: reduce garp_test/arp_validate test timetools/testing/selftests/drivers/net/bonding/bond_options.sh+29 -90 repliesApplied
4/4selftests: bonding: use slowwait instead of hard code sleeptools/testing/selftests/drivers/net/bonding/bond-lladdr-target.sh tools/testing/selftests/drivers/net/bonding/bond_topo_2d1c.sh tools/testing/selftests/drivers/net/bonding/lag_lib.sh+24 -100 repliesApplied

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchPrzemek Kitszel
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCHv5 net-next 0/4] selftests: bonding: use slowwait when waiting

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(-)
Signature · 1 line
2.43.0