]> asedeno.scripts.mit.edu Git - linux.git/commit
mlxsw: spectrum_router: Pass FIB node to LPM tree unlink function
authorIdo Schimmel <idosch@mellanox.com>
Mon, 22 Jan 2018 08:17:41 +0000 (09:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2018 14:22:11 +0000 (09:22 -0500)
commit3aad95df920ede6a487ef244a5d3dbd6a8e68c5b
tree3878922bbfadf20620d45c0ae51bb676c39dc460
parent4fd003125f66a6c8ef6add934fac7cacdbbe509c
mlxsw: spectrum_router: Pass FIB node to LPM tree unlink function

Next patch will try to optimize the LPM tree and make sure only used
prefix lengths are present, to avoid unnecessary look-ups.

Pass the currently removed FIB node to the unlinking function as its
associated prefix length is a potential candidate for removal from the
tree.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c