https://github.com/torvalds/linux
Revision c8681f14013d3ad2fc4fb4e30cfd4ea548f7a249 authored by Jack Morgenstein on 21 June 2007, 20:39:10 UTC, committed by Roland Dreier on 21 June 2007, 20:39:10 UTC
We need to keep a spare entry in the SRQ so that there always is a
next WQE available when posting receives (so that we can tell the
difference between a full queue and an empty queue).  So subtract 1
from the value HW gives us before reporting the limit on SRQ entries
to consumers.

Found by Mellanox QA.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
1 parent 13ef5f4
History
Tip revision: c8681f14013d3ad2fc4fb4e30cfd4ea548f7a249 authored by Jack Morgenstein on 21 June 2007, 20:39:10 UTC
IB/mlx4: Correct max_srq_wr returned from mlx4_ib_query_device()
Tip revision: c8681f1

back to top