[SCSI] libfc: add some generic NPIV support routines to libfc
authorChris Leech <christopher.leech@intel.com>
Tue, 3 Nov 2009 19:46:14 +0000 (11:46 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:00:56 +0000 (12:00 -0600)
commit174e1ebffd30a7599b889900089f7acef944cc6b
tree69b5d4e22f1b997128789eddcd1ec61a33d5903e
parent86221969e20a2f60ce104160dc836a964974673b
[SCSI] libfc: add some generic NPIV support routines to libfc

Adds a function to create a new VN_Port instances, which share the EM
list with the N_Port, VN_Port lookup by fabric ID when responding to a new
request (otherwise the exchange lookup from the N_Ports EM list is trusted to
return an exchange with a cached lport value for the correct VN_Port),
a pointer to a fc_vport structure for VN_Ports, and flags to indicate if an
N_Port supports NPIV and if the switch/fabric allows it.

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/Makefile
drivers/scsi/libfc/fc_exch.c
drivers/scsi/libfc/fc_npiv.c [new file with mode: 0644]
include/scsi/libfc.h