mlxsw: spectrum_router: Remove unused functions
Subsystems (3)
PATCH 1/1 mlxsw: spectrum_router: Remove unused functions
From: "Dr. David Alan Gilbert" <[email protected]>
mlxsw_sp_ipip_lb_ul_vr_id() has been unused since 2020's commit acde33bf7319 ("mlxsw: spectrum_router: Reduce mlxsw_sp_ipip_fib_entry_op_gre4()")
mlxsw_sp_rif_exists() has been unused since 2023's
commit 49c3a615d382 ("mlxsw: spectrum_router: Replay MACVLANs when RIF is made")
mlxsw_sp_rif_vid() has been unused since 2023's
commit a5b52692e693 ("mlxsw: spectrum_switchdev: Manage RIFs on PVID change")
Remove them.
--- .../net/ethernet/mellanox/mlxsw/spectrum.h | 3 -- .../ethernet/mellanox/mlxsw/spectrum_router.c | 48 ------------------- .../ethernet/mellanox/mlxsw/spectrum_router.h | 1 - 3 files changed, 52 deletions(-)
drivers/net/ethernet/mellanox/mlxsw/spectrum.h +0 -3
@@ -754,9 +754,6 @@ void mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);void mlxsw_sp_rif_destroy_by_dev (struct mlxsw_sp *mlxsw_sp,struct net_device *dev); -bool mlxsw_sp_rif_exists (struct mlxsw_sp *mlxsw_sp, -const struct net_device *dev); -u16 mlxsw_sp_rif_vid (struct mlxsw_sp *mlxsw_sp,const struct net_device *dev);u16 mlxsw_sp_router_port (const struct mlxsw_sp *mlxsw_sp); int mlxsw_sp_router_nve_promote_decap(struct mlxsw_sp *mlxsw_sp, u32 ul_tb_id, enum mlxsw_sp_l3proto ul_proto,
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +0 -48
60 lines not on this page · raw message
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h +0 -1
@@ -90,7 +90,6 @@ struct mlxsw_sp_ipip_entry;struct mlxsw_sp_rif *mlxsw_sp_rif_by_index (const struct mlxsw_sp *mlxsw_sp,u16 rif_index);u16 mlxsw_sp_ipip_lb_rif_index (const struct mlxsw_sp_rif_ipip_lb *rif); -u16 mlxsw_sp_ipip_lb_ul_vr_id (const struct mlxsw_sp_rif_ipip_lb *rif);u16 mlxsw_sp_ipip_lb_ul_rif_id (const struct mlxsw_sp_rif_ipip_lb *lb_rif);u32 mlxsw_sp_ipip_dev_ul_tb_id (const struct net_device *ol_dev);int mlxsw_sp_rif_dev_ifindex (const struct mlxsw_sp_rif *rif);
Signature · 1 line
2.48.1
Quoted 10 lines · On Mon, Feb 03, 2025 at 07:01:41PM +0000, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
mlxsw_sp_ipip_lb_ul_vr_id()has been unused since 2020's commitacde33bf7319("mlxsw:spectrum_router: Reducemlxsw_sp_ipip_fib_entry_op_gre4()")
mlxsw_sp_rif_exists()has been unused since 2023's
commit49c3a615d382("mlxsw:spectrum_router: Replay MACVLANs when RIF is made")
Quoted 7 lines
mlxsw_sp_rif_vid()has been unused since 2023's
commita5b52692e693("mlxsw:spectrum_switchdev: Manage RIFs on PVID change")Remove them.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Thanks
Quoted 10 lines · [email protected] writes:
From: "Dr. David Alan Gilbert" <[email protected]>
mlxsw_sp_ipip_lb_ul_vr_id()has been unused since 2020's commitacde33bf7319("mlxsw:spectrum_router: Reducemlxsw_sp_ipip_fib_entry_op_gre4()")
mlxsw_sp_rif_exists()has been unused since 2023's
commit49c3a615d382("mlxsw:spectrum_router: Replay MACVLANs when RIF is made")
Quoted 7 lines
mlxsw_sp_rif_vid()has been unused since 2023's
commita5b52692e693("mlxsw:spectrum_switchdev: Manage RIFs on PVID change")Remove them.
Signed-off-by Dr. David Alan Gilbert <[email protected]>
Thanks!
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 11 lines · On Mon, 3 Feb 2025 19:01:41 +0000 you wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
mlxsw_sp_ipip_lb_ul_vr_id()has been unused since 2020's commitacde33bf7319("mlxsw:spectrum_router: Reducemlxsw_sp_ipip_fib_entry_op_gre4()")
mlxsw_sp_rif_exists()has been unused since 2023's
commit49c3a615d382("mlxsw:spectrum_router: Replay MACVLANs when RIF is made")[...]
Here is the summary with links:
- [net-next] mlxsw: spectrum_router: Remove unused functions
https://git.kernel.org/netdev/net-next/c/626b36727609
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html