[SCSI] libfc: Add support for FDMI
authorNeerav Parikh <neerav.parikh@intel.com>
Mon, 23 Jan 2012 01:30:05 +0000 (17:30 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 14:08:58 +0000 (08:08 -0600)
commitd78c317f6cd701bda9f6dbfbfbcba72f39dd6ad7
tree54ae30e3856fd44b2d5629300517041d79528651
parent1ea2c1daf4476ac798b1de8196f11dd36425b5ae
[SCSI] libfc: Add support for FDMI

This patch adds support for Fabric Device Management
Interface as per FC-GS-4 spec. in libfc. Any driver
making use of libfc can enable fdmi state machine
for a given lport.

If lport has enabled FDMI support the lport state
machine will transition into FDMI after completing
the DNS states and before entering the SCR state.
The FDMI state transition is such that if there is an
error, it won't stop the lport state machine from
transitioning and the it will behave as if there was
no FDMI support.

The FDMI HBA attributes are registed with the Management
server via Register HBA (RHBA) command and the port
attributes are reigstered using the Register Port(RPA)
command.

Signed-off-by: Neerav Parikh <neerav.parikh@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Acked-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libfc/fc_lport.c
include/scsi/fc/fc_ms.h [new file with mode: 0644]
include/scsi/fc_encode.h
include/scsi/libfc.h