diff options
author | Maxim Mikityanskiy <maximmi@mellanox.com> | 2021-01-28 15:37:59 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-02-10 11:29:14 +0300 |
commit | c2b2c4d24b40f5981a345fdd40691154ac5b33ac (patch) | |
tree | 63e51d71a82c8ba3b5615ab35ff99451d92610c7 /net/lapb/lapb_out.c | |
parent | 11c2c8fb889d6ee61f268810175818d05ae0323b (diff) | |
download | linux-c2b2c4d24b40f5981a345fdd40691154ac5b33ac.tar.xz |
net/mlx5e: Update max_opened_tc also when channels are closed
[ Upstream commit 5a2ba25a55c4dc0f143567c99aede768b6628ebd ]
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: 05909babce53 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions