diff options
author | Sathya Perla <sathya.perla@emulex.com> | 2012-05-08 19:41:24 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-11 03:33:00 (GMT) |
commit | 39f1d94d300a58eb3e9b851d077cada4e2fa9d46 (patch) | |
tree | 59e712ce3241535273ebef657b4bb74f1dfec34f /drivers/net/ethernet/emulex/benet/be_hw.h | |
parent | d301e3256866bfd3ae3093aeb43d3ca9570d758e (diff) | |
download | linux-fsl-qoriq-39f1d94d300a58eb3e9b851d077cada4e2fa9d46.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/emulex/benet/be_hw.h')
-rw-r--r-- | drivers/net/ethernet/emulex/benet/be_hw.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_hw.h b/drivers/net/ethernet/emulex/benet/be_hw.h index 0949aa6..f38b58c 100644 --- a/drivers/net/ethernet/emulex/benet/be_hw.h +++ b/drivers/net/ethernet/emulex/benet/be_hw.h @@ -58,6 +58,8 @@ #define SLI_PORT_CONTROL_IP_MASK 0x08000000 +#define PCICFG_CUST_SCRATCHPAD_CSR 0x1EC + /********* Memory BAR register ************/ #define PCICFG_MEMBAR_CTRL_INT_CTRL_OFFSET 0xfc /* Host Interrupt Enable, if set interrupts are enabled although "PCI Interrupt |