aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/mlxsw/extack.sh
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@mellanox.com>2020-02-17 16:29:36 +0200
committerDavid S. Miller <davem@davemloft.net>2020-02-17 14:42:53 -0800
commit745a7ea72dc25ffe8c89a2a8d19022243dc8dadc (patch)
treee40122dbe93080763f67b85128710869f644fd1d /tools/testing/selftests/drivers/net/mlxsw/extack.sh
parentmlxsw: spectrum: Reduce dependency between bridge and router code (diff)
downloadlinux-dev-745a7ea72dc25ffe8c89a2a8d19022243dc8dadc.tar.xz
linux-dev-745a7ea72dc25ffe8c89a2a8d19022243dc8dadc.zip
selftests: mlxsw: Remove deprecated test
The addition of a VLAN on a bridge slave prompts the driver to have the local port in question join the FID corresponding to this VLAN. Before recent changes, the operation of joining the FID would also mean that the driver would enable VXLAN tunneling if a VXLAN device was also member in the VLAN. In case the configuration of the VXLAN tunnel was not supported, an extack error would be returned. Since the operation of joining the FID no longer means that VXLAN tunneling is potentially enabled, the test is no longer relevant. Remove it. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/drivers/net/mlxsw/extack.sh')
-rwxr-xr-xtools/testing/selftests/drivers/net/mlxsw/extack.sh30
1 files changed, 0 insertions, 30 deletions
diff --git a/tools/testing/selftests/drivers/net/mlxsw/extack.sh b/tools/testing/selftests/drivers/net/mlxsw/extack.sh
index d72d8488a3b2..d9e02624c70b 100755
--- a/tools/testing/selftests/drivers/net/mlxsw/extack.sh
+++ b/tools/testing/selftests/drivers/net/mlxsw/extack.sh
@@ -8,7 +8,6 @@ lib_dir=$(dirname $0)/../../../net/forwarding
ALL_TESTS="
netdev_pre_up_test
vxlan_vlan_add_test
- port_vlan_add_test
"
NUM_NETIFS=2
source $lib_dir/lib.sh
@@ -106,35 +105,6 @@ vxlan_vlan_add_test()
ip link del dev br1
}
-port_vlan_add_test()
-{
- RET=0
-
- 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 192.0.2.17 remote 192.0.2.18 \
- 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
setup_prepare