net: dsa: remove definition of struct dsa_switch_driver
Subsystems (3)
PATCH 1/1 net: dsa: remove definition of struct dsa_switch_driver
Since 93e86b3bc842 ("net: dsa: Remove legacy probing support") this struct has no user any longer.
--- include/net/dsa.h | 5 ----- 1 file changed, 5 deletions(-)
include/net/dsa.h +0 -5
@@ -1312,11 +1312,6 @@ static inline int dsa_devlink_port_to_port(struct devlink_port *port)return port->index; } -struct dsa_switch_driver { -struct list_head list; -const struct dsa_switch_ops *ops; -}; -bool dsa_fdb_present_in_other_db (struct dsa_switch *ds,int port,const unsigned char *addr,u16 vid,struct dsa_db db);
Signature · 1 line
2.51.2
Quoted 27 lines · Heiner Kallweit
Since
93e86b3bc842("net: dsa: Remove legacy probing support") this struct has no user any longer.Signed-off-by Heiner Kallweit <[email protected]>--- include/net/dsa.h | 5 ----- 1 file changed, 5 deletions(-)include/net/dsa.h +0
-5@@ -1312,11 +1312,6 @@ static inline int dsa_devlink_port_to_port(struct devlink_port *port)return port->index; } -struct dsa_switch_driver { -struct list_head list; -const struct dsa_switch_ops *ops; -}; -bool dsa_fdb_present_in_other_db (struct dsa_switch *ds,int port,const unsigned char *addr,u16 vid,struct dsa_db db);Signature · 1 line
2.51.2
Thanks. I think I also have this patch in some git tree on some computer somewhere...
Are you working on something, or did you just randomly notice it?
Quoted 32 lines · Vladimir Oltean
Quoted 27 lines · Heiner Kallweit
Since
93e86b3bc842("net: dsa: Remove legacy probing support") this struct has no user any longer.Signed-off-by Heiner Kallweit <[email protected]>--- include/net/dsa.h | 5 ----- 1 file changed, 5 deletions(-)include/net/dsa.h +0
-5@@ -1312,11 +1312,6 @@ static inline int dsa_devlink_port_to_port(struct devlink_port *port)return port->index; } -struct dsa_switch_driver { -struct list_head list; -const struct dsa_switch_ops *ops; -}; -bool dsa_fdb_present_in_other_db (struct dsa_switch *ds,int port,const unsigned char *addr,u16 vid,struct dsa_db db);Signature · 1 line
2.51.2Thanks. I think I also have this patch in some git tree on some computer somewhere...
Quoted 3 lines
Reviewed-by Vladimir Oltean <[email protected]>Are you working on something, or did you just randomly notice it?
When working on following patch
https://patchwork.kernel.org/project/netdevbpf/patch/[email protected]/
I came across 34b31da486a5 which refers to struct dsa_switch_driver in its commmit message.
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 7 lines · On Wed, 12 Nov 2025 21:46:24 +0100 you wrote:
Since
93e86b3bc842("net: dsa: Remove legacy probing support") this struct has no user any longer.Signed-off-by Heiner Kallweit <[email protected]>--- include/net/dsa.h | 5 ----- 1 file changed, 5 deletions(-)
Here is the summary with links:
- [net-next] net: dsa: remove definition of struct dsa_switch_driver
https://git.kernel.org/netdev/net-next/c/4aa73c6051cb
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html