diff options
| author | Sagi Grimberg <sagig@mellanox.com> | 2015-08-06 11:32:49 -0400 |
|---|---|---|
| committer | Doug Ledford <dledford@redhat.com> | 2015-08-30 18:12:27 -0400 |
| commit | 02816a8b8881f9dea68883c9b72672e87cb91d36 (patch) | |
| tree | 46612c003aa3aa5043b40e8fd7838c07f7fc01c6 /drivers/infiniband/ulp/iser | |
| parent | d16739055bd1f562ae4d83e69f7f7f1cefcfbe16 (diff) | |
IB/iser: Get rid of un-maintained counters
We don't update those anywhere in the code and they
seem pretty useless (no one seem to care about those).
qp_tx_queue_full: We never should get this
fmr_map_not_avail: We can never get to this
eh_abort_cnt: We don't monitor aborts
Go ahead and remove them.
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser')
| -rw-r--r-- | drivers/infiniband/ulp/iser/iscsi_iser.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c index e112cbef9bfb..9cc7319887d1 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.c +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c | |||
| @@ -750,15 +750,9 @@ iscsi_iser_conn_get_stats(struct iscsi_cls_conn *cls_conn, struct iscsi_stats *s | |||
| 750 | stats->r2t_pdus = conn->r2t_pdus_cnt; /* always 0 */ | 750 | stats->r2t_pdus = conn->r2t_pdus_cnt; /* always 0 */ |
| 751 | stats->tmfcmd_pdus = conn->tmfcmd_pdus_cnt; | 751 | stats->tmfcmd_pdus = conn->tmfcmd_pdus_cnt; |
| 752 | stats->tmfrsp_pdus = conn->tmfrsp_pdus_cnt; | 752 | stats->tmfrsp_pdus = conn->tmfrsp_pdus_cnt; |
| 753 | stats->custom_length = 4; | 753 | stats->custom_length = 1; |
| 754 | strcpy(stats->custom[0].desc, "qp_tx_queue_full"); | 754 | strcpy(stats->custom[0].desc, "fmr_unalign_cnt"); |
| 755 | stats->custom[0].value = 0; /* TB iser_conn->qp_tx_queue_full; */ | 755 | stats->custom[0].value = conn->fmr_unalign_cnt; |
| 756 | strcpy(stats->custom[1].desc, "fmr_map_not_avail"); | ||
| 757 | stats->custom[1].value = 0; /* TB iser_conn->fmr_map_not_avail */; | ||
| 758 | strcpy(stats->custom[2].desc, "eh_abort_cnt"); | ||
| 759 | stats->custom[2].value = conn->eh_abort_cnt; | ||
| 760 | strcpy(stats->custom[3].desc, "fmr_unalign_cnt"); | ||
| 761 | stats->custom[3].value = conn->fmr_unalign_cnt; | ||
| 762 | } | 756 | } |
| 763 | 757 | ||
| 764 | static int iscsi_iser_get_ep_param(struct iscsi_endpoint *ep, | 758 | static int iscsi_iser_get_ep_param(struct iscsi_endpoint *ep, |
