aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarish Zunjarrao <harish.zunjarrao@qlogic.com>2008-07-10 19:55:50 -0400
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-07-26 15:14:37 -0400
commit032d8dd739eccbb39c78c901beece70062d1820d (patch)
tree2a34dd2fa5d711e6630176b646ec9814454bd7d3
parente5f5f6f72b10c4c6209f0522a7c5b27079d64429 (diff)
[SCSI] qla2xxx: Add LIP count to FC-transport statistics.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r--drivers/scsi/qla2xxx/qla_attr.c1
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
index 43e400894733..40b5d656ab6c 100644
--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -1071,6 +1071,7 @@ qla2x00_get_fc_host_stats(struct Scsi_Host *shost)
1071 pfc_host_stat->invalid_tx_word_count = stats->inval_xmit_word_cnt; 1071 pfc_host_stat->invalid_tx_word_count = stats->inval_xmit_word_cnt;
1072 pfc_host_stat->invalid_crc_count = stats->inval_crc_cnt; 1072 pfc_host_stat->invalid_crc_count = stats->inval_crc_cnt;
1073 if (IS_FWI2_CAPABLE(ha)) { 1073 if (IS_FWI2_CAPABLE(ha)) {
1074 pfc_host_stat->lip_count = stats->lip_cnt;
1074 pfc_host_stat->tx_frames = stats->tx_frames; 1075 pfc_host_stat->tx_frames = stats->tx_frames;
1075 pfc_host_stat->rx_frames = stats->rx_frames; 1076 pfc_host_stat->rx_frames = stats->rx_frames;
1076 pfc_host_stat->dumped_frames = stats->dumped_frames; 1077 pfc_host_stat->dumped_frames = stats->dumped_frames;
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index fe1eada6cfc2..2b1bc57adf2d 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -864,7 +864,8 @@ struct link_statistics {
864 uint32_t prim_seq_err_cnt; 864 uint32_t prim_seq_err_cnt;
865 uint32_t inval_xmit_word_cnt; 865 uint32_t inval_xmit_word_cnt;
866 uint32_t inval_crc_cnt; 866 uint32_t inval_crc_cnt;
867 uint32_t unused1[0x1b]; 867 uint32_t lip_cnt;
868 uint32_t unused1[0x1a];
868 uint32_t tx_frames; 869 uint32_t tx_frames;
869 uint32_t rx_frames; 870 uint32_t rx_frames;
870 uint32_t dumped_frames; 871 uint32_t dumped_frames;