aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qedi/qedi.h
diff options
context:
space:
mode:
authorManish Rangankar <mrangankar@marvell.com>2020-09-08 02:56:50 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2020-09-08 22:40:20 -0400
commit3f8ad0072bf73f3555cd04b7ee7ac09034d9ee18 (patch)
treeefda25020c29ea6832e54d216c6b4f37666bbb26 /drivers/scsi/qedi/qedi.h
parentscsi: docs: Remove obsolete scsi typedef text from scsi_mid_low_api (diff)
downloadlinux-dev-3f8ad0072bf73f3555cd04b7ee7ac09034d9ee18.tar.xz
linux-dev-3f8ad0072bf73f3555cd04b7ee7ac09034d9ee18.zip
scsi: qedi: Use qed count from set_fp_int in msix allocation
To avoid unnecessary vector allocation when the number of fast-path queues is less then available msix vectors, use return count from module qed->set_fp_int. Link: https://lore.kernel.org/r/20200908095657.26821-2-mrangankar@marvell.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.h')
-rw-r--r--drivers/scsi/qedi/qedi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qedi/qedi.h b/drivers/scsi/qedi/qedi.h
index 9498279ae80d..9c19ec9dc682 100644
--- a/drivers/scsi/qedi/qedi.h
+++ b/drivers/scsi/qedi/qedi.h
@@ -305,6 +305,7 @@ struct qedi_ctx {
u32 max_sqes;
u8 num_queues;
u32 max_active_conns;
+ s32 msix_count;
struct iscsi_cid_queue cid_que;
struct qedi_endpoint **ep_tbl;