will be in the maintainance mode on Wednesday June 29th 01:00 - 10:00 (UTC+1). Repositories is read only during the maintainance.

Commit 06a2fc8f authored by Petr Machata's avatar Petr Machata Committed by David S. Miller
Browse files

selftests: mlxsw: extack: Test VLAN add on a port device

Test mapping a VLAN at a port device such that on the same VLAN, there
already is an unoffloadable VXLAN device.
Signed-off-by: default avatarPetr Machata <>
Acked-by: default avatarJiri Pirko <>
Reviewed-by: default avatarIdo Schimmel <>
Signed-off-by: default avatarDavid S. Miller <>
parent b498dc7d
......@@ -8,6 +8,7 @@ lib_dir=$(dirname $0)/../../../net/forwarding
source $lib_dir/
......@@ -105,6 +106,35 @@ vxlan_vlan_add_test()
ip link del dev br1
ip link add name br1 up type bridge vlan_filtering 1 mcast_snooping 0
# Unsupported configuration: mlxsw demands VXLAN with "noudpcsum".
ip link add name vx1 up type vxlan id 1000 \
local remote \
dstport 4789 tos inherit ttl 100
ip link set dev $swp1 master br1
check_err $?
bridge vlan del dev $swp1 vid 1
ip link set dev vx1 master br1
check_err $?
bridge vlan add dev $swp1 vid 1 pvid untagged 2>&1 >/dev/null \
| grep -q mlxsw_spectrum
check_err $?
log_test "extack - map VLAN at port"
ip link del dev vx1
ip link del dev br1
trap cleanup EXIT
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment