diff mbox series

[net-next,v2,1/2] net: dsa: loop: Configure VLANs while not filtering

Message ID 20200819043218.19285-2-f.fainelli@gmail.com
State Accepted
Delegated to: David Miller
Headers show
Series net: dsa: loop: Expose VLAN table through devlink | expand

Commit Message

Florian Fainelli Aug. 19, 2020, 4:32 a.m. UTC
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>
---
 drivers/net/dsa/dsa_loop.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Andrew Lunn Aug. 19, 2020, 1:16 p.m. UTC | #1
On Tue, Aug 18, 2020 at 09:32:17PM -0700, Florian Fainelli wrote:
> 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>

    Andrew
diff mbox series

Patch

diff --git a/drivers/net/dsa/dsa_loop.c b/drivers/net/dsa/dsa_loop.c
index eb600b3dbf26..e6fc4fec9cfc 100644
--- a/drivers/net/dsa/dsa_loop.c
+++ b/drivers/net/dsa/dsa_loop.c
@@ -290,6 +290,7 @@  static int dsa_loop_drv_probe(struct mdio_device *mdiodev)
 	ds->dev = &mdiodev->dev;
 	ds->ops = &dsa_loop_driver;
 	ds->priv = ps;
+	ds->configure_vlan_while_not_filtering = true;
 	ps->bus = mdiodev->bus;
 
 	dev_set_drvdata(&mdiodev->dev, ds);