diff options
author | Jianxin Xiong <jianxin.xiong@intel.com> | 2016-10-25 23:12:40 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-11-16 00:18:57 +0300 |
commit | 09a7908b1ba616eed349d49058ee909907ee0885 (patch) | |
tree | 93fea89fa543d9c63c1160ee7c34c7c179c444ae /drivers/infiniband | |
parent | f2d8a0b367e735ab157222ce74a5f2481216c878 (diff) | |
download | linux-09a7908b1ba616eed349d49058ee909907ee0885.tar.xz |
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>
Diffstat (limited to 'drivers/infiniband')
-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) mod_timer(&dd->synth_stats_timer, jiffies + HZ * SYNTH_CNT_TIME); } -#define C_MAX_NAME 13 /* 12 chars + one for /0 */ +#define C_MAX_NAME 16 /* 15 chars + one for /0 */ static int init_cntrs(struct hfi1_devdata *dd) { int i, rcv_ctxts, j; |