diff options
author | Ido Schimmel <idosch@mellanox.com> | 2017-06-08 08:47:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-08 20:33:40 +0200 |
commit | d7a60306c6812801ccc0a7d12aa0975121b9aa58 (patch) | |
tree | 30a87253dfdb91d9d5fa8debcdfb89d1272041f8 /drivers/net/ethernet/mellanox/mlxsw | |
parent | Merge branch 'net-Remove-support-from-bridge-bypass-for-mlxsw-rocker-drivers' (diff) | |
download | linux-d7a60306c6812801ccc0a7d12aa0975121b9aa58.tar.xz linux-d7a60306c6812801ccc0a7d12aa0975121b9aa58.zip |
mlxsw: spectrum_router: Mark only first LPM tree as reserved
In new firmware versions (that we can now enforce via
request_firmware()), only the first LPM tree is reserved and not the
first two as in older versions.
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c index 20061058801e..700cc8c6aa5b 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c @@ -591,7 +591,7 @@ static int mlxsw_sp_lpm_tree_put(struct mlxsw_sp *mlxsw_sp, return 0; } -#define MLXSW_SP_LPM_TREE_MIN 2 /* trees 0 and 1 are reserved */ +#define MLXSW_SP_LPM_TREE_MIN 1 /* tree 0 is reserved */ static int mlxsw_sp_lpm_init(struct mlxsw_sp *mlxsw_sp) { |