vxge: Fixed MSIX interrupt configuration.
authorSreenivasa Honnur <Sreenivasa.Honnur@neterion.com>
Sun, 28 Mar 2010 22:11:41 +0000 (22:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2010 23:57:22 +0000 (16:57 -0700)
commitb59c94571a6593c71a78bbcebb42982099154938
tree32e6cfca72e2b24ebb2f399f68637bca54e6163a
parent4c5f3b210f53e315e460d539655a8d14595c5d1a
vxge: Fixed MSIX interrupt configuration.

- Fixed MSIX interrupt configuration to support non contiguous vpaths in
  functions. Four msi-x vectors are reserved per vpath internal to the chip.
  In all, there are 68 msi-x vectors for the 17 vpaths in the chip. In the
  multi function configurations, non-contiguous vpaths are configured to
  represent a function. For instance vpaths 0 and 8 can be configured to
  represent function zero.

- If pci_enable_msix fails for the requested vectors, try with a lesser number
  vectors by reducing the vpath count.

Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com>
Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxge/vxge-main.c
drivers/net/vxge/vxge-main.h
drivers/net/vxge/vxge-traffic.c
drivers/net/vxge/vxge-traffic.h