]> git.baikalelectronics.ru Git - kernel.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)
commit6b829efe4bee584f6c68726a04192cdb7a25abf6
treea37ea7149a4eb66b7a8335a55a12685738c7ea4e
parentf41116e23fc8ebf81af0cb95116504eb6ba0e34f
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