diff options
author | Mohamad Haj Yahia <mohamad@mellanox.com> | 2016-09-09 17:35:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-11 07:21:49 +0300 |
commit | 6b6adee3dad25bbe568ee24fc843372d02fb425f (patch) | |
tree | f2cc288c029b1372227fe31b09150c120bb8836f /include/linux/sizes.h | |
parent | d62292e85028e553943a285cb6006de0f17dea1e (diff) | |
download | linux-6b6adee3dad25bbe568ee24fc843372d02fb425f.tar.xz |
net/mlx5: SRIOV core code refactoring
Simplify the code and makes it look modular and symmetric.
Split sriov enable/disable to two levels: device level and pci level.
When user enable/disable sriov (via sriov_configure driver callback) we
will enable/disable both device and pci sriov.
When driver load/unload we will enable/disable (on demand) only device
sriov while keeping the PCI sriov enabled for next driver load.
On internal/pci error, VFs will be kept enabled on PCI and the reset
is done only in device level.
Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/sizes.h')
0 files changed, 0 insertions, 0 deletions