summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Rangankar <mrangankar@marvell.com>2019-05-26 15:22:28 +0300
committerDavid S. Miller <davem@davemloft.net>2019-05-26 23:04:12 +0300
commit13b99d3d39074eb88507ebb9dd4fa147a63bc53a (patch)
tree23854c1e2b058af1c4dfb8260ccae46dba73a57d
parent3576e99e08217f291290ac62431c7e330ac111c4 (diff)
downloadlinux-13b99d3d39074eb88507ebb9dd4fa147a63bc53a.tar.xz
Revert "scsi: qedi: Allocate IRQs based on msix_cnt"
Always request for number of irqs equals to number of queues. This reverts commit 1a291bce5eaf5374627d337157544aa6499ce34a. Signed-off-by: Manish Rangankar <mrangankar@marvell.com> Signed-off-by: Ariel Elior <ariel.elior@marvell.com> Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/scsi/qedi/qedi_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c
index e5db9a9954dc..f07e0814a657 100644
--- a/drivers/scsi/qedi/qedi_main.c
+++ b/drivers/scsi/qedi/qedi_main.c
@@ -1336,7 +1336,7 @@ static int qedi_request_msix_irq(struct qedi_ctx *qedi)
int i, rc, cpu;
cpu = cpumask_first(cpu_online_mask);
- for (i = 0; i < qedi->int_info.msix_cnt; i++) {
+ for (i = 0; i < MIN_NUM_CPUS_MSIX(qedi); i++) {
rc = request_irq(qedi->int_info.msix[i].vector,
qedi_msix_handler, 0, "qedi",
&qedi->fp_array[i]);