diff options
author | Bryan O'Sullivan <bos@pathscale.com> | 2007-03-15 17:44:57 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-04-18 23:20:56 -0400 |
commit | 041eab9136d8325c332429df71d05ba3e0ea8ebc (patch) | |
tree | e374e5bb3f1a788c37ac275be3aa2a770669ef71 /drivers/infiniband/hw/ipath/ipath_qp.c | |
parent | 614d49a21e96737f84b13f644ac813f8eb6d297a (diff) |
IB/ipath: Fix CQ flushing when QP is modified to error state
If a receive work request has been removed from the queue but has not
had a CQ entry generated for it and the QP is modified to the error
state, the completion entry generated is incorrect. This patch fixes
the problem.
Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_qp.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_qp.c b/drivers/infiniband/hw/ipath/ipath_qp.c index 64ea807703c9..f671fd073253 100644 --- a/drivers/infiniband/hw/ipath/ipath_qp.c +++ b/drivers/infiniband/hw/ipath/ipath_qp.c | |||
@@ -519,7 +519,7 @@ int ipath_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, | |||
519 | break; | 519 | break; |
520 | 520 | ||
521 | case IB_QPS_ERR: | 521 | case IB_QPS_ERR: |
522 | ipath_error_qp(qp, IB_WC_GENERAL_ERR); | 522 | ipath_error_qp(qp, IB_WC_WR_FLUSH_ERR); |
523 | break; | 523 | break; |
524 | 524 | ||
525 | default: | 525 | default: |