aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/libfc.h
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2010-07-20 18:20:08 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 10:05:53 -0400
commita7b12a279faaad26837276065104a1f9cf60e962 (patch)
tree3537d1a5b984f4c9f89b7c549df2afcafce8c940 /include/scsi/libfc.h
parent3726f3584e113697b68d3d4ff1ecf1042a06f800 (diff)
[SCSI] libfc: add FLOGI state to rport for VN2VN
The FIP proposal for VN_port to VN_port point-to-multipoint operation requires a FLOGI be sent to each remote port. The FLOGI is sent with the assigned S_ID and D_IDs of the local and remote ports. This and the response get FIP-encapsulated for Ethernet. Add FLOGI state to the remote port state machine. This will be skipped if not in point-to-multipoint mode. To reduce a little duplication between PLOGI and FLOGI response handling, added fc_rport_login_complete(), which handles the parameters for the rdata struct. 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/libfc.h')
-rw-r--r--include/scsi/libfc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index bd0560509ce6..24b91c922055 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -97,6 +97,8 @@ enum fc_disc_event {
97/** 97/**
98 * enum fc_rport_state - Remote port states 98 * enum fc_rport_state - Remote port states
99 * @RPORT_ST_INIT: Initialized 99 * @RPORT_ST_INIT: Initialized
100 * @RPORT_ST_FLOGI: Waiting for FLOGI completion for point-to-multipoint
101 * @RPORT_ST_PLOGI_WAIT: Waiting for peer to login for point-to-multipoint
100 * @RPORT_ST_PLOGI: Waiting for PLOGI completion 102 * @RPORT_ST_PLOGI: Waiting for PLOGI completion
101 * @RPORT_ST_PRLI: Waiting for PRLI completion 103 * @RPORT_ST_PRLI: Waiting for PRLI completion
102 * @RPORT_ST_RTV: Waiting for RTV completion 104 * @RPORT_ST_RTV: Waiting for RTV completion
@@ -107,6 +109,8 @@ enum fc_disc_event {
107*/ 109*/
108enum fc_rport_state { 110enum fc_rport_state {
109 RPORT_ST_INIT, 111 RPORT_ST_INIT,
112 RPORT_ST_FLOGI,
113 RPORT_ST_PLOGI_WAIT,
110 RPORT_ST_PLOGI, 114 RPORT_ST_PLOGI,
111 RPORT_ST_PRLI, 115 RPORT_ST_PRLI,
112 RPORT_ST_RTV, 116 RPORT_ST_RTV,