mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-17 20:26:49 +00:00
selftests: mlxsw: Adjust test regarding VID 1
Previous patches made it possible to create VLAN devices with VID 1 over mlxsw ports. Adjust the test to verify such an operation succeeds. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Petr Machata <petrm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d8a1f7ab2c
commit
29b1e34efd
1 changed files with 8 additions and 5 deletions
|
|
@ -255,15 +255,18 @@ bridge_vlan_flags_test()
|
||||||
|
|
||||||
vlan_1_test()
|
vlan_1_test()
|
||||||
{
|
{
|
||||||
# Test that VLAN 1 cannot be configured, as it is used internally for
|
# Test that VLAN 1 can be configured over mlxsw ports. In the past it
|
||||||
# untagged traffic. See commit 47bf9df2e820 ("mlxsw: spectrum: Forbid
|
# was used internally for untagged traffic. See commit 47bf9df2e820
|
||||||
# creation of VLAN 1 over port/LAG") for more details
|
# ("mlxsw: spectrum: Forbid creation of VLAN 1 over port/LAG") for more
|
||||||
|
# details
|
||||||
RET=0
|
RET=0
|
||||||
|
|
||||||
ip link add link $swp1 name $swp1.1 type vlan id 1 &> /dev/null
|
ip link add link $swp1 name $swp1.1 type vlan id 1
|
||||||
check_fail $? "managed to create vlan 1 when should not"
|
check_err $? "did not manage to create vlan 1 when should"
|
||||||
|
|
||||||
log_test "vlan 1"
|
log_test "vlan 1"
|
||||||
|
|
||||||
|
ip link del dev $swp1.1
|
||||||
}
|
}
|
||||||
|
|
||||||
lag_bridge_upper_test()
|
lag_bridge_upper_test()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue