IB/ipath: Fix RC and UC error handling
authorRalph Campbell <ralph.campbell@qlogic.com>
Tue, 13 May 2008 18:40:25 +0000 (11:40 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 13 May 2008 18:40:25 +0000 (11:40 -0700)
commit53dc1ca194c062aa9771e194047f27ec1ca592df
tree4cf0fe73ea76f02f871d5e6def040a869b224f00
parentdd37818dbdf8e51d0288c0197c351c005ffcdbdb
IB/ipath: Fix RC and UC error handling

When errors are detected in RC, the QP should transition to the
IB_QPS_ERR state, not the IB_QPS_SQE state. Also, when the error is on
the responder side, the receive work completion error was incorrect
(remote vs. local).

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_qp.c
drivers/infiniband/hw/ipath/ipath_rc.c
drivers/infiniband/hw/ipath/ipath_ruc.c
drivers/infiniband/hw/ipath/ipath_verbs.c
drivers/infiniband/hw/ipath/ipath_verbs.h