Commit a285d66
mlxsw: spectrum_router: Split nexthop finalization to two stages
Nexthop finalization consists of two steps: the part where the offload is
removed, because the backing RIF is now gone; and the part where the
association to the RIF is severed.
Extract from mlxsw_sp_nexthop_type_fini() a helper that covers the
unoffloading part, mlxsw_sp_nexthop_type_rif_gone(), so that it can later
be called independently.
Note that this swaps around the ordering of mlxsw_sp_nexthop_ipip_fini()
vs. mlxsw_sp_nexthop_rif_fini(). The current ordering is more of a
historical happenstance than a conscious decision. The two cleanups do not
depend on each other, and this change should have no observable effects.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Danielle Ratson <danieller@nvidia.com>
Link: https://lore.kernel.org/r/7134559534c5f5c4807c3a1569fae56f8887e763.1687438411.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent bdc0b78 commit a285d66
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4369 | 4369 | | |
4370 | 4370 | | |
4371 | 4371 | | |
4372 | | - | |
4373 | | - | |
| 4372 | + | |
| 4373 | + | |
4374 | 4374 | | |
4375 | 4375 | | |
4376 | 4376 | | |
4377 | 4377 | | |
4378 | | - | |
4379 | 4378 | | |
4380 | 4379 | | |
4381 | | - | |
4382 | 4380 | | |
4383 | 4381 | | |
4384 | 4382 | | |
4385 | 4383 | | |
4386 | 4384 | | |
| 4385 | + | |
| 4386 | + | |
| 4387 | + | |
| 4388 | + | |
| 4389 | + | |
| 4390 | + | |
| 4391 | + | |
4387 | 4392 | | |
4388 | 4393 | | |
4389 | 4394 | | |
| |||
0 commit comments