[openwrt/openwrt] realtek: enable needs_standalone_vlan_filtering on DSA driver in 5.15

LEDE Commits lede-commits at lists.infradead.org
Thu Dec 15 12:02:35 PST 2022


svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/69055a54121a95c4e0e9dd409d8b78d19743c221

commit 69055a54121a95c4e0e9dd409d8b78d19743c221
Author: INAGAKI Hiroshi <musashino.open at gmail.com>
AuthorDate: Mon Apr 4 21:25:20 2022 +0900

    realtek: enable needs_standalone_vlan_filtering on DSA driver in 5.15
    
    To configure VLAN 0, enable needs_standalone_vlan_filtering option
    of dsa_switch struct.
    
    Signed-off-by: INAGAKI Hiroshi <musashino.open at gmail.com>
---
 target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/common.c b/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/common.c
index e86ff9ccdf..b5afed0ef5 100644
--- a/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/common.c
+++ b/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx/common.c
@@ -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);




More information about the lede-commits mailing list