[SCSI] libfc: register FC4 features with the FC switch
authorJoe Eykholt <jeykholt@cisco.com>
Tue, 3 Nov 2009 19:49:27 +0000 (11:49 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:20 +0000 (12:01 -0600)
commitab593b187391bdd03ccad2968972a2e118a88cd4
treef1fb209ae42b19c6e9065ae8db37776c1bb39558
parent78112e5558064cb4d2e355aed87b2036fcdfe3dd
[SCSI] libfc: register FC4 features with the FC switch

Customers and certification tests have pointed out that we don't
show up on the switch management software as an initiator.

On some MDS switches 'show fcns database' command shows libfc
initiators as 'fcp' not 'fcp:init' like other initiators.

On others switches, I think the switch gets the features by doing a PRLI,
but it may be only certain models or under certain configurations.

Fix this by registering our FC4 features with the RFF_ID CT request
after local port login and after the RFT_ID.

Signed-off-by: Joe Eykholt <jeykholt@cisco.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_lport.c
include/scsi/fc/fc_fcp.h
include/scsi/fc/fc_ns.h
include/scsi/fc_encode.h
include/scsi/libfc.h