aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_fsf.h
diff options
context:
space:
mode:
authorChristof Schmitt <christof.schmitt@de.ibm.com>2008-05-06 05:00:05 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-06-05 10:23:42 -0400
commitc9615858a81d2424c78b10a2f689ba24b156937c (patch)
tree34af50eaeb958a95d13b4f1b6ec9da7ea89f7024 /drivers/s390/scsi/zfcp_fsf.h
parent688864e29869a71a8183e4e2f96ccf9f2de1375f (diff)
[SCSI] zfcp: Track fabric and channel latencies provided by FCP adapter
Add the infrastructure to retrieve the fabric and channel latencies from FSF commands for each SCSI command that has been processed. For each unit, the sum, min, max and number of requests is tracked. Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_fsf.h')
-rw-r--r--drivers/s390/scsi/zfcp_fsf.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_fsf.h b/drivers/s390/scsi/zfcp_fsf.h
index 099970b27001..8b1a7d9c840f 100644
--- a/drivers/s390/scsi/zfcp_fsf.h
+++ b/drivers/s390/scsi/zfcp_fsf.h
@@ -323,11 +323,18 @@ struct fsf_link_down_info {
323 u8 vendor_specific_code; 323 u8 vendor_specific_code;
324} __attribute__ ((packed)); 324} __attribute__ ((packed));
325 325
326struct fsf_qual_latency_info {
327 u32 channel_lat;
328 u32 fabric_lat;
329 u8 res1[8];
330} __attribute__ ((packed));
331
326union fsf_prot_status_qual { 332union fsf_prot_status_qual {
327 u64 doubleword[FSF_PROT_STATUS_QUAL_SIZE / sizeof(u64)]; 333 u64 doubleword[FSF_PROT_STATUS_QUAL_SIZE / sizeof(u64)];
328 struct fsf_qual_version_error version_error; 334 struct fsf_qual_version_error version_error;
329 struct fsf_qual_sequence_error sequence_error; 335 struct fsf_qual_sequence_error sequence_error;
330 struct fsf_link_down_info link_down_info; 336 struct fsf_link_down_info link_down_info;
337 struct fsf_qual_latency_info latency_info;
331} __attribute__ ((packed)); 338} __attribute__ ((packed));
332 339
333struct fsf_qtcb_prefix { 340struct fsf_qtcb_prefix {
@@ -437,7 +444,9 @@ struct fsf_qtcb_bottom_config {
437 u32 fc_link_speed; 444 u32 fc_link_speed;
438 u32 adapter_type; 445 u32 adapter_type;
439 u32 peer_d_id; 446 u32 peer_d_id;
440 u8 res2[12]; 447 u8 res1[2];
448 u16 timer_interval;
449 u8 res2[8];
441 u32 s_id; 450 u32 s_id;
442 struct fsf_nport_serv_param nport_serv_param; 451 struct fsf_nport_serv_param nport_serv_param;
443 u8 reserved_nport_serv_param[16]; 452 u8 reserved_nport_serv_param[16];