Commit 5a2ba25
net/mlx5e: Update max_opened_tc also when channels are closed
max_opened_tc is used for stats, so that potentially non-zero stats
won't disappear when num_tc decreases. However, mlx5e_setup_tc_mqprio
fails to update it in the flow where channels are closed.
This commit fixes it. The new value of priv->channels.params.num_tc is
always checked on exit. In case of errors it will just be the old value,
and in case of success it will be the updated value.
Fixes: 05909ba ("net/mlx5e: Avoid reset netdev stats on configuration changes")
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>1 parent a5bfe6b commit 5a2ba25
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3627 | 3627 | | |
3628 | 3628 | | |
3629 | 3629 | | |
3630 | | - | |
3631 | | - | |
3632 | 3630 | | |
3633 | | - | |
3634 | | - | |
3635 | 3631 | | |
| 3632 | + | |
| 3633 | + | |
3636 | 3634 | | |
3637 | 3635 | | |
3638 | 3636 | | |
| |||
0 commit comments