scsi: qedi: Use correct msix count for fastpath vectors
authorManish Rangankar <mrangankar@marvell.com>
Wed, 8 Apr 2020 06:43:29 +0000 (23:43 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 14 Apr 2020 01:44:20 +0000 (21:44 -0400)
Use MSI-X count provided by qed.

Link: https://lore.kernel.org/r/20200408064332.19377-4-mrangankar@marvell.com
Reviewed-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi_main.c

index 2fe1140..f1d998c 100644 (file)
@@ -1360,7 +1360,7 @@ static int qedi_request_msix_irq(struct qedi_ctx *qedi)
        u16 idx;
 
        cpu = cpumask_first(cpu_online_mask);
-       for (i = 0; i < MIN_NUM_CPUS_MSIX(qedi); i++) {
+       for (i = 0; i < qedi->int_info.msix_cnt; i++) {
                idx = i * qedi->dev_info.common.num_hwfns +
                          qedi_ops->common->get_affin_hwfn_idx(qedi->cdev);