aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
diff options
context:
space:
mode:
authorYuval Mintz <Yuval.Mintz@qlogic.com>2014-08-17 16:47:49 +0300
committerDavid S. Miller <davem@davemloft.net>2014-08-22 12:31:16 -0700
commita345ce71e5c027872ae5a595998717dc856272b1 (patch)
tree0e39ae64ca5d0840445a350f59f4f04582f02ade /drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h
parentbnx2x: Prevent IOV if no entries in CAM (diff)
downloadlinux-dev-a345ce71e5c027872ae5a595998717dc856272b1.tar.xz
linux-dev-a345ce71e5c027872ae5a595998717dc856272b1.zip
bnx2x: Prevent pci_disable_sriov with assigned VFs
Trying to disable sriov when VFs are assigned may lead to all kinds of problems. This patch unifies the call in the driver to pci_disable_sriov() and prevents them if some of the PF's child VFs are marked as assigned. [Notice this is a bad scenario either way; User should not reach a point where the OS tries to disable SRIOV when a VF is assigned - but currently there's no way of preventing the user from doing so, and the ill-effect for the driver is smaller this way] Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h')
0 files changed, 0 insertions, 0 deletions