mlxsw: spectrum_router: Extract a helper from mlxsw_sp_port_vlan_router_join()
authorPetr Machata <petrm@nvidia.com>
Mon, 12 Jun 2023 15:31:00 +0000 (17:31 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Wed, 14 Jun 2023 11:12:20 +0000 (13:12 +0200)
commite0db883b6949bd0b5b221893e30afd5f838783b1
tree97bb16a21a8eaf7dbeb0d36158cffd7a15592902
parent2bddad9ec65a925da4ab4f73a9377d80540ca67b
mlxsw: spectrum_router: Extract a helper from mlxsw_sp_port_vlan_router_join()

Split out of mlxsw_sp_port_vlan_router_join() the part that checks for RIF
and dispatches to __mlxsw_sp_port_vlan_router_join(), leaving it as wrapper
that just manages the router lock.

The new function, mlxsw_sp_port_vlan_router_join_existing(), will be useful
as an atom in later patches.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c