]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 07:08:53 +0000 (23:08 -0800)
commit679bfe2c27793878f775664b2ddb0ccc5026474e
treea0247d3f7b0dd58356a93a90d15da4913d010178
parent3fe1bf1f90bf6692fddeee240c7c30faaea365ee
bnxt_en: Disable MSIX before re-reserving NQs/CMPL rings.

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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c