mlxsw: spectrum_router: Save requested prefix bitlist when creating tree
authorJiri Pirko <jiri@mellanox.com>
Tue, 25 Oct 2016 09:25:56 +0000 (11:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Oct 2016 17:43:56 +0000 (13:43 -0400)
commit2083d36790e328a364896a2833fbedbf6e1d2317
treeae4477cbf13ea57823ff8f18387fda083584943a
parent9ee7837449b3d6f0fcf9132c6b5e5aaa58cc67d4
mlxsw: spectrum_router: Save requested prefix bitlist when creating tree

Currently, the prefix bitlist is not saved for LPM trees, causing the
compare to always fail which causes the tree to be destroyed and created
for every inserted and removed FIB entry. So fix this by saving
the bitlist as it should have been done from the very beginning.

Fixes: 53342023eed9 ("mlxsw: spectrum_router: Implement LPM trees management")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c