]> asedeno.scripts.mit.edu Git - linux.git/commit
bnxt_en: Cap the msix vector with the max completion rings.
authorMichael Chan <michael.chan@broadcom.com>
Tue, 4 Apr 2017 22:14:17 +0000 (18:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Apr 2017 13:24:26 +0000 (06:24 -0700)
commit68a946bb81e07ed0e59a99e0c068d091ed42cc1b
treea37ea7149a4eb66b7a8335a55a12685738c7ea4e
parent932dbf83ba18bdb871e0c03a4ffdd9785f7a9c07
bnxt_en: Cap the msix vector with the max completion rings.

The current code enables up to the maximum MSIX vectors in the PCIE
config space without considering the max completion rings available.
An MSIX vector is only useful when it has an associated completion
ring, so it is better to cap it.

Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c