|
@@ -4433,6 +4433,11 @@ static int mlxsw_sp_netdevice_port_upper_event(struct net_device *lower_dev,
|
|
|
NL_SET_ERR_MSG_MOD(extack, "Can not put a VLAN on an OVS port");
|
|
NL_SET_ERR_MSG_MOD(extack, "Can not put a VLAN on an OVS port");
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (is_vlan_dev(upper_dev) &&
|
|
|
|
|
+ vlan_dev_vlan_id(upper_dev) == 1) {
|
|
|
|
|
+ NL_SET_ERR_MSG_MOD(extack, "Creating a VLAN device with VID 1 is unsupported: VLAN 1 carries untagged traffic");
|
|
|
|
|
+ return -EINVAL;
|
|
|
|
|
+ }
|
|
|
break;
|
|
break;
|
|
|
case NETDEV_CHANGEUPPER:
|
|
case NETDEV_CHANGEUPPER:
|
|
|
upper_dev = info->upper_dev;
|
|
upper_dev = info->upper_dev;
|