bnx2x: Fix config when SR-IOV and iSCSI are enabled
authorAriel Elior <ariele@broadcom.com>
Sun, 20 Oct 2013 14:51:30 +0000 (16:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Oct 2013 22:31:35 +0000 (18:31 -0400)
commit0907f34c372766e2822ffd0ec290c69199835faa
tree6e5e0dde2a429c54fcaabc1b1e86adba52af8259
parent6802516edd1bfa6dfaea7949046d173e656ee6d3
bnx2x: Fix config when SR-IOV and iSCSI are enabled

Starting with commit b9871bc "bnx2x: VF RSS support - PF side", if a PF will
have SR-IOV supported in its PCI configuration space, storage drivers will not
work for that interface.

This patch fixes the resource calculation to allow such a configuration to
properly work.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h