mlxsw: spectrum_router: Pass struct mlxsw_sp_rif_params to fid_get
authorPetr Machata <petrm@nvidia.com>
Thu, 13 Jul 2023 16:15:25 +0000 (18:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jul 2023 09:20:15 +0000 (10:20 +0100)
commit5ca9f42caf8103a5b51cbe78777f7df972cc6263
treecd498b183b7d5e4601000329227d6515aafecea2
parent352be882deda87d30b5f6249994e2ab2749e5106
mlxsw: spectrum_router: Pass struct mlxsw_sp_rif_params to fid_get

The fid_get callback is called to allocate a FID for the newly-created RIF.
In a following patch, the fid_get implementation for VLANs will be modified
to take the VLAN ID from the parameters instead of deducing it from the
netdevice. To that end, propagate the RIF parameters to the fid_get
callback.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c