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>
        RET=0
 
        mirror_install $swp1 $direction $tundev "matchall $tcflags"
-       tc qdisc add dev $h3 clsact
        tc filter add dev $h3 ingress pref 77 prot $prot \
                flower ip_proto 0x2f src_mac $swp3mac dst_mac $h3mac \
                action pass
        mirror_test v$h1 192.0.2.1 192.0.2.2 $h3 77 10
 
        tc filter del dev $h3 ingress pref 77
-       tc qdisc del dev $h3 clsact
        mirror_uninstall $swp1 $direction
 
        log_test "$direction $what: envelope MAC ($tcflags)"
 
        RET=0
 
        mirror_install $swp1 ingress $tundev "matchall $tcflags"
-       tc qdisc add dev $h3 clsact
        tc filter add dev $h3 ingress pref 77 prot $prot \
                flower ip_ttl 50 action pass
 
 
        ip link set dev $tundev type $type ttl 100
        tc filter del dev $h3 ingress pref 77
-       tc qdisc del dev $h3 clsact
        mirror_uninstall $swp1 ingress
 
        log_test "$what: TTL change ($tcflags)"
 
 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
 }