diff options
author | Jayamohan Kallickal <jayamohank@gmail.com> | 2013-04-05 23:38:30 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-02 11:13:21 -0400 |
commit | 6ea9b3b0337d55c901cea38e2d85103e2268d757 (patch) | |
tree | 8e7829cab6203e5b5b79e3ff135d0b7b28dc533c /drivers/scsi/be2iscsi/be_cmds.h | |
parent | 7ad4dfe187a4ce1eabe7e0c6364e4561dc930564 (diff) |
[SCSI] be2iscsi: Fix the Port Link Status issue
Check the Logical Link status also as part of the port link status.
Signed-off-by: John Soni Jose <sony.john-n@emulex.com>
Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_cmds.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_cmds.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.h b/drivers/scsi/be2iscsi/be_cmds.h index 9b64b3603576..97871cc803d4 100644 --- a/drivers/scsi/be2iscsi/be_cmds.h +++ b/drivers/scsi/be2iscsi/be_cmds.h | |||
@@ -122,7 +122,8 @@ struct be_async_event_trailer { | |||
122 | 122 | ||
123 | enum { | 123 | enum { |
124 | ASYNC_EVENT_LINK_DOWN = 0x0, | 124 | ASYNC_EVENT_LINK_DOWN = 0x0, |
125 | ASYNC_EVENT_LINK_UP = 0x1 | 125 | ASYNC_EVENT_LINK_UP = 0x1, |
126 | ASYNC_EVENT_LOGICAL = 0x2 | ||
126 | }; | 127 | }; |
127 | 128 | ||
128 | /** | 129 | /** |
@@ -134,6 +135,9 @@ struct be_async_event_link_state { | |||
134 | u8 port_link_status; | 135 | u8 port_link_status; |
135 | u8 port_duplex; | 136 | u8 port_duplex; |
136 | u8 port_speed; | 137 | u8 port_speed; |
138 | #define BEISCSI_PHY_LINK_FAULT_NONE 0x00 | ||
139 | #define BEISCSI_PHY_LINK_FAULT_LOCAL 0x01 | ||
140 | #define BEISCSI_PHY_LINK_FAULT_REMOTE 0x02 | ||
137 | u8 port_fault; | 141 | u8 port_fault; |
138 | u8 rsvd0[7]; | 142 | u8 rsvd0[7]; |
139 | struct be_async_event_trailer trailer; | 143 | struct be_async_event_trailer trailer; |