diff options
author | Petr Machata <petrm@mellanox.com> | 2018-05-24 16:27:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-24 22:26:19 -0400 |
commit | 91bac7f9977a5d481f1a750c613727089d7cabc0 (patch) | |
tree | 02e4a24989da2ddb2f1f8582b8b520a5a89064e4 /tools/testing/selftests/net/forwarding/mirror_topo_lib.sh | |
parent | d5ea2bfc806a92bdeeed9a16e6dddfe44ebc37ec (diff) |
selftests: forwarding: Add $h3's clsact to mirror_topo_lib.sh
Having a clsact qdisc on $h3 is useful in several tests, and will be
useful in more tests to come. Move the registration from all the tests
that need it into the topology file itself.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/forwarding/mirror_topo_lib.sh')
-rw-r--r-- | tools/testing/selftests/net/forwarding/mirror_topo_lib.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/mirror_topo_lib.sh b/tools/testing/selftests/net/forwarding/mirror_topo_lib.sh index 5b7879726bfb..04979e5962e7 100644 --- a/tools/testing/selftests/net/forwarding/mirror_topo_lib.sh +++ b/tools/testing/selftests/net/forwarding/mirror_topo_lib.sh @@ -46,10 +46,12 @@ mirror_topo_h2_destroy() mirror_topo_h3_create() { simple_if_init $h3 + tc qdisc add dev $h3 clsact } mirror_topo_h3_destroy() { + tc qdisc del dev $h3 clsact simple_if_fini $h3 } |