diff options
author | Tobias Waldekranz <tobias@waldekranz.com> | 2022-02-03 13:16:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-03 17:05:56 +0300 |
commit | 081197591769a7389ef6696bc10f32cd43c0cb6e (patch) | |
tree | d4f7dff649a3dbe1566ec7d9ea6edc2ab2f636d4 /tools/testing/selftests/net/forwarding/bridge_vlan_unaware.sh | |
parent | d352b20f4174a6bd998992329b773ab513232880 (diff) | |
download | linux-081197591769a7389ef6696bc10f32cd43c0cb6e.tar.xz |
selftests: net: bridge: Parameterize ageing timeout
Allow the ageing timeout that is set on bridges to be customized from
forwarding.config. This allows the tests to be run on hardware which
does not support a 10s timeout (e.g. mv88e6xxx).
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/bridge_vlan_unaware.sh')
-rwxr-xr-x | tools/testing/selftests/net/forwarding/bridge_vlan_unaware.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/forwarding/bridge_vlan_unaware.sh b/tools/testing/selftests/net/forwarding/bridge_vlan_unaware.sh index c15c6c85c984..1c8a26046589 100755 --- a/tools/testing/selftests/net/forwarding/bridge_vlan_unaware.sh +++ b/tools/testing/selftests/net/forwarding/bridge_vlan_unaware.sh @@ -27,8 +27,9 @@ h2_destroy() switch_create() { - # 10 Seconds ageing time. - ip link add dev br0 type bridge ageing_time 1000 mcast_snooping 0 + ip link add dev br0 type bridge \ + ageing_time $LOW_AGEING_TIME \ + mcast_snooping 0 ip link set dev $swp1 master br0 ip link set dev $swp2 master br0 |