diff options
author | Parav Pandit | 2019-03-21 23:51:28 +0100 |
---|---|---|
committer | Saeed Mahameed | 2019-03-22 20:09:29 +0100 |
commit | 88d73849e9737983c20403fe5425e3605196fab2 (patch) | |
tree | 98201c0c76579bbb830826c6254e11651f8aa04b /drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c | |
parent | genetlink: make policy common to family (diff) | |
download | kernel-qcow2-linux-88d73849e9737983c20403fe5425e3605196fab2.tar.gz kernel-qcow2-linux-88d73849e9737983c20403fe5425e3605196fab2.tar.xz kernel-qcow2-linux-88d73849e9737983c20403fe5425e3605196fab2.zip |
net/mlx5: Simplify sriov enable/disable flow
Simplify sriov enable/disable flow for below two checks.
1. PCI core driver allows sriov configuration only on a PF.
This is done in drivers/pci/pci-sysfs.c sriov_attrs_are_visible().
2. PCI core driver allow sriov enablement if the sriov is currently
disabled for for a PF. This is done in drivers/pci/pci-sysfs.c
sriov_numvfs_store().
Hence there is no need for mlx5 driver to duplicate such checks.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c')
0 files changed, 0 insertions, 0 deletions