scsi: qedf: Add change_queue_depth member to scsi_host_template().
authorChad Dupuis <chad.dupuis@cavium.com>
Wed, 31 May 2017 13:34:01 +0000 (06:34 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 00:48:06 +0000 (20:48 -0400)
Add the change_queue_depth member to our SCSI host template so the queue
depth of devices attached to qedf can be changed dynamically.

Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_main.c

index ed4bca1231a2d2f5b0cd45cd865a7f70aef73dbd..5842676e3b71ce30cdbbc0065630109bc5a2722a 100644 (file)
@@ -722,6 +722,7 @@ static struct scsi_host_template qedf_host_template = {
        .dma_boundary = QED_HW_DMA_BOUNDARY,
        .sg_tablesize = QEDF_MAX_BDS_PER_CMD,
        .can_queue = FCOE_PARAMS_NUM_TASKS,
+       .change_queue_depth = scsi_change_queue_depth,
 };
 
 static int qedf_get_paged_crc_eof(struct sk_buff *skb, int tlen)