Skip to contentSkip to conversation

net: dsa: remove definition of struct dsa_switch_driver

PATCH Applied Heiner Kallweit 3 participants 4 messages Nov 12, 2025 – Nov 14, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index 67762fdaf..d7845e83c 100644
@@ -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
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 27 lines · Heiner Kallweit

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
index 67762fdaf..d7845e83c 100644
@@ -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?

#2 lore raw
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.

---
 include/net/dsa.h | 5 -----
 1 file changed, 5 deletions(-)
include/net/dsa.h +0 -5
index 67762fdaf..d7845e83c 100644
@@ -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...

Quoted 3 lines

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.

#3 lore raw
In reply to Heiner Kallweit
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.

---
 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