realtek: enable needs_standalone_vlan_filtering on DSA driver in 5.15
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Mon, 4 Apr 2022 12:25:20 +0000 (21:25 +0900)
committerSander Vanheule <sander@svanheule.net>
Thu, 15 Dec 2022 19:54:03 +0000 (20:54 +0100)
To configure VLAN 0, enable needs_standalone_vlan_filtering option
of dsa_switch struct.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/common.c

index e86ff9ccdfed066733807312cf8e17c43cbe5e23..b5afed0ef5531ad3a0791050a7bfdf04f89356a4 100644 (file)
@@ -1466,6 +1466,7 @@ static int __init rtl83xx_sw_probe(struct platform_device *pdev)
        priv->ds->dev = dev;
        priv->ds->priv = priv;
        priv->ds->ops = &rtl83xx_switch_ops;
+       priv->ds->needs_standalone_vlan_filtering = true;
        priv->dev = dev;
 
        mutex_init(&priv->reg_mutex);