]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Adjust test to recent changes
authorIdo Schimmel <idosch@mellanox.com>
Thu, 14 Nov 2019 09:50:57 +0000 (11:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Nov 2019 20:14:38 +0000 (12:14 -0800)
commit132022d9f65df169379167a83272ae0422a5a1a9
treee4b5f252afd4affb12c0b6aaee35d84311e19719
parent3c65780c40e59f83ab8c947a742bab3d5e3a14c9
selftests: mlxsw: Adjust test to recent changes

mlxsw does not support VXLAN devices with a physical device attached and
vetoes such configurations upon enslavement to an offloaded bridge.

Commit b70fe411b5b5 ("vxlan: add adjacent link to limit depth level")
changed the VXLAN device to be an upper of the physical device which
causes mlxsw to veto the creation of the VXLAN device with "Unknown
upper device type".

This is OK as this configuration is not supported, but it prevents us
from testing bad flows involving the enslavement of VXLAN devices with a
physical device to a bridge, regardless if the physical device is an
mlxsw netdev or not.

Adjust the test to use a dummy device as a physical device instead of a
mlxsw netdev.

Fixes: b70fe411b5b5 ("vxlan: add adjacent link to limit depth level")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/vxlan.sh