]> asedeno.scripts.mit.edu Git - linux.git/commit
mlxsw: spectrum_router: Publish mlxsw_sp_rif_find_by_dev()
authorPetr Machata <petrm@mellanox.com>
Mon, 25 Jun 2018 07:48:15 +0000 (10:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 09:05:22 +0000 (18:05 +0900)
commit0c41292bc5ffb4e514652731dfeda1552e2df120
tree53bbe60d989926f37d5f57dba940a335a560b29a
parente6f1960ae6c736b7bb65a012809eb7c3654b42d7
mlxsw: spectrum_router: Publish mlxsw_sp_rif_find_by_dev()

In order to guard against removal of a PVID for which a FID was
allocated, spectrum_switchdev needs to first determine whether there is
a RIF associated with a given bridge. To that end, publish a preexisting
function mlxsw_sp_rif_find_by_dev().

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h