]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit90807fe547ec12fad59f131a6b257366a3c17ad3
tree69b5d4e22f1b997128789eddcd1ec61a33d5903e
parent8687a554e4bb5e58ba364bd1b93bbd746633f884
[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