diff options
author | Ido Schimmel <idosch@mellanox.com> | 2019-01-08 16:48:08 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-08 16:53:54 -0500 |
commit | 412283eedc138381e24d8c1304a3c5b298c503c4 (patch) | |
tree | 28b0e214c3bc19e9d3a0c36feed9205c52c78204 /tools | |
parent | 457e20d659247a09524e276aed46f19d853701d0 (diff) | |
download | linux-stable-412283eedc138381e24d8c1304a3c5b298c503c4.tar.gz linux-stable-412283eedc138381e24d8c1304a3c5b298c503c4.tar.bz2 linux-stable-412283eedc138381e24d8c1304a3c5b298c503c4.zip |
mlxsw: spectrum_nve: Replace error code with EINVAL
Adding a VLAN on a port can trigger the offload of a VXLAN tunnel which
is already a member in the VLAN. In case the configuration of the VXLAN
is not supported, the driver would return -EOPNOTSUPP.
This is problematic since bridge code does not interpret this as error,
but rather that it should try to setup the VLAN using the 8021q driver
instead of switchdev.
Fixes: d70e42b22dd4 ("mlxsw: spectrum: Enable VxLAN enslavement to VLAN-aware bridges")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions