scsi: qedf: Use same logic for SCSI host reset and FC lip_reset.
authorChad Dupuis <chad.dupuis@cavium.com>
Wed, 31 May 2017 13:33:55 +0000 (06:33 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 00:48:06 +0000 (20:48 -0400)
commit5cf446d2aa4b92a1c1f079416e17fa9edee76ef8
tree8c8134230fadae9f5ba290109a729c5d94addc6c
parent2b82a62f52e647944446a3b85a4131b279c078fb
scsi: qedf: Use same logic for SCSI host reset and FC lip_reset.

We should be using the same logic to do a soft reset of the FCoE function
whether it is initiated via sg_reset or the fc_host issue_lip attribute.
Refactor the host reset and fcoe reset handlers to use the preferred logic
which is currently contained in qedf_eh_host_reset().

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