]> err.no Git - linux-2.6/commit
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)
commitab28b171eabc0a414e0404844453c11af3caed10
tree35c7037516ec32da168468823c1fbba96a930eb2
parentda8bacf6d59288ef3e41389db24886c928dcbd33
IB/mthca: Fix posting lists of 256 receive requests to SRQ for Tavor

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>
drivers/infiniband/hw/mthca/mthca_srq.c