diff mbox series

[3/6] qedi: Use correct msix count for fastpath vectors.

Message ID 20200408064332.19377-4-mrangankar@marvell.com (mailing list archive)
State Mainlined
Commit cf9e672dd85561a0fb7e5595b4e40efa291fc59b
Headers show
Series Miscellaneous fixes | expand

Commit Message

Manish Rangankar April 8, 2020, 6:43 a.m. UTC
For proper allocation between slow-path and fast-path
use msix count provided by qed.

Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
---
 drivers/scsi/qedi/qedi_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c
index 2fe1140..f1d998c 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);