mlxsw: spectrum_router: Compare only trees which are in use during tree get
authorJiri Pirko <jiri@mellanox.com>
Tue, 25 Oct 2016 09:25:57 +0000 (11:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Oct 2016 17:43:56 +0000 (13:43 -0400)
commit8b99becdc89ee7635137725e9fa76f304bb168f5
treec36e71c6b5f4743cb3af7f1b47172356962667b6
parent2083d36790e328a364896a2833fbedbf6e1d2317
mlxsw: spectrum_router: Compare only trees which are in use during tree get

Only trees which are in use should be compared to requested prefix usage.

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