diff mbox series

[V2] qedf: Update the max_id value in host structure.

Message ID 20210602104653.17278-1-jhasan@marvell.com
State New
Headers show
Series [V2] qedf: Update the max_id value in host structure. | expand

Commit Message

Javed Hasan June 2, 2021, 10:46 a.m. UTC
From: Saurav Kashyap <skashyap@marvell.com>

  The max_id value defines the max id of the target that stack
  can scan during manual scanning through scsi_host sysfs interface.
  If default value is 8, update the value to the max sessions driver support.

Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Signed-off-by: Javed Hasan <jhasan@marvell.com>
---
Changes in v2:
 - Added description and signed-off.
---
 drivers/scsi/qedf/qedf_main.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Martin K. Petersen June 8, 2021, 1:30 a.m. UTC | #1
Javed,

> The max_id value defines the max id of the target that stack can scan

> during manual scanning through scsi_host sysfs interface.  If default

> value is 8, update the value to the max sessions driver support.


Applied to 5.14/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering
Martin K. Petersen June 16, 2021, 3:48 a.m. UTC | #2
On Wed, 2 Jun 2021 03:46:53 -0700, Javed Hasan wrote:

>   The max_id value defines the max id of the target that stack

>   can scan during manual scanning through scsi_host sysfs interface.

>   If default value is 8, update the value to the max sessions driver support.


Applied to 5.14/scsi-queue, thanks!

[1/1] qedf: Update the max_id value in host structure.
      https://git.kernel.org/mkp/scsi/c/1b67f3d74e45

-- 
Martin K. Petersen	Oracle Linux Engineering
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)) {