[SCSI] libfc: Add local port point-to-multipoint flag
authorJoe Eykholt <jeykholt@cisco.com>
Tue, 20 Jul 2010 22:20:03 +0000 (15:20 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:05:53 +0000 (09:05 -0500)
commit3726f3584e113697b68d3d4ff1ecf1042a06f800
tree2e452d689739c4c2516f50d018f8587bf7d58e41
parent3d902ac09a2812b359edf633425d1327a18399e9
[SCSI] libfc: Add local port point-to-multipoint flag

For VN_port to VN_port mode, the transport sets the port_id and
there's no lport FLOGI.  This is similar to FC loop mode.

Add a point_to_multipoint flag that indicates the local port is in
point-to-multipoint mode.  This skips FLOGI and discovery.
It also skips resetting the port_id on resets other than link down.

Add function fc_lport_set_local_id() that sets the local port_id.
This is called by libfcoe on behalf of the low-level driver
to set the port_id when the link comes up.

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/libfc.h