diff options
author | Manish Rangankar <mrangankar@marvell.com> | 2020-04-07 23:43:29 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-04-13 21:44:20 -0400 |
commit | cf9e672dd85561a0fb7e5595b4e40efa291fc59b (patch) | |
tree | b10836e710ed18303690f1f65800bd101c274319 /drivers/scsi/qedi/qedi_main.c | |
parent | 2e612fab05112d9e40add3c3cb75a0e86967d53c (diff) | |
download | linux-next-cf9e672dd85561a0fb7e5595b4e40efa291fc59b.tar.gz |
scsi: qedi: Use correct msix count for fastpath vectors
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>
Diffstat (limited to 'drivers/scsi/qedi/qedi_main.c')
-rw-r--r-- | drivers/scsi/qedi/qedi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c index 2fe114074455..f1d998c5f540 100644 --- a/drivers/scsi/qedi/qedi_main.c +++ b/drivers/scsi/qedi/qedi_main.c @@ -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); |