IB/qib: Add sysfs interface to read free contexts
authorRam Vepa <ram.vepa@qlogic.com>
Tue, 31 May 2011 20:20:43 +0000 (20:20 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 18 Jul 2011 19:09:19 +0000 (12:09 -0700)
commit2df4f7579d212e8e0df7c8a24f57bf90f23fd516
tree84c5a496f67f22f38a7c926fe3188f6bcbb3ac30
parentac0cae4495303b8fffd3df9c7cb29c7d0c05f210
IB/qib: Add sysfs interface to read free contexts

Indicate the number of free user contexts via the sysfs file
/sys/class/infiniband/qib0/nfreectxts as required for PSM.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_sysfs.c