IB/mthca: Fix posting lists of 256 receive requests to SRQ for Tavor
authorMichael S. Tsirkin <mst@mellanox.co.il>
Wed, 24 May 2006 15:27:07 +0000 (18:27 +0300)
committerRoland Dreier <rolandd@cisco.com>
Wed, 24 May 2006 20:43:37 +0000 (13:43 -0700)
If we post a list of length exactly a multiple of 256, nreq in
doorbell gets set to 256 which is wrong: it should be encoded by 0.
This is because we only zero it out on the next WR, which may not be
there.  The solution is to ring the doorbell after posting a WQE, not
before posting the next one.

This is the same bug that we just fixed for QPs with non-shared RQ.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

No differences found