diff options
author | Aya Levin <ayal@nvidia.com> | 2021-04-21 14:26:31 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-05-19 09:01:46 +0300 |
commit | 5e7923acbd86d0ff29269688d8a9c47ad091dd46 (patch) | |
tree | eeeaf1a5b2f1cce31967999d11a53374bc7c8039 /drivers/vdpa | |
parent | 7d1a3d08c8a6398e7497a98cf3f7b73ea13d9939 (diff) | |
download | linux-5e7923acbd86d0ff29269688d8a9c47ad091dd46.tar.xz |
net/mlx5e: Fix error path of updating netdev queues
Avoid division by zero in the error flow. In the driver TC number can be
either 1 or 8. When TC count is set to 1, driver zero netdev->num_tc.
Hence, need to convert it back from 0 to 1 in the error flow.
Fixes: fa3748775b92 ("net/mlx5e: Handle errors from netif_set_real_num_{tx,rx}_queues")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/vdpa')
0 files changed, 0 insertions, 0 deletions