IB/qib: Fix context allocation with multiple HCAs
authorMike Marciniszyn <mike.marciniszyn@qlogic.com>
Tue, 11 Jan 2011 01:42:20 +0000 (17:42 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 11 Jan 2011 01:42:20 +0000 (17:42 -0800)
commit6676b3f746ff164a4a367c9aa5ae4b5b1145083c
tree4a9d0ce7dc03a56cae8f2c95da9a55d670933697
parent5dbbcb97cc55dd6e0c34cf06f9e1ee181247d054
IB/qib: Fix context allocation with multiple HCAs

The driver was incorrectly choosing HCAs on which to allocate new user
contexts based on overall count of usable ports regardless whether the
usable port was on the currently selected HCA.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/qib/qib_file_ops.c