mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
selftests: forwarding: Add a test for VLAN deletion
Add a VLAN on a bridge port, delete it and make sure the PVID VLAN is not affected. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
674bed5df4
commit
4fabf3bf93
1 changed files with 14 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# SPDX-License-Identifier: GPL-2.0
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
|
|
||||||
ALL_TESTS="ping_ipv4 ping_ipv6 learning flooding"
|
ALL_TESTS="ping_ipv4 ping_ipv6 learning flooding vlan_deletion"
|
||||||
NUM_NETIFS=4
|
NUM_NETIFS=4
|
||||||
CHECK_TC="yes"
|
CHECK_TC="yes"
|
||||||
source lib.sh
|
source lib.sh
|
||||||
|
@ -96,6 +96,19 @@ flooding()
|
||||||
flood_test $swp2 $h1 $h2
|
flood_test $swp2 $h1 $h2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vlan_deletion()
|
||||||
|
{
|
||||||
|
# Test that the deletion of a VLAN on a bridge port does not affect
|
||||||
|
# the PVID VLAN
|
||||||
|
log_info "Add and delete a VLAN on bridge port $swp1"
|
||||||
|
|
||||||
|
bridge vlan add vid 10 dev $swp1
|
||||||
|
bridge vlan del vid 10 dev $swp1
|
||||||
|
|
||||||
|
ping_ipv4
|
||||||
|
ping_ipv6
|
||||||
|
}
|
||||||
|
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
setup_prepare
|
setup_prepare
|
||||||
|
|
Loading…
Add table
Reference in a new issue