]> www.infradead.org Git - users/dwmw2/linux.git/commit
bnxt_en: Disable MSIX before re-reserving NQs/CMPL rings.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 16 Dec 2018 23:46:24 +0000 (18:46 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:22 +0000 (20:02 +0100)
commit928dbf6a29a1a1a9626103f742ba2e2116a44045
tree5c24fdcd80ca79256377bab75d557c0ad5e95661
parent8b5518fa39b8f5a38afe8d5e07fbf54e2034b584
bnxt_en: Disable MSIX before re-reserving NQs/CMPL rings.

[ Upstream commit 36d65be9a88052cdfc8524eb591baf0e6c878408 ]

When bringing up a device, the code checks to see if the number of
MSIX has changed.  pci_disable_msix() should be called first before
changing the number of reserved NQs/CMPL rings.  This ensures that
the MSIX vectors associated with the NQs/CMPL rings are still
properly mapped when pci_disable_msix() masks the vectors.

This patch will prevent errors when RDMA support is added for the new
57500 chips.  When the RDMA driver shuts down, the number of NQs is
decreased and we must use the new sequence to prevent MSIX errors.

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