net: dsa: loop: Configure VLANs while not filtering

Since this is a mock-up driver with no real data path for now, but we
will have one at some point, enable VLANs while not filtering.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Florian Fainelli 2020-08-18 21:32:17 -07:00 committed by David S. Miller
parent e3ec1e8ca0
commit f0408ca45a
1 changed files with 1 additions and 0 deletions

View File

@ -290,6 +290,7 @@ static int dsa_loop_drv_probe(struct mdio_device *mdiodev)
ds->dev = &mdiodev->dev; ds->dev = &mdiodev->dev;
ds->ops = &dsa_loop_driver; ds->ops = &dsa_loop_driver;
ds->priv = ps; ds->priv = ps;
ds->configure_vlan_while_not_filtering = true;
ps->bus = mdiodev->bus; ps->bus = mdiodev->bus;
dev_set_drvdata(&mdiodev->dev, ds); dev_set_drvdata(&mdiodev->dev, ds);