]> www.infradead.org Git - users/jedix/linux-maple.git/commit
be2net: avoid disabling sriov while VFs are assigned
authorSathya Perla <sathya.perla@emulex.com>
Fri, 24 Aug 2012 12:08:10 +0000 (17:38 +0530)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 27 Aug 2012 14:06:27 +0000 (07:06 -0700)
commit2bd63a993aaf08f1461340f92c28ceeba3a75d0d
tree38292f32bdcda0393c2585d5dc0161039e471b20
parent2cbbfcb103ab86ec8e4191c2ba005073df6dd42d
be2net: avoid disabling sriov while VFs are assigned

Calling pci_disable_sriov() while VFs are assigned to VMs causes
kernel panic. This patch uses PCI_DEV_FLAGS_ASSIGNED bit state of the
VF's pci_dev to avoid this. Also, the unconditional function reset cmd
issued on a PF probe can delete the VF configuration for the
previously enabled VFs. A scratchpad register is now used to issue a
function reset only when needed (i.e., in a crash dump scenario.)

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be.h
drivers/net/benet/be_hw.h
drivers/net/benet/be_main.c