Skip to content

Commit

Permalink
selftests: bridge_vlan_mcast: Delete qdiscs during cleanup
Browse files Browse the repository at this point in the history
The qdiscs are added during setup, but not deleted during cleanup,
resulting in the following error messages:

 # ./bridge_vlan_mcast.sh
 [...]
 # ./bridge_vlan_mcast.sh
 Error: Exclusivity flag on, cannot modify.
 Error: Exclusivity flag on, cannot modify.

Solve by deleting the qdiscs during cleanup.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ido Schimmel authored and David S. Miller committed Oct 19, 2022
1 parent 5cacb2c commit 6fb1faa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/testing/selftests/net/forwarding/bridge_vlan_mcast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ switch_create()

switch_destroy()
{
tc qdisc del dev $swp2 clsact
tc qdisc del dev $swp1 clsact

ip link set dev $swp2 down
ip link set dev $swp1 down

Expand Down

0 comments on commit 6fb1faa

Please sign in to comment.