IB/hfi1: Show statistics counters under IB stats interface
authorJianxin Xiong <jianxin.xiong@intel.com>
Thu, 8 Dec 2016 03:32:53 +0000 (19:32 -0800)
committerDoug Ledford <dledford@redhat.com>
Sun, 11 Dec 2016 20:25:13 +0000 (15:25 -0500)
commitb7481944b06e99dc84f4c7da2681ac89528b2020
treef20c58a65a51238c2f3af3c106bc3a0eff429bf0
parentcf4c2f8c9d0483f7585883d3f6733ebf09ea837c
IB/hfi1: Show statistics counters under IB stats interface

Previously tools like hfi1stats had to access these counters through
debugfs, which often caused permission issue for non-root users. It is
not always acceptable to change the debugfs mounting permission due
to security concerns. When exposed under the IB stats interface, the
counters are universally readable by default.

Reviewed-by: Ira Weiny <ira.weiny@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>
drivers/infiniband/hw/hfi1/verbs.c