scsi: qedi: Add ep_state for login completion on un-reachable targets
authorManish Rangankar <mrangankar@marvell.com>
Wed, 9 Jan 2019 09:39:07 +0000 (01:39 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 12 Jan 2019 03:24:09 +0000 (22:24 -0500)
commit34a2ce887668db9dda4b56e6f155c49ac13f3e54
treee2162b830d555223c715f282b80d5819f826e6f1
parentce9e7bce43526626f7cffe2e657953997870197e
scsi: qedi: Add ep_state for login completion on un-reachable targets

When the driver finds invalid destination MAC for the first un-reachable
target, and before completes the PATH_REQ operation, set new ep_state to
OFFLDCONN_NONE so that as part of driver ep_poll mechanism, the upper
open-iscsi layer is notified to complete the login process on the first
un-reachable target and thus proceed login to other reachable targets.

Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi_iscsi.c
drivers/scsi/qedi/qedi_iscsi.h