diff options
author | Robert Love <robert.w.love@intel.com> | 2010-05-07 18:18:41 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-05-16 22:22:34 -0400 |
commit | 7b2787ec15b9d1c2f716da61b0eec21a3f5e6520 (patch) | |
tree | 39b098d4253fa266ea75bf1f7feb75458e78b77d /include/scsi/libfc.h | |
parent | 5e4f8fe7b58f4da5043b7f219fe9193cddd9262e (diff) |
[SCSI] libfc: Move the port_id into lport
This patch creates a port_id member in struct fc_lport.
This allows libfc to just deal with fc_lport instances
instead of calling into the fc_host to get the port_id.
This change helps in only using symbols necessary for
operation from the libfc structures. libfc still needs
to change the fc_host_port_id() if the port_id changes
so the presentation layer (scsi_transport_fc) can provide
the user with the correct value, but libfc shouldn't
rely on the presentation layer for operational values.
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index 1755fa7e9271..7495c0ba67ee 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h | |||
@@ -780,6 +780,7 @@ struct fc_disc { | |||
780 | * @dev_stats: FCoE device stats (TODO: libfc should not be | 780 | * @dev_stats: FCoE device stats (TODO: libfc should not be |
781 | * FCoE aware) | 781 | * FCoE aware) |
782 | * @retry_count: Number of retries in the current state | 782 | * @retry_count: Number of retries in the current state |
783 | * @port_id: FC Port ID | ||
783 | * @wwpn: World Wide Port Name | 784 | * @wwpn: World Wide Port Name |
784 | * @wwnn: World Wide Node Name | 785 | * @wwnn: World Wide Node Name |
785 | * @service_params: Common service parameters | 786 | * @service_params: Common service parameters |
@@ -826,6 +827,7 @@ struct fc_lport { | |||
826 | u8 retry_count; | 827 | u8 retry_count; |
827 | 828 | ||
828 | /* Fabric information */ | 829 | /* Fabric information */ |
830 | u32 port_id; | ||
829 | u64 wwpn; | 831 | u64 wwpn; |
830 | u64 wwnn; | 832 | u64 wwnn; |
831 | unsigned int service_params; | 833 | unsigned int service_params; |