]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Use correct tree index for binding
authorJiri Pirko <jiri@mellanox.com>
Thu, 20 Oct 2016 14:05:42 +0000 (16:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2016 15:11:10 +0000 (11:11 -0400)
commit45a6c0e06d9bd762b7967a37913248d8da064c13
tree06e6e8a2626aa5ec9d852dd8e6e8d82ebf4963bb
parented6d6ed4568189354d51f31a71cb5c6657c19ac0
mlxsw: spectrum_router: Use correct tree index for binding

By a mistake, there is tree index 0 passed to RALTB. Should be
MLXSW_SP_LPM_TREE_MIN.

Fixes: d3a93b4c07d9 ("mlxsw: spectrum_router: Use FIB notifications instead of switchdev calls")
Reported-by: Yotam Gigi <yotamg@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