qlcnic: Do not disable SR-IOV when VFs are assigned to VMs
authorManish Chopra <manish.chopra@qlogic.com>
Mon, 14 Apr 2014 14:02:23 +0000 (10:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2014 17:43:53 +0000 (13:43 -0400)
commit696f1943a1538bb448c5bf55a18793ad410da00b
tree83dca5a5591e1fdb07979f76e6394262dc7d3a97
parent4f0302277718810494f8c618f28d1edb33af859a
qlcnic: Do not disable SR-IOV when VFs are assigned to VMs

o While disabling SR-IOV when VFs are assigned to VMs causes host crash
  so return -EPERM when user request to disable SR-IOV using pci sysfs in
  case of VFs are assigned to VMs.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_pf.c