[SCSI] fc_transport: Add an API to allow an LLD to create vports
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Fri, 18 Jul 2008 15:32:52 +0000 (08:32 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 3 Oct 2008 16:46:15 +0000 (11:46 -0500)
commita30c3f69e6336cb9b09a989595e417367e4e9b1b
tree219211924d44553b97579682cd8c27750b47b631
parent7404ad3b6d04efbd918e9e2e776bf560fbedf47d
[SCSI] fc_transport: Add an API to allow an LLD to create vports

There's already a fc_vport_termintate() call exported by
the transport.  This patch adds a symmetric call to the API to allow
an NPIV-capable LLD to instantiate vports sans user intervention.

Additional comments/updates:

   Re: scsi_fc_transport.txt
     Add a function prototype for fc_vport_terminate similar to what's
     done for fc_vport_create

   Re: fc_vport_create
     I recommend we pass the channel number in fc_vport_create rather
     than fixing it at zero.

     Also, ids->vport_type should be set to FC_PORTTYPE_NPIV prior to
     calling fc_vport_create. The comment is also meaningless.

Added-by and
Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Documentation/scsi/scsi_fc_transport.txt
drivers/scsi/scsi_transport_fc.c
include/scsi/scsi_transport_fc.h