mlxsw: spectrum_router: Use router.lb_crif instead of .lb_rif_index
authorPetr Machata <petrm@nvidia.com>
Thu, 22 Jun 2023 13:33:07 +0000 (15:33 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 24 Jun 2023 02:01:56 +0000 (19:01 -0700)
commitbdc0b78e79a641fbbb928a9e5da56dbdd42ff674
tree06f2aac19ce535ab3e6ff8f7f15c10e851a9b9cd
parentaa21242b07a8cde689bb6aedcbc224eda9646d9f
mlxsw: spectrum_router: Use router.lb_crif instead of .lb_rif_index

A previous patch added a pointer to loopback CRIF to the router data
structure. That makes the loopback RIF index redundant, as everything
necessary can be derived from the CRIF. Drop the field and adjust the code
accordingly.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Link: https://lore.kernel.org/r/8637bf959bc5b6c9d5184b9bd8a0cd53c5132835.1687438411.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h