diff options
| author | Ido Schimmel <idosch@mellanox.com> | 2019-04-22 08:08:49 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-04-23 01:09:32 -0400 |
| commit | f1aaeacdae2bc5e8ef7343674b6cb34d516a8110 (patch) | |
| tree | 3cecfbee761d017d74a03333396aa6da75570679 | |
| parent | 51e15a49784cac783b88f458c27293e479db4bb1 (diff) | |
mlxsw: spectrum_buffers: Forbid changing multicast TCs' attributes
Commit e83c045e53d7 ("mlxsw: spectrum_buffers: Configure MC pool")
configured the threshold of the multicast TCs as infinite so that the
admission of multicast packets is only depended on per-switch priority
threshold.
Forbid the user from changing the thresholds of these multicast TCs and
their binding to a different pool.
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c index 3c08816183bc..6e2b701e7036 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c | |||
| @@ -503,6 +503,8 @@ static int mlxsw_sp_sb_prs_init(struct mlxsw_sp *mlxsw_sp, | |||
| 503 | .min_buff = _min_buff, \ | 503 | .min_buff = _min_buff, \ |
| 504 | .max_buff = _max_buff, \ | 504 | .max_buff = _max_buff, \ |
| 505 | .pool_index = MLXSW_SP_SB_POOL_EGR_MC, \ | 505 | .pool_index = MLXSW_SP_SB_POOL_EGR_MC, \ |
| 506 | .freeze_pool = true, \ | ||
| 507 | .freeze_thresh = true, \ | ||
| 506 | } | 508 | } |
| 507 | 509 | ||
| 508 | static const struct mlxsw_sp_sb_cm mlxsw_sp1_sb_cms_ingress[] = { | 510 | static const struct mlxsw_sp_sb_cm mlxsw_sp1_sb_cms_ingress[] = { |
