diff options
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_qp.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_ud.c | 1 |
2 files changed, 2 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: |
diff --git a/drivers/infiniband/hw/ipath/ipath_ud.c b/drivers/infiniband/hw/ipath/ipath_ud.c index a20261c0b4f8..57625b8c1b97 100644 --- a/drivers/infiniband/hw/ipath/ipath_ud.c +++ b/drivers/infiniband/hw/ipath/ipath_ud.c | |||
@@ -647,6 +647,7 @@ void ipath_ud_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr, | |||
647 | ipath_skip_sge(&qp->r_sge, sizeof(struct ib_grh)); | 647 | ipath_skip_sge(&qp->r_sge, sizeof(struct ib_grh)); |
648 | ipath_copy_sge(&qp->r_sge, data, | 648 | ipath_copy_sge(&qp->r_sge, data, |
649 | wc.byte_len - sizeof(struct ib_grh)); | 649 | wc.byte_len - sizeof(struct ib_grh)); |
650 | qp->r_wrid_valid = 0; | ||
650 | wc.wr_id = qp->r_wr_id; | 651 | wc.wr_id = qp->r_wr_id; |
651 | wc.status = IB_WC_SUCCESS; | 652 | wc.status = IB_WC_SUCCESS; |
652 | wc.opcode = IB_WC_RECV; | 653 | wc.opcode = IB_WC_RECV; |