]> www.infradead.org Git - users/jedix/linux-maple.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)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Tue, 11 Jul 2017 00:04:09 +0000 (17:04 -0700)
commit10d92a0573a6e41cbe648befa3a83a5a1b8ee4df
treea344c11630e34b84f3925955c05f7ff4c15e6022
parent478f1984f788804090ffe40d0bb8f483089c9bea
bnxt_en: Cap the msix vector with the max completion rings.

Orabug: 264025332632559926366387

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>
(cherry picked from commit 68a946bb81e07ed0e59a99e0c068d091ed42cc1b)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c