修改一下驱动:
+++ b/drivers/net/ethernet/mscc/ocelot.c
@@ -238,12 +238,12 @@ static int ocelot_port_set_native_vlan(struct ocelot *ocelot, int port,
if (ocelot_port->vid != vid) {
/* Always permit deleting the native VLAN (vid = 0) */
- if (ocelot_port->vid && vid) {
+ /*if (ocelot_port->vid && vid) {
dev_err(ocelot->dev,
"Port already has a native VLAN: %dn",
ocelot_port->vid);
return -EBUSY;
- }
+ }*/
ocelot_port->vid = vid;
}
修改一下驱动:
+++ b/drivers/net/ethernet/mscc/ocelot.c
@@ -238,12 +238,12 @@ static int ocelot_port_set_native_vlan(struct ocelot *ocelot, int port,
if (ocelot_port->vid != vid) {
/* Always permit deleting the native VLAN (vid = 0) */
- if (ocelot_port->vid && vid) {
+ /*if (ocelot_port->vid && vid) {
dev_err(ocelot->dev,
"Port already has a native VLAN: %dn",
ocelot_port->vid);
return -EBUSY;
- }
+ }*/
ocelot_port->vid = vid;
}
举报