mlxsw: spectrum_router: Add mlxsw_sp_rif_fid()
authorPetr Machata <petrm@mellanox.com>
Mon, 25 Jun 2018 07:48:16 +0000 (10:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jun 2018 09:05:22 +0000 (18:05 +0900)
commita28b1ebef72b19bf40fbceacdf33212d820728dd
tree23e001a82d17f51949fb4ccb86d76ec7c1d649af
parent0c41292bc5ffb4e514652731dfeda1552e2df120
mlxsw: spectrum_router: Add mlxsw_sp_rif_fid()

In order to allow querying of the VID for which a RIF was created, add
a new function that returns a FID for a given RIF.

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