diff mbox series

qedf: Update the max_id value in host structure.

Message ID 20210528003206.22709-1-jhasan@marvell.com (mailing list archive)
State Superseded
Headers show
Series qedf: Update the max_id value in host structure. | expand

Commit Message

Javed Hasan May 28, 2021, 12:32 a.m. UTC
From: Saurav Kashyap <saurav.kashyap@cavium.com>

 - Update the max_id value in host structure.

Signed-off-by: Saurav Kashyap <saurav.kashyap@cavium.com>
---
 drivers/scsi/qedf/qedf_main.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Martin K. Petersen June 2, 2021, 2:46 a.m. UTC | #1
Hi Javed!

> From: Saurav Kashyap <saurav.kashyap@cavium.com>
>
>  - Update the max_id value in host structure.
>
> Signed-off-by: Saurav Kashyap <saurav.kashyap@cavium.com>

This patch is missing your Signed-off-by: as well as a description of
why max_id needs to be updated.

Thanks!
diff mbox series

Patch

diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index c5f37277..322046f4 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -2089,6 +2089,7 @@  static int qedf_vport_create(struct fc_vport *vport, bool disabled)
 	vn_port->host->max_lun = qedf_max_lun;
 	vn_port->host->sg_tablesize = QEDF_MAX_BDS_PER_CMD;
 	vn_port->host->max_cmd_len = QEDF_MAX_CDB_LEN;
+	vn_port->host->max_id = QEDF_MAX_SESSIONS;
 
 	rc = scsi_add_host(vn_port->host, &vport->dev);
 	if (rc) {
@@ -3855,6 +3856,7 @@  static int __qedf_probe(struct pci_dev *pdev, int mode)
 		host->transportt = qedf_fc_transport_template;
 		host->max_lun = qedf_max_lun;
 		host->max_cmd_len = QEDF_MAX_CDB_LEN;
+		host->max_id = QEDF_MAX_SESSIONS;
 #ifdef USE_BLK_MQ
 		host->use_blk_mq = qedf_use_blk_mq;
 		if (shost_use_blk_mq(host)) {