]> git.karo-electronics.de Git - linux-beck.git/commit
staging/rdma/hfi1: Adding support for hfi counters via sysfs
authorSebastian Sanchez <sebastian.sanchez@intel.com>
Wed, 3 Feb 2016 22:38:07 +0000 (14:38 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:38:01 +0000 (20:38 -0500)
commitb8d114ebb6fb6dfb61a6f7bd5b2bef529015b0f0
tree0d465feac523e4729147cf884e466bace88a0118
parent5950e9b184ae47c6e4ec9cfb0dc698194d524f80
staging/rdma/hfi1: Adding support for hfi counters via sysfs

It enables access to counters in
/sys/class/infiniband/hfi1_0/ports/1/counters
by providing infrastructure when PMA queries occur. Counters symbol_error
and VL15_dropped are not supported in OPA, therefore, 0 will always be
returned. In addition, two common routines (pma_get_opa_port_dctrs,
pma_get_opa_port_ectrs) were created to query counters to avoid code
duplication.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sebastian Sanchez <sebastian.sanchez@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/mad.c