IB/mthca: Query SRQ srq_limit fixes
authorEli Cohen <eli@mellanox.co.il>
Mon, 13 Mar 2006 12:33:01 +0000 (14:33 +0200)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:26 +0000 (10:08 -0800)
commitfd02e8038eb943755e8727a0ea193c037a51714f
tree597dc0e67899c445ac85fc5b7ae8a151ca4491ee
parentbfef73fa78ca1e56175dcbd33aa11de4764f85a5
IB/mthca: Query SRQ srq_limit fixes

Fix endianness handling of srq_limit: it is big-endian in the context
structure, so we need to swab it before returning it.

Also add support for srq_limit query for Tavor (non-MemFree) HCAs.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_srq.c