aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi/libfc.h
diff options
context:
space:
mode:
authorJoe Eykholt <jeykholt@cisco.com>2010-07-20 18:20:03 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-28 10:05:53 -0400
commit3726f3584e113697b68d3d4ff1ecf1042a06f800 (patch)
tree2e452d689739c4c2516f50d018f8587bf7d58e41 /include/scsi/libfc.h
parent3d902ac09a2812b359edf633425d1327a18399e9 (diff)
[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>
Diffstat (limited to 'include/scsi/libfc.h')
-rw-r--r--include/scsi/libfc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h
index 5f64e593cca8..bd0560509ce6 100644
--- a/include/scsi/libfc.h
+++ b/include/scsi/libfc.h
@@ -846,6 +846,7 @@ struct fc_lport {
846 u32 lro_enabled:1; 846 u32 lro_enabled:1;
847 u32 does_npiv:1; 847 u32 does_npiv:1;
848 u32 npiv_enabled:1; 848 u32 npiv_enabled:1;
849 u32 point_to_multipoint:1;
849 u32 mfs; 850 u32 mfs;
850 u8 max_retry_count; 851 u8 max_retry_count;
851 u8 max_rport_retry_count; 852 u8 max_rport_retry_count;
@@ -991,6 +992,7 @@ int fc_set_mfs(struct fc_lport *, u32 mfs);
991struct fc_lport *libfc_vport_create(struct fc_vport *, int privsize); 992struct fc_lport *libfc_vport_create(struct fc_vport *, int privsize);
992struct fc_lport *fc_vport_id_lookup(struct fc_lport *, u32 port_id); 993struct fc_lport *fc_vport_id_lookup(struct fc_lport *, u32 port_id);
993int fc_lport_bsg_request(struct fc_bsg_job *); 994int fc_lport_bsg_request(struct fc_bsg_job *);
995void fc_lport_set_local_id(struct fc_lport *, u32 port_id);
994 996
995/* 997/*
996 * REMOTE PORT LAYER 998 * REMOTE PORT LAYER