summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2019-06-28 22:36:06 +0000
committerSaeed Mahameed <saeedm@mellanox.com>2019-07-01 16:40:30 -0700
commitd886aba677a0a75ad7fdb06e08418b481e09b036 (patch)
tree494fc66837231ec2e1e43f538ee1e0423c717191 /include/linux/mlx5
parent5ccf2770e83bf8739f0a7c8bed9186d7e5d2ecbc (diff)
downloadlinux-d886aba677a0a75ad7fdb06e08418b481e09b036.tar.gz
linux-d886aba677a0a75ad7fdb06e08418b481e09b036.tar.bz2
linux-d886aba677a0a75ad7fdb06e08418b481e09b036.zip
net/mlx5: Reduce dependency on enabled_vfs counter and num_vfs
While enabling SR-IOV, PCI core already checks that if SR-IOV is already enabled, it returns failure error code. Hence, remove such duplicate check from mlx5_core driver. While at it, make mlx5_device_disable_sriov() to perform cleanup of VFs in reverse order of mlx5_device_enable_sriov(). Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r--include/linux/mlx5/driver.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 155b8cbe1cc9..7658a4908431 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -468,7 +468,6 @@ struct mlx5_vf_context {
struct mlx5_core_sriov {
struct mlx5_vf_context *vfs_ctx;
int num_vfs;
- int enabled_vfs;
u16 max_vfs;
};