bnx2x: Correct number of MSI-X vectors for VFs
authorMichal Kalderon <michals@broadcom.com>
Sun, 5 Jan 2014 16:33:51 +0000 (18:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Jan 2014 01:22:24 +0000 (20:22 -0500)
commit89e18ae6e6288deb1940cd16afe4e6983545defa
tree25618f804d4bb43805ee249c1f9c5cf93e3e258c
parente848582cee23f7ab540ec49ab1c7d7f8bfefcd84
bnx2x: Correct number of MSI-X vectors for VFs

Number of VFs in PCIe configuration space is zero-based. Driver incorrectly
sets the number of VFs to be larger by one than what actually is feasible by
HW, which might cause later VFs to fail to allocate their MSI-X interrupts.

Signed-off-by: Michal Kalderon <michals@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c