]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit365f1cbc53371aaa6d609ee4879b2e9e81f2d7a7
treef20c58a65a51238c2f3af3c106bc3a0eff429bf0
parent3fc62f8ab8648931fb431ce329d173544788f70c
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