]> err.no Git - linux-2.6/commit
IB/mthca: Correct reported SRQ size in MemFree case.
authorDotan Barak <dotanb@mellanox.co.il>
Mon, 20 Mar 2006 18:08:26 +0000 (10:08 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:26 +0000 (10:08 -0800)
commite10e271bfd295bf805dc294460868e1deb938211
treed2821657636e831e602f86baeabc3523a8e41285
parentdc05980dd736bfbe5b2524b463e5f098e67a64e9
IB/mthca: Correct reported SRQ size in MemFree case.

MemFree devices need to reserve one shared receive queue (SRQ) work
request for internal use, so the capacity returned from the create_srq
and query_srq methods should be srq->max - 1.

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