]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Clear bw_share upon VF disable
authorVladyslav Tarasiuk <vladyslavt@nvidia.com>
Mon, 2 Nov 2020 11:45:24 +0000 (13:45 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 17 Nov 2020 19:50:53 +0000 (11:50 -0800)
commit71bacf30911c27b3194e608a2fa0eec22e2696e9
tree98629bfae3879484c256d5b0e6727cd2de34b3ea
parent05f2d2adbb97827f0634d8df796883e8660ed5cf
net/mlx5: Clear bw_share upon VF disable

Currently, if user disables VFs with some min and max rates configured,
they are cleared. But QoS data is not cleared and restored upon next VF
enable placing limits on minimal rate for given VF, when user expects
none.

To match cleared vport->info struct with QoS-related min and max rates
upon VF disable, clear vport->qos struct too.

Fixes: a0f7465da326 ("net/mlx5: Clear VF's configuration on disabling SRIOV")
Signed-off-by: Vladyslav Tarasiuk <vladyslavt@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c