History

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().

Parav Pandit committed 7 years ago

Commit d886aba1 parent 5ccf2772 files · +4 −19Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/mlx5/driver.h+0−1
@@ -468,7 +468,6 @@ struct mlx5_vf_context { · 467 unmodified lines
468struct mlx5_core_sriov {468struct mlx5_core_sriov {
469 struct mlx5_vf_context *vfs_ctx;469 struct mlx5_vf_context *vfs_ctx;
470 int num_vfs;470 int num_vfs;
471 int enabled_vfs;
472 u16 max_vfs;471 u16 max_vfs;
473};472};
474 473

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t