aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <[email protected]>2021-01-28 12:37:59 +0000
committerSaeed Mahameed <[email protected]>2021-02-02 07:02:02 +0000
commit5a2ba25a55c4dc0f143567c99aede768b6628ebd (patch)
tree2353b73bf751bc5fe40557857ad82743aa13664c /drivers/usb/cdns3/cdns3-imx.c
parentnet/mlx5: Fix leak upon failure of rule creation (diff)
downloadkernel-5a2ba25a55c4dc0f143567c99aede768b6628ebd.tar.gz
kernel-5a2ba25a55c4dc0f143567c99aede768b6628ebd.zip
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: 05909babce53 ("net/mlx5e: Avoid reset netdev stats on configuration changes") Signed-off-by: Maxim Mikityanskiy <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions