diff options
author | Vikas Chaudhary <vikas.chaudhary@qlogic.com> | 2010-04-28 02:08:11 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-05-02 15:39:20 -0400 |
commit | 065aa1b4db63c7fa68a3e889510c4e63404a1ac7 (patch) | |
tree | 11a19a7faf1ef71d0a8f45f385b87c8235155f64 /drivers/scsi/qla4xxx/ql4_def.h | |
parent | 2a49a78ed3c8d7c8319595270110c69f99c61a74 (diff) |
[SCSI] qla4xxx: set device state as per Link UP and LINK DOWN
Link Down -> Mark all devices missing
Previously, the driver took no action on a Link Down,
and waited for the I/O on a dead connection to timeout
in the firmware before marking the DDB missing.
Link Up -> Mark all devices online
F/W will do auto login to all the devices only once.
After that its the responsibility of the driver to
relogin to devices whenever there is :
* Any sort of connection failure or
* KATO expires indicating target has logged out or
* I/O times out etc.
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: Karen Higgins <karen.higgins@qlogic.com>
Signed-off-by: Ravi Anand <ravi.anand@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_def.h')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_def.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_def.h b/drivers/scsi/qla4xxx/ql4_def.h index 3175709d486..347a7c8b53e 100644 --- a/drivers/scsi/qla4xxx/ql4_def.h +++ b/drivers/scsi/qla4xxx/ql4_def.h | |||
@@ -310,6 +310,7 @@ struct scsi_qla_host { | |||
310 | #define DPC_ISNS_RESTART 7 /* 0x00000080 */ | 310 | #define DPC_ISNS_RESTART 7 /* 0x00000080 */ |
311 | #define DPC_AEN 9 /* 0x00000200 */ | 311 | #define DPC_AEN 9 /* 0x00000200 */ |
312 | #define DPC_GET_DHCP_IP_ADDR 15 /* 0x00008000 */ | 312 | #define DPC_GET_DHCP_IP_ADDR 15 /* 0x00008000 */ |
313 | #define DPC_LINK_CHANGED 18 /* 0x00040000 */ | ||
313 | 314 | ||
314 | struct Scsi_Host *host; /* pointer to host data */ | 315 | struct Scsi_Host *host; /* pointer to host data */ |
315 | uint32_t tot_ddbs; | 316 | uint32_t tot_ddbs; |