Message ID | 20210320230445.2484150-1-olteanv@gmail.com |
---|---|
State | New |
Headers | show |
Series | [net-next] Revert "net: dsa: sja1105: Clear VLAN filtering offload netdev feature" | expand |
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Sun, 21 Mar 2021 01:04:45 +0200 you wrote: > From: Vladimir Oltean <vladimir.oltean@nxp.com> > > This reverts commit e9bf96943b408e6c99dd13fb01cb907335787c61. > > The topic of the reverted patch is the support for switches with global > VLAN filtering, added by commit 061f6a505ac3 ("net: dsa: Add > ndo_vlan_rx_{add, kill}_vid implementation"). Be there a switch with 4 > ports swp0 -> swp3, and the following setup: > > [...] Here is the summary with links: - [net-next] Revert "net: dsa: sja1105: Clear VLAN filtering offload netdev feature" https://git.kernel.org/netdev/net-next/c/a1e6f641e307 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
diff --git a/drivers/net/dsa/sja1105/sja1105_main.c b/drivers/net/dsa/sja1105/sja1105_main.c index 51ea104c63bb..d9c198ca0197 100644 --- a/drivers/net/dsa/sja1105/sja1105_main.c +++ b/drivers/net/dsa/sja1105/sja1105_main.c @@ -3049,21 +3049,6 @@ static void sja1105_teardown(struct dsa_switch *ds) } } -static int sja1105_port_enable(struct dsa_switch *ds, int port, - struct phy_device *phy) -{ - struct net_device *slave; - - if (!dsa_is_user_port(ds, port)) - return 0; - - slave = dsa_to_port(ds, port)->slave; - - slave->features &= ~NETIF_F_HW_VLAN_CTAG_FILTER; - - return 0; -} - static void sja1105_port_disable(struct dsa_switch *ds, int port) { struct sja1105_private *priv = ds->priv; @@ -3491,7 +3476,6 @@ static const struct dsa_switch_ops sja1105_switch_ops = { .get_ethtool_stats = sja1105_get_ethtool_stats, .get_sset_count = sja1105_get_sset_count, .get_ts_info = sja1105_get_ts_info, - .port_enable = sja1105_port_enable, .port_disable = sja1105_port_disable, .port_fdb_dump = sja1105_fdb_dump, .port_fdb_add = sja1105_fdb_add,