diff options
author | Jianxin Xiong <jianxin.xiong@intel.com> | 2016-10-25 16:12:40 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-11-15 16:18:57 -0500 |
commit | 09a7908b1ba616eed349d49058ee909907ee0885 (patch) | |
tree | 93fea89fa543d9c63c1160ee7c34c7c179c444ae | |
parent | f2d8a0b367e735ab157222ce74a5f2481216c878 (diff) |
IB/hfi1: Prevent hardware counter names from being cut off
Increase the size of the buffer that is used to construct per-VL
and per-SDMA counter names.
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/hw/hfi1/chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/chip.c b/drivers/infiniband/hw/hfi1/chip.c index 156ddf8f3dca..24d0820873cf 100644 --- a/drivers/infiniband/hw/hfi1/chip.c +++ b/drivers/infiniband/hw/hfi1/chip.c | |||
@@ -12098,7 +12098,7 @@ static void update_synth_timer(unsigned long opaque) | |||
12098 | mod_timer(&dd->synth_stats_timer, jiffies + HZ * SYNTH_CNT_TIME); | 12098 | mod_timer(&dd->synth_stats_timer, jiffies + HZ * SYNTH_CNT_TIME); |
12099 | } | 12099 | } |
12100 | 12100 | ||
12101 | #define C_MAX_NAME 13 /* 12 chars + one for /0 */ | 12101 | #define C_MAX_NAME 16 /* 15 chars + one for /0 */ |
12102 | static int init_cntrs(struct hfi1_devdata *dd) | 12102 | static int init_cntrs(struct hfi1_devdata *dd) |
12103 | { | 12103 | { |
12104 | int i, rcv_ctxts, j; | 12104 | int i, rcv_ctxts, j; |