Skip to content

mlxsw: spectrum_router: Optimize LPM trees

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mlxsw: spectrum_router: Use the nodes list as indication for empty FIBdrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+4 -90 replies
2/3mlxsw: spectrum_router: Pass FIB node to LPM tree unlink functiondrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+6 -40 replies
3/3mlxsw: spectrum_router: Remove unnecessary prefix lengths from LPM treedrivers/net/ethernet/mellanox/mlxsw/spectrum_router.c+125 -1010 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch net-next 0/3] mlxsw: spectrum_router: Optimize LPM trees

From: Jiri Pirko <[email protected]>

Ido says:

This set tries to optimize the structure of the LPM trees used for route lookup by avoiding lookups that are guaranteed not to return a result. This is done by making sure only used prefix lengths are present in the tree.

First two patches are small preparatory steps towards the actual change in the last patch.

Ido Schimmel (3):
mlxsw: spectrum_router: Use the nodes list as indication for empty FIB
mlxsw: spectrum_router: Pass FIB node to LPM tree unlink function
mlxsw: spectrum_router: Remove unnecessary prefix lengths from LPM
tree

 .../net/ethernet/mellanox/mlxsw/spectrum_router.c  | 243 +++++++++++----------
 1 file changed, 132 insertions(+), 111 deletions(-)
Signature · 1 line
2.14.3