IB/qib: Add per-context stats interface
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Sat, 15 Jun 2013 21:07:09 +0000 (17:07 -0400)
committerRoland Dreier <roland@purestorage.com>
Sat, 22 Jun 2013 00:19:51 +0000 (17:19 -0700)
commit17db3a92c144a0f8a81c52e94b7110bc86b5067f
tree3c5a13b1820b2bfd34eaac578d0a8c62987c1277
parentddb8876589702a9396d15d9d4075e6388d0600cf
IB/qib: Add per-context stats interface

This patch adds a debugfs stats interface for per kernel contexts
packet counts.

The code uses the opcode stats count and eliminates the counter in the
context.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_debugfs.c