]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40466565de81fbc1bfc53d2d54c126516dcdc0c1
treec36e71c6b5f4743cb3af7f1b47172356962667b6
parent8e8d62d56e9ea8d87bcc7eaa1dd9998220374424
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: 91d705c27aa0 ("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