]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: Fix handling of send CQE with error for QPs connected to SRQ
authorMichael S. Tsirkin <mst@dev.mellanox.co.il>
Sun, 27 May 2007 15:06:42 +0000 (18:06 +0300)
committerRoland Dreier <rolandd@cisco.com>
Tue, 29 May 2007 23:07:09 +0000 (16:07 -0700)
commitc6542b1bebfc50961637d5261df387ea7b58173e
tree646d1d449b0f123d2567a16c5c2a341b17b67933
parent0600b3b4e267dbf4079496ced476deba83ff52c9
IB/mthca: Fix handling of send CQE with error for QPs connected to SRQ

mthca_free_err_wqe() currently treats both send and receive CQEs
identically if a QP is using an SRQ.  But for Tavor hardware, send
CQEs with error can be chained together even if the RQ is part of SRQ,
so we may miss some CQEs.

Fix by following the WQE chain for all send CQEs even for non-SRQ QPs.

This fixes crashes in IPoIB CM:
<https://bugs.openfabrics.org//show_bug.cgi?id=604>

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c