diff options
author | Joe Eykholt <jeykholt@cisco.com> | 2009-11-03 14:48:27 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:01:13 -0500 |
commit | dd42dac4ecd1799077c132aab35d3c36b26d4d8c (patch) | |
tree | d3ca67f50eccef31071bfe26e09bf97c686bc088 /include/scsi | |
parent | 1f4aed818d26eb9ed54520fbeb85d5ee691baa94 (diff) |
[SCSI] libfcoe: FIP should report link to libfc whether selected or not
The fnic driver with FIP is reporting link up, even though it's down.
When the interface is shut down by the switch, we receive a clear
virtual link, and set the state reported to libfc as down, although
we still report it up. Clearly wrong. That causes the subsequent
link down event not to be reported, and /sys shows the host "Online".
Currently, in FIP mode, if an FCF times out, then link to libfc
is reported as down, to stop FLOGIs. That interferes with the LLD
link down being reported.
Users really need to know the physical link information, to diagnose
cabling issues, so physical link status should be reported to libfc.
If the selected FCF needs to be reported, that should be done
separately, in a later patch.
Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/libfcoe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/libfcoe.h b/include/scsi/libfcoe.h index 2344a00e92ef..e38ffa05dc26 100644 --- a/include/scsi/libfcoe.h +++ b/include/scsi/libfcoe.h | |||
@@ -108,6 +108,7 @@ struct fcoe_ctlr { | |||
108 | u8 flogi_count; | 108 | u8 flogi_count; |
109 | u8 link; | 109 | u8 link; |
110 | u8 last_link; | 110 | u8 last_link; |
111 | u8 reset_req; | ||
111 | u8 map_dest; | 112 | u8 map_dest; |
112 | u8 spma; | 113 | u8 spma; |
113 | u8 send_ctlr_ka; | 114 | u8 send_ctlr_ka; |