]> git.baikalelectronics.ru Git - kernel.git/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)
commit890392747f3dafb38dbc8e6913c4b8c45afebe5c
tree35c7037516ec32da168468823c1fbba96a930eb2
parente905f4ffe6b7ce7e9eae139624ac62b0bab9608c
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