]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Unblock setting vid 0 for VFs through the uplink rep
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 1 Jan 2019 10:44:52 +0000 (12:44 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 25 Jan 2019 20:00:29 +0000 (12:00 -0800)
commit91eb864fad9c32402b09c23bae84b595ba42858e
tree24a27d24deff7eefc676a33912e0c2f3075705c6
parent4c13ab8247d91b7f61da44fc568d9dd928511b1a
net/mlx5e: Unblock setting vid 0 for VFs through the uplink rep

It turns out that libvirt uses 0-vid as a default if no vlan was
set for the guest (which is the case for switchdev mode) and errs
if we disallow that:

error: Failed to start domain vm75
error: Cannot set interface MAC/vlanid to 6a:66:2d:48:92:c2/0 \
for ifname enp59s0f0 vf 0: Operation not supported

So allow this in order not to break existing systems.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reported-by: Maor Dickman <maord@mellanox.com>
Reviewed-by: Gavi Teitz <gavi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c