• M
    bnxt_en: Disable MSIX before re-reserving NQs/CMPL rings. · 4cd197bf
    Michael Chan 提交于
    [ 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: NMichael Chan <michael.chan@broadcom.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    Signed-off-by: NSasha Levin <sashal@kernel.org>
    4cd197bf
bnxt.c 237.1 KB