Commit bdc0b78
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>1 parent aa21242 commit bdc0b78
2 files changed
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3563 | 3563 | | |
3564 | 3564 | | |
3565 | 3565 | | |
3566 | | - | |
| 3566 | + | |
3567 | 3567 | | |
3568 | 3568 | | |
3569 | 3569 | | |
| |||
4530 | 4530 | | |
4531 | 4531 | | |
4532 | 4532 | | |
4533 | | - | |
| 4533 | + | |
4534 | 4534 | | |
4535 | 4535 | | |
4536 | 4536 | | |
| |||
4846 | 4846 | | |
4847 | 4847 | | |
4848 | 4848 | | |
4849 | | - | |
4850 | | - | |
4851 | 4849 | | |
4852 | 4850 | | |
4853 | 4851 | | |
4854 | 4852 | | |
4855 | 4853 | | |
4856 | 4854 | | |
4857 | | - | |
| 4855 | + | |
4858 | 4856 | | |
4859 | 4857 | | |
4860 | 4858 | | |
| |||
10784 | 10782 | | |
10785 | 10783 | | |
10786 | 10784 | | |
10787 | | - | |
10788 | | - | |
10789 | 10785 | | |
10790 | 10786 | | |
10791 | 10787 | | |
| |||
10795 | 10791 | | |
10796 | 10792 | | |
10797 | 10793 | | |
10798 | | - | |
| 10794 | + | |
10799 | 10795 | | |
10800 | 10796 | | |
10801 | 10797 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
0 commit comments