diff options
author | Vasu Dev <vasu.dev@intel.com> | 2012-05-25 13:26:43 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-07-20 03:31:47 -0400 |
commit | 1bd49b482077e231842352621169dedff1f41931 (patch) | |
tree | 7505af722b6391c6199b153527b1d777105277a7 /include/scsi/libfc.h | |
parent | e58abb0ca423fc7adcf70bee018723b87c9e38c2 (diff) |
[SCSI] libfc, fcoe, bnx2fc: cleanup fcoe_dev_stats
The libfc is used by fcoe but fcoe agnostic,
and therefore should not have any fcoe references.
So renaming fcoe_dev_stats from libfc as its for fc_stats.
After that libfc is fcoe string free except some strings for
Open-FCoE.org.
Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Acked-by : Robert Love <robert.w.love@intel.com>
Tested-by: Ross Brattain <ross.b.brattain@intel.com>
Acked-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi/libfc.h')
-rw-r--r-- | include/scsi/libfc.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index 8f9dfba3fcf0..ea52ca203c95 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h | |||
@@ -224,7 +224,7 @@ struct fc_rport_priv { | |||
224 | }; | 224 | }; |
225 | 225 | ||
226 | /** | 226 | /** |
227 | * struct fcoe_dev_stats - fcoe stats structure | 227 | * struct fc_stats - fc stats structure |
228 | * @SecondsSinceLastReset: Seconds since the last reset | 228 | * @SecondsSinceLastReset: Seconds since the last reset |
229 | * @TxFrames: Number of transmitted frames | 229 | * @TxFrames: Number of transmitted frames |
230 | * @TxWords: Number of transmitted words | 230 | * @TxWords: Number of transmitted words |
@@ -244,7 +244,7 @@ struct fc_rport_priv { | |||
244 | * @VLinkFailureCount: Number of virtual link failures | 244 | * @VLinkFailureCount: Number of virtual link failures |
245 | * @MissDiscAdvCount: Number of missing FIP discovery advertisement | 245 | * @MissDiscAdvCount: Number of missing FIP discovery advertisement |
246 | */ | 246 | */ |
247 | struct fcoe_dev_stats { | 247 | struct fc_stats { |
248 | u64 SecondsSinceLastReset; | 248 | u64 SecondsSinceLastReset; |
249 | u64 TxFrames; | 249 | u64 TxFrames; |
250 | u64 TxWords; | 250 | u64 TxWords; |
@@ -510,7 +510,7 @@ struct libfc_function_template { | |||
510 | int (*ddp_done)(struct fc_lport *, u16); | 510 | int (*ddp_done)(struct fc_lport *, u16); |
511 | /* | 511 | /* |
512 | * Sets up the DDP context for a given exchange id on the given | 512 | * Sets up the DDP context for a given exchange id on the given |
513 | * scatterlist if LLD supports DDP for FCoE target. | 513 | * scatterlist if LLD supports DDP for target. |
514 | * | 514 | * |
515 | * STATUS: OPTIONAL | 515 | * STATUS: OPTIONAL |
516 | */ | 516 | */ |
@@ -817,8 +817,7 @@ enum fc_lport_event { | |||
817 | * @state: Identifies the state | 817 | * @state: Identifies the state |
818 | * @boot_time: Timestamp indicating when the local port came online | 818 | * @boot_time: Timestamp indicating when the local port came online |
819 | * @host_stats: SCSI host statistics | 819 | * @host_stats: SCSI host statistics |
820 | * @dev_stats: FCoE device stats (TODO: libfc should not be | 820 | * @stats: FC local port stats (TODO separate libfc LLD stats) |
821 | * FCoE aware) | ||
822 | * @retry_count: Number of retries in the current state | 821 | * @retry_count: Number of retries in the current state |
823 | * @port_id: FC Port ID | 822 | * @port_id: FC Port ID |
824 | * @wwpn: World Wide Port Name | 823 | * @wwpn: World Wide Port Name |
@@ -867,7 +866,7 @@ struct fc_lport { | |||
867 | enum fc_lport_state state; | 866 | enum fc_lport_state state; |
868 | unsigned long boot_time; | 867 | unsigned long boot_time; |
869 | struct fc_host_statistics host_stats; | 868 | struct fc_host_statistics host_stats; |
870 | struct fcoe_dev_stats __percpu *dev_stats; | 869 | struct fc_stats __percpu *stats; |
871 | u8 retry_count; | 870 | u8 retry_count; |
872 | 871 | ||
873 | /* Fabric information */ | 872 | /* Fabric information */ |
@@ -980,8 +979,8 @@ static inline void fc_lport_state_enter(struct fc_lport *lport, | |||
980 | */ | 979 | */ |
981 | static inline int fc_lport_init_stats(struct fc_lport *lport) | 980 | static inline int fc_lport_init_stats(struct fc_lport *lport) |
982 | { | 981 | { |
983 | lport->dev_stats = alloc_percpu(struct fcoe_dev_stats); | 982 | lport->stats = alloc_percpu(struct fc_stats); |
984 | if (!lport->dev_stats) | 983 | if (!lport->stats) |
985 | return -ENOMEM; | 984 | return -ENOMEM; |
986 | return 0; | 985 | return 0; |
987 | } | 986 | } |
@@ -992,7 +991,7 @@ static inline int fc_lport_init_stats(struct fc_lport *lport) | |||
992 | */ | 991 | */ |
993 | static inline void fc_lport_free_stats(struct fc_lport *lport) | 992 | static inline void fc_lport_free_stats(struct fc_lport *lport) |
994 | { | 993 | { |
995 | free_percpu(lport->dev_stats); | 994 | free_percpu(lport->stats); |
996 | } | 995 | } |
997 | 996 | ||
998 | /** | 997 | /** |