aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/include
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-07-08 22:48:49 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:04:07 -0400
commitb85d045ee866011df535565bf12d684e8e5b7a9d (patch)
treeb8f7d73d92d7aaf659b3eedcc417ff7614c22316 /drivers/scsi/bfa/include
parent15b64a835def4c784c6e62ad762677f5cb56eba2 (diff)
[SCSI] bfa: statistics and typo fix
- Added time stamp for fcport stats reset - Added new fileds to the statistics data structures. - Typo removal and minor cleanup. Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/include')
-rw-r--r--drivers/scsi/bfa/include/bfa.h2
-rw-r--r--drivers/scsi/bfa/include/cna/port/bfa_port.h1
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_auth.h6
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_fcport.h26
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_iocfc.h12
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_itnim.h10
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_port.h2
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_pport.h4
-rw-r--r--drivers/scsi/bfa/include/defs/bfa_defs_status.h24
9 files changed, 50 insertions, 37 deletions
diff --git a/drivers/scsi/bfa/include/bfa.h b/drivers/scsi/bfa/include/bfa.h
index 1f5966cfbd16..9519a6d81045 100644
--- a/drivers/scsi/bfa/include/bfa.h
+++ b/drivers/scsi/bfa/include/bfa.h
@@ -126,6 +126,8 @@ struct bfa_sge_s {
126 bfa_ioc_get_type(&(__bfa)->ioc) 126 bfa_ioc_get_type(&(__bfa)->ioc)
127#define bfa_get_mac(__bfa) \ 127#define bfa_get_mac(__bfa) \
128 bfa_ioc_get_mac(&(__bfa)->ioc) 128 bfa_ioc_get_mac(&(__bfa)->ioc)
129#define bfa_get_fw_clock_res(__bfa) \
130 ((__bfa)->iocfc.cfgrsp->fwcfg.fw_tick_res)
129 131
130/* 132/*
131 * bfa API functions 133 * bfa API functions
diff --git a/drivers/scsi/bfa/include/cna/port/bfa_port.h b/drivers/scsi/bfa/include/cna/port/bfa_port.h
index 7cbf17d3141b..d7babaf97848 100644
--- a/drivers/scsi/bfa/include/cna/port/bfa_port.h
+++ b/drivers/scsi/bfa/include/cna/port/bfa_port.h
@@ -37,6 +37,7 @@ struct bfa_port_s {
37 bfa_port_stats_cbfn_t stats_cbfn; 37 bfa_port_stats_cbfn_t stats_cbfn;
38 void *stats_cbarg; 38 void *stats_cbarg;
39 bfa_status_t stats_status; 39 bfa_status_t stats_status;
40 u32 stats_reset_time;
40 union bfa_pport_stats_u *stats; 41 union bfa_pport_stats_u *stats;
41 struct bfa_dma_s stats_dma; 42 struct bfa_dma_s stats_dma;
42 bfa_boolean_t endis_pending; 43 bfa_boolean_t endis_pending;
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_auth.h b/drivers/scsi/bfa/include/defs/bfa_defs_auth.h
index 45df32820911..f56ed871bb99 100644
--- a/drivers/scsi/bfa/include/defs/bfa_defs_auth.h
+++ b/drivers/scsi/bfa/include/defs/bfa_defs_auth.h
@@ -125,10 +125,10 @@ struct bfa_auth_attr_s {
125 enum bfa_auth_status status; 125 enum bfa_auth_status status;
126 enum bfa_auth_algo algo; 126 enum bfa_auth_algo algo;
127 enum bfa_auth_group dh_grp; 127 enum bfa_auth_group dh_grp;
128 u16 rjt_code; 128 enum bfa_auth_rej_code rjt_code;
129 u16 rjt_code_exp; 129 enum bfa_auth_rej_code_exp rjt_code_exp;
130 u8 secret_set; 130 u8 secret_set;
131 u8 resv[7]; 131 u8 resv[3];
132}; 132};
133 133
134#endif /* __BFA_DEFS_AUTH_H__ */ 134#endif /* __BFA_DEFS_AUTH_H__ */
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_fcport.h b/drivers/scsi/bfa/include/defs/bfa_defs_fcport.h
index a07ef4a3cd78..af86a6396439 100644
--- a/drivers/scsi/bfa/include/defs/bfa_defs_fcport.h
+++ b/drivers/scsi/bfa/include/defs/bfa_defs_fcport.h
@@ -48,7 +48,7 @@ struct bfa_fcoe_stats_s {
48 u64 disc_fcf_unavail; /* Discovery FCF not avail */ 48 u64 disc_fcf_unavail; /* Discovery FCF not avail */
49 u64 linksvc_unsupp; /* FIP link service req unsupp. */ 49 u64 linksvc_unsupp; /* FIP link service req unsupp. */
50 u64 linksvc_err; /* FIP link service req errors */ 50 u64 linksvc_err; /* FIP link service req errors */
51 u64 logo_req; /* FIP logo */ 51 u64 logo_req; /* FIP logos received */
52 u64 clrvlink_req; /* Clear virtual link requests */ 52 u64 clrvlink_req; /* Clear virtual link requests */
53 u64 op_unsupp; /* FIP operation unsupp. */ 53 u64 op_unsupp; /* FIP operation unsupp. */
54 u64 untagged; /* FIP untagged frames */ 54 u64 untagged; /* FIP untagged frames */
@@ -64,21 +64,15 @@ struct bfa_fcoe_stats_s {
64 u64 txf_timeout; /* Tx timeouts */ 64 u64 txf_timeout; /* Tx timeouts */
65 u64 txf_parity_errors; /* Transmit parity err */ 65 u64 txf_parity_errors; /* Transmit parity err */
66 u64 txf_fid_parity_errors; /* Transmit FID parity err */ 66 u64 txf_fid_parity_errors; /* Transmit FID parity err */
67 u64 tx_pause; /* Tx pause frames */ 67 u64 rxf_ucast_octets; /* Rx FCoE unicast octets */
68 u64 tx_zero_pause; /* Tx zero pause frames */ 68 u64 rxf_ucast; /* Rx FCoE unicast frames */
69 u64 tx_first_pause; /* Tx first pause frames */ 69 u64 rxf_ucast_vlan; /* Rx FCoE unicast vlan frames */
70 u64 rx_pause; /* Rx pause frames */ 70 u64 rxf_mcast_octets; /* Rx FCoE multicast octets */
71 u64 rx_zero_pause; /* Rx zero pause frames */ 71 u64 rxf_mcast; /* Rx FCoE multicast frames */
72 u64 rx_first_pause; /* Rx first pause frames */ 72 u64 rxf_mcast_vlan; /* Rx FCoE multicast vlan frames */
73 u64 rxf_ucast_octets; /* Rx unicast octets */ 73 u64 rxf_bcast_octets; /* Rx FCoE broadcast octets */
74 u64 rxf_ucast; /* Rx unicast frames */ 74 u64 rxf_bcast; /* Rx FCoE broadcast frames */
75 u64 rxf_ucast_vlan; /* Rx unicast vlan frames */ 75 u64 rxf_bcast_vlan; /* Rx FCoE broadcast vlan frames */
76 u64 rxf_mcast_octets; /* Rx multicast octets */
77 u64 rxf_mcast; /* Rx multicast frames */
78 u64 rxf_mcast_vlan; /* Rx multicast vlan frames */
79 u64 rxf_bcast_octets; /* Rx broadcast octests */
80 u64 rxf_bcast; /* Rx broadcast frames */
81 u64 rxf_bcast_vlan; /* Rx broadcast vlan frames */
82}; 76};
83 77
84/** 78/**
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_iocfc.h b/drivers/scsi/bfa/include/defs/bfa_defs_iocfc.h
index c290fb13d2d1..31e728a631ed 100644
--- a/drivers/scsi/bfa/include/defs/bfa_defs_iocfc.h
+++ b/drivers/scsi/bfa/include/defs/bfa_defs_iocfc.h
@@ -51,8 +51,10 @@ struct bfa_iocfc_fwcfg_s {
51 u16 num_tsktm_reqs; /* TM task management requests*/ 51 u16 num_tsktm_reqs; /* TM task management requests*/
52 u16 num_fcxp_reqs; /* unassisted FC exchanges */ 52 u16 num_fcxp_reqs; /* unassisted FC exchanges */
53 u16 num_uf_bufs; /* unsolicited recv buffers */ 53 u16 num_uf_bufs; /* unsolicited recv buffers */
54 u8 num_cqs; 54 u8 num_cqs;
55 u8 rsvd[5]; 55 u8 fw_tick_res; /*!< FW clock resolution in ms */
56 u8 rsvd[4];
57
56}; 58};
57 59
58struct bfa_iocfc_drvcfg_s { 60struct bfa_iocfc_drvcfg_s {
@@ -176,10 +178,10 @@ struct bfa_fw_port_fpg_stats_s {
176 u32 nos_rx; 178 u32 nos_rx;
177 u32 lip_rx; 179 u32 lip_rx;
178 u32 arbf0_rx; 180 u32 arbf0_rx;
181 u32 arb_rx;
179 u32 mrk_rx; 182 u32 mrk_rx;
180 u32 const_mrk_rx; 183 u32 const_mrk_rx;
181 u32 prim_unknown; 184 u32 prim_unknown;
182 u32 rsvd;
183}; 185};
184 186
185 187
@@ -200,6 +202,8 @@ struct bfa_fw_port_lksm_stats_s {
200 u32 lrr_tx; /* No. of times LRR tx started */ 202 u32 lrr_tx; /* No. of times LRR tx started */
201 u32 ols_tx; /* No. of times OLS tx started */ 203 u32 ols_tx; /* No. of times OLS tx started */
202 u32 nos_tx; /* No. of times NOS tx started */ 204 u32 nos_tx; /* No. of times NOS tx started */
205 u32 hwsm_lrr_rx; /* No. of times LRR rx-ed by HWSM */
206 u32 hwsm_lr_rx; /* No. of times LR rx-ed by HWSM */
203}; 207};
204 208
205 209
@@ -239,7 +243,7 @@ struct bfa_fw_fip_stats_s {
239 u32 disc_fcf_unavail; /* Discovery FCF Not Avail. */ 243 u32 disc_fcf_unavail; /* Discovery FCF Not Avail. */
240 u32 linksvc_unsupp; /* Unsupported link service req */ 244 u32 linksvc_unsupp; /* Unsupported link service req */
241 u32 linksvc_err; /* Parse error in link service req */ 245 u32 linksvc_err; /* Parse error in link service req */
242 u32 logo_req; /* Number of FIP logos received */ 246 u32 logo_req; /* FIP logos received */
243 u32 clrvlink_req; /* Clear virtual link req */ 247 u32 clrvlink_req; /* Clear virtual link req */
244 u32 op_unsupp; /* Unsupported FIP operation */ 248 u32 op_unsupp; /* Unsupported FIP operation */
245 u32 untagged; /* Untagged frames (ignored) */ 249 u32 untagged; /* Untagged frames (ignored) */
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_itnim.h b/drivers/scsi/bfa/include/defs/bfa_defs_itnim.h
index 2ec769903d24..d77788b3999a 100644
--- a/drivers/scsi/bfa/include/defs/bfa_defs_itnim.h
+++ b/drivers/scsi/bfa/include/defs/bfa_defs_itnim.h
@@ -34,6 +34,15 @@ enum bfa_itnim_state {
34 BFA_ITNIM_INITIATIOR = 7, /* initiator */ 34 BFA_ITNIM_INITIATIOR = 7, /* initiator */
35}; 35};
36 36
37struct bfa_itnim_latency_s {
38 u32 min;
39 u32 max;
40 u32 count;
41 u32 clock_res;
42 u32 avg;
43 u32 rsvd;
44};
45
37struct bfa_itnim_hal_stats_s { 46struct bfa_itnim_hal_stats_s {
38 u32 onlines; /* ITN nexus onlines (PRLI done) */ 47 u32 onlines; /* ITN nexus onlines (PRLI done) */
39 u32 offlines; /* ITN Nexus offlines */ 48 u32 offlines; /* ITN Nexus offlines */
@@ -91,6 +100,7 @@ struct bfa_itnim_attr_s {
91 u8 task_retry_id; /* task retry ident support */ 100 u8 task_retry_id; /* task retry ident support */
92 u8 rec_support; /* REC supported */ 101 u8 rec_support; /* REC supported */
93 u8 conf_comp; /* confirmed completion supp */ 102 u8 conf_comp; /* confirmed completion supp */
103 struct bfa_itnim_latency_s io_latency; /* IO latency */
94}; 104};
95 105
96/** 106/**
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_port.h b/drivers/scsi/bfa/include/defs/bfa_defs_port.h
index 752a81293d5a..ebdf0d1731a4 100644
--- a/drivers/scsi/bfa/include/defs/bfa_defs_port.h
+++ b/drivers/scsi/bfa/include/defs/bfa_defs_port.h
@@ -159,7 +159,7 @@ struct bfa_port_stats_s {
159 u32 ms_plogi_rsp_err; 159 u32 ms_plogi_rsp_err;
160 u32 ms_plogi_acc_err; 160 u32 ms_plogi_acc_err;
161 u32 ms_plogi_accepts; 161 u32 ms_plogi_accepts;
162 u32 ms_rejects; /* NS command rejects */ 162 u32 ms_rejects; /* MS command rejects */
163 u32 ms_plogi_unknown_rsp; 163 u32 ms_plogi_unknown_rsp;
164 u32 ms_plogi_alloc_wait; 164 u32 ms_plogi_alloc_wait;
165 165
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_pport.h b/drivers/scsi/bfa/include/defs/bfa_defs_pport.h
index de6181cf9677..2c2cec5ee278 100644
--- a/drivers/scsi/bfa/include/defs/bfa_defs_pport.h
+++ b/drivers/scsi/bfa/include/defs/bfa_defs_pport.h
@@ -246,7 +246,7 @@ struct bfa_pport_fc_stats_s {
246 u64 secs_reset; /* Seconds since stats is reset */ 246 u64 secs_reset; /* Seconds since stats is reset */
247 u64 tx_frames; /* Tx frames */ 247 u64 tx_frames; /* Tx frames */
248 u64 tx_words; /* Tx words */ 248 u64 tx_words; /* Tx words */
249 u64 tx_lip; /* TX LIP */ 249 u64 tx_lip; /* Tx LIP */
250 u64 tx_nos; /* Tx NOS */ 250 u64 tx_nos; /* Tx NOS */
251 u64 tx_ols; /* Tx OLS */ 251 u64 tx_ols; /* Tx OLS */
252 u64 tx_lr; /* Tx LR */ 252 u64 tx_lr; /* Tx LR */
@@ -312,7 +312,7 @@ struct bfa_pport_eth_stats_s {
312 u64 rx_zero_pause; /* Rx zero pause */ 312 u64 rx_zero_pause; /* Rx zero pause */
313 u64 tx_pause; /* Tx pause */ 313 u64 tx_pause; /* Tx pause */
314 u64 tx_zero_pause; /* Tx zero pause */ 314 u64 tx_zero_pause; /* Tx zero pause */
315 u64 rx_fcoe_pause; /* Rx fcoe pause */ 315 u64 rx_fcoe_pause; /* Rx FCoE pause */
316 u64 rx_fcoe_zero_pause; /* Rx FCoE zero pause */ 316 u64 rx_fcoe_zero_pause; /* Rx FCoE zero pause */
317 u64 tx_fcoe_pause; /* Tx FCoE pause */ 317 u64 tx_fcoe_pause; /* Tx FCoE pause */
318 u64 tx_fcoe_zero_pause; /* Tx FCoE zero pause */ 318 u64 tx_fcoe_zero_pause; /* Tx FCoE zero pause */
diff --git a/drivers/scsi/bfa/include/defs/bfa_defs_status.h b/drivers/scsi/bfa/include/defs/bfa_defs_status.h
index 819db5abf461..7cef900707c5 100644
--- a/drivers/scsi/bfa/include/defs/bfa_defs_status.h
+++ b/drivers/scsi/bfa/include/defs/bfa_defs_status.h
@@ -84,8 +84,9 @@ enum bfa_status {
84 BFA_STATUS_BADFRMHDR = 48, /* Bad frame header */ 84 BFA_STATUS_BADFRMHDR = 48, /* Bad frame header */
85 BFA_STATUS_BADFRMSZ = 49, /* Bad frame size check and replace 85 BFA_STATUS_BADFRMSZ = 49, /* Bad frame size check and replace
86 * SFP/cable */ 86 * SFP/cable */
87 BFA_STATUS_MISSINGFRM = 50, /* Missing frame check and replace 87 BFA_STATUS_MISSINGFRM = 50, /* Missing frame check and replace
88 * SFP/cable */ 88 * SFP/cable or for Mezz card check and
89 * replace pass through module */
89 BFA_STATUS_LINKTIMEOUT = 51, /* Link timeout check and replace 90 BFA_STATUS_LINKTIMEOUT = 51, /* Link timeout check and replace
90 * SFP/cable */ 91 * SFP/cable */
91 BFA_STATUS_NO_FCPIM_NEXUS = 52, /* No FCP Nexus exists with the 92 BFA_STATUS_NO_FCPIM_NEXUS = 52, /* No FCP Nexus exists with the
@@ -173,7 +174,7 @@ enum bfa_status {
173 BFA_STATUS_LEDTEST_OP = 109, /* LED test is operating */ 174 BFA_STATUS_LEDTEST_OP = 109, /* LED test is operating */
174 BFA_STATUS_CEE_NOT_DN = 110, /* eth port is not at down state, please 175 BFA_STATUS_CEE_NOT_DN = 110, /* eth port is not at down state, please
175 * bring down first */ 176 * bring down first */
176 BFA_STATUS_10G_SPD = 111, /* Speed setting not valid for 10G HBA */ 177 BFA_STATUS_10G_SPD = 111, /* Speed setting not valid for 10G CNA */
177 BFA_STATUS_IM_INV_TEAM_NAME = 112, /* Invalid team name */ 178 BFA_STATUS_IM_INV_TEAM_NAME = 112, /* Invalid team name */
178 BFA_STATUS_IM_DUP_TEAM_NAME = 113, /* Given team name already 179 BFA_STATUS_IM_DUP_TEAM_NAME = 113, /* Given team name already
179 * exists */ 180 * exists */
@@ -215,11 +216,11 @@ enum bfa_status {
215 BFA_STATUS_BAD_ASICBLK = 132, /* Bad ASIC block */ 216 BFA_STATUS_BAD_ASICBLK = 132, /* Bad ASIC block */
216 BFA_STATUS_NO_DRIVER = 133, /* Brocade adapter/driver not installed 217 BFA_STATUS_NO_DRIVER = 133, /* Brocade adapter/driver not installed
217 * or loaded */ 218 * or loaded */
218 BFA_STATUS_INVALID_MAC = 134, /* Invalid mac address */ 219 BFA_STATUS_INVALID_MAC = 134, /* Invalid MAC address */
219 BFA_STATUS_IM_NO_VLAN = 135, /* No VLANs configured on the adapter */ 220 BFA_STATUS_IM_NO_VLAN = 135, /* No VLANs configured on the adapter */
220 BFA_STATUS_IM_ETH_LB_FAILED = 136, /* Ethernet loopback test failed */ 221 BFA_STATUS_IM_ETH_LB_FAILED = 136, /* Ethernet loopback test failed */
221 BFA_STATUS_IM_PVID_REMOVE = 137, /* Cannot remove port vlan (PVID) */ 222 BFA_STATUS_IM_PVID_REMOVE = 137, /* Cannot remove port VLAN (PVID) */
222 BFA_STATUS_IM_PVID_EDIT = 138, /* Cannot edit port vlan (PVID) */ 223 BFA_STATUS_IM_PVID_EDIT = 138, /* Cannot edit port VLAN (PVID) */
223 BFA_STATUS_CNA_NO_BOOT = 139, /* Boot upload not allowed for CNA */ 224 BFA_STATUS_CNA_NO_BOOT = 139, /* Boot upload not allowed for CNA */
224 BFA_STATUS_IM_PVID_NON_ZERO = 140, /* Port VLAN ID (PVID) is Set to 225 BFA_STATUS_IM_PVID_NON_ZERO = 140, /* Port VLAN ID (PVID) is Set to
225 * Non-Zero Value */ 226 * Non-Zero Value */
@@ -233,14 +234,15 @@ enum bfa_status {
233 BFA_STATUS_INSUFFICIENT_PERMS = 144, /* User doesn't have sufficient 234 BFA_STATUS_INSUFFICIENT_PERMS = 144, /* User doesn't have sufficient
234 * permissions to execute the BCU 235 * permissions to execute the BCU
235 * application */ 236 * application */
236 BFA_STATUS_IM_INV_VLAN_NAME = 145, /* Invalid/Reserved Vlan name 237 BFA_STATUS_IM_INV_VLAN_NAME = 145, /* Invalid/Reserved VLAN name
237 * string. The name is not allowed 238 * string. The name is not allowed
238 * for the normal Vlans */ 239 * for the normal VLAN */
239 BFA_STATUS_CMD_NOTSUPP_CNA = 146, /* Command not supported for CNA */ 240 BFA_STATUS_CMD_NOTSUPP_CNA = 146, /* Command not supported for CNA */
240 BFA_STATUS_IM_PASSTHRU_EDIT = 147, /* Can not edit passthru vlan id */ 241 BFA_STATUS_IM_PASSTHRU_EDIT = 147, /* Can not edit passthrough VLAN
241 BFA_STATUS_IM_BIND_FAILED = 148, /*! < IM Driver bind operation 242 * id */
243 BFA_STATUS_IM_BIND_FAILED = 148, /* IM Driver bind operation
242 * failed */ 244 * failed */
243 BFA_STATUS_IM_UNBIND_FAILED = 149, /* ! < IM Driver unbind operation 245 BFA_STATUS_IM_UNBIND_FAILED = 149, /* IM Driver unbind operation
244 * failed */ 246 * failed */
245 BFA_STATUS_IM_PORT_IN_TEAM = 150, /* Port is already part of the 247 BFA_STATUS_IM_PORT_IN_TEAM = 150, /* Port is already part of the
246 * team */ 248 * team */