[SCSI] libfc: add FLOGI state to rport for VN2VN
authorJoe Eykholt <jeykholt@cisco.com>
Tue, 20 Jul 2010 22:20:08 +0000 (15:20 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:05:53 +0000 (09:05 -0500)
commita7b12a279faaad26837276065104a1f9cf60e962
tree3537d1a5b984f4c9f89b7c549df2afcafce8c940
parent3726f3584e113697b68d3d4ff1ecf1042a06f800
[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>
drivers/scsi/libfc/fc_lport.c
drivers/scsi/libfc/fc_rport.c
include/scsi/fc/fc_els.h
include/scsi/libfc.h