[SCSI] libfc: vport link handling and fc_vport state managment
authorChris Leech <christopher.leech@intel.com>
Tue, 3 Nov 2009 19:46:19 +0000 (11:46 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:00:57 +0000 (12:00 -0600)
commit8faecddb212d502b1b77936498b9a82b13c4ff44
tree6809700a72089288aec97187fc7f6455fa6b1d95
parent174e1ebffd30a7599b889900089f7acef944cc6b
[SCSI] libfc: vport link handling and fc_vport state managment

NPIV vports are managed in libfc by changing their virtual link state
when the parent N_Ports internal state changes.  The vport link is only
online when the N_Port is in a ready state (logged into the fabric).

vport_state is updated as needed in this patch as well, currently the states
LINKDOWN, INITIALIZING, ACTIVE, DSIABLED, and NO_FABRIC_SUPP are used.

This also changes the fc_host port_state handling to differentiate between
LINKDOWN and OFFLINE.

Signed-off-by: Chris Leech <christopher.leech@intel.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_npiv.c
include/scsi/libfc.h