OSDN Git Service

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)
commit6ce966fd2671899a48037abe7bf1df80a5adf029
tree24a27d24deff7eefc676a33912e0c2f3075705c6
parentc12ecc2305648822970002871230979359edb2c0
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