[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240201062954.421145-1-liuhangbin@gmail.com>
Date: Thu, 1 Feb 2024 14:29:50 +0800
From: Hangbin Liu <liuhangbin@...il.com>
To: netdev@...r.kernel.org
Cc: Jay Vosburgh <j.vosburgh@...il.com>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Eric Dumazet <edumazet@...gle.com>,
Liang Li <liali@...hat.com>,
Przemek Kitszel <przemyslaw.kitszel@...el.com>,
Hangbin Liu <liuhangbin@...il.com>
Subject: [PATCHv2 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
bond_macvlan.sh
before: 0m44.999s
after: 0m26.468s
In total, we could save about 200 seconds.
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_macvlan.sh | 5 +--
.../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 | 36 ++++++++++++++++++
7 files changed, 100 insertions(+), 32 deletions(-)
--
2.43.0
Powered by blists - more mailing lists