Message ID | 1456412749-23878-1-git-send-email-aardelean@riverbed.com |
---|---|
State | Changes Requested |
Delegated to: | Rafał Miłecki |
Headers | show |
diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c index 676e301..a6bde8f 100644 --- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c @@ -590,6 +590,8 @@ static int b53_global_set_vlan_enable(struct switch_dev *dev, struct b53_device *priv = sw_to_b53(dev); priv->enable_vlan = val->value.i; + /* Reset VLANs whenever calling this ; this would set the system to a deterministic state */ + memset(priv->vlans, 0, sizeof(*priv->vlans) * dev->vlans); return 0; }