- 积分
- 919
贡献3555
飞刀1374 FD
注册时间2020-9-4
在线时间328 小时
|
发表于 2021-7-16 16:48:25
|
显示全部楼层
修改一下驱动:
+++ 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: %d\n",
ocelot_port->vid);
return -EBUSY;
- }
+ }*/
ocelot_port->vid = vid;
} |
|