net/bnx2x: fix MSIX vector and VF resource counts
authorCharles (Chas) Williams <ciwillia@brocade.com>
Fri, 10 Jun 2016 22:18:52 +0000 (18:18 -0400)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 21 Jun 2016 10:09:16 +0000 (12:09 +0200)
commit3754101cd74cc11830314270b3d75efd51a94d66
tree0bd7ea77eaf93bed20ab1cb01d8dcff87c1acc16
parent17a064531a613d6b7fdc98710bcd4a7796cae025
net/bnx2x: fix MSIX vector and VF resource counts

If MSIX is available, the vector count given by the table size is one
less than the actual count.  This count also limits the receive and
transmit queue resources the VF can support.

Fixes: 540a211084a7 ("bnx2x: driver core")

Signed-off-by: Charles (Chas) Williams <ciwillia@brocade.com>
Acked-by: Harish Patil <harish.patil@qlogic.com>
drivers/net/bnx2x/bnx2x.c