• James Smart's avatar
    [SCSI] FC Transport support for vports based on NPIV · a53eb5e0
    James Smart authored
    This patch provides support for FC virtual ports based on NPIV.
    For information on the interfaces and design, please read the
    Documentation/scsi/scsi_fc_transport.txt file enclosed within
    the patch.
    The RFC was originally posted here:
    Changes from the initial RFC:
    - Bug fix: needed a transport_class_unregister() for the vport class
    - Create a symlink to the vport in the shost device if it is not the
        parent of the vport.
    - Made symbolic name writable so it can be set after creation
    - Made the temporary fc_vport_identifiers struct private to the
    - Deleted the vport_id field from the vport. I couldn't find any good
      use for it (and symname is a good replacement).
    - Made the vport_state and vport_last_state "private" attributes.
      Added the fc_vport_set_state() helper function to manage state
    - Updated vport_create() to allow a vport to be created in a disabled
    - Added INITIALIZING and FAILED vport states
    - Added VPCERR_xxx defines for errors to be returned from vport_create()
    - Created a Documentation/scsi/scsi_fc_transport.txt file that describes
      the interfaces and expected LLDD behaviors.
    Signed-off-by: default avatarJames Smart <James.Smart@emulex.com>
    Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
scsi_transport_fc.c 96.3 KB