IB/qib: Display correct value for number of contexts
authorMitko Haralanov <mitko.haralanov@intel.com>
Mon, 7 May 2012 18:03:02 +0000 (14:03 -0400)
committerRoland Dreier <roland@purestorage.com>
Mon, 14 May 2012 19:39:04 +0000 (12:39 -0700)
commit6ceaadee341da89af143c5cd56a3652b406e1ff5
tree5aa84c28c79f936d59bdcfb4475983a04799764d
parent4ccf28a26c981bcc6f938a7ea293a623d2d66d7b
IB/qib: Display correct value for number of contexts

A "fix" for a bug with the number of contexts on a single-port board
caused the calculation to be off by one, which causes problems with
the upper layers.  The same problem exists for number of free
contexts, which is also fixed here.

Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_init.c
drivers/infiniband/hw/qib/qib_sysfs.c