diff options
author | Steve Wise <swise@opengridcomputing.com> | 2007-06-19 10:27:48 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-07-09 23:12:26 -0400 |
commit | 6eda48d1e82f901d977a405e43a849dc79968d61 (patch) | |
tree | d1131347cde7663d44a98c22ace38616a657a5fe /drivers/infiniband/hw | |
parent | 1580367e7b2068d075cd42d04c4b8c274815e6fc (diff) |
RDMA/cxgb3: ctrl-qp init/clear shouldn't set the gen bit
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/cxio_hal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb3/cxio_hal.c b/drivers/infiniband/hw/cxgb3/cxio_hal.c index 215bbe51047a..1518b41482ae 100644 --- a/drivers/infiniband/hw/cxgb3/cxio_hal.c +++ b/drivers/infiniband/hw/cxgb3/cxio_hal.c | |||
@@ -144,7 +144,7 @@ static int cxio_hal_clear_qp_ctx(struct cxio_rdev *rdev_p, u32 qpid) | |||
144 | } | 144 | } |
145 | wqe = (struct t3_modify_qp_wr *) skb_put(skb, sizeof(*wqe)); | 145 | wqe = (struct t3_modify_qp_wr *) skb_put(skb, sizeof(*wqe)); |
146 | memset(wqe, 0, sizeof(*wqe)); | 146 | memset(wqe, 0, sizeof(*wqe)); |
147 | build_fw_riwrh((struct fw_riwrh *) wqe, T3_WR_QP_MOD, 3, 1, qpid, 7); | 147 | build_fw_riwrh((struct fw_riwrh *) wqe, T3_WR_QP_MOD, 3, 0, qpid, 7); |
148 | wqe->flags = cpu_to_be32(MODQP_WRITE_EC); | 148 | wqe->flags = cpu_to_be32(MODQP_WRITE_EC); |
149 | sge_cmd = qpid << 8 | 3; | 149 | sge_cmd = qpid << 8 | 3; |
150 | wqe->sge_cmd = cpu_to_be64(sge_cmd); | 150 | wqe->sge_cmd = cpu_to_be64(sge_cmd); |
@@ -548,7 +548,7 @@ static int cxio_hal_init_ctrl_qp(struct cxio_rdev *rdev_p) | |||
548 | V_EC_UP_TOKEN(T3_CTL_QP_TID) | F_EC_VALID)) << 32; | 548 | V_EC_UP_TOKEN(T3_CTL_QP_TID) | F_EC_VALID)) << 32; |
549 | wqe = (struct t3_modify_qp_wr *) skb_put(skb, sizeof(*wqe)); | 549 | wqe = (struct t3_modify_qp_wr *) skb_put(skb, sizeof(*wqe)); |
550 | memset(wqe, 0, sizeof(*wqe)); | 550 | memset(wqe, 0, sizeof(*wqe)); |
551 | build_fw_riwrh((struct fw_riwrh *) wqe, T3_WR_QP_MOD, 0, 1, | 551 | build_fw_riwrh((struct fw_riwrh *) wqe, T3_WR_QP_MOD, 0, 0, |
552 | T3_CTL_QP_TID, 7); | 552 | T3_CTL_QP_TID, 7); |
553 | wqe->flags = cpu_to_be32(MODQP_WRITE_EC); | 553 | wqe->flags = cpu_to_be32(MODQP_WRITE_EC); |
554 | sge_cmd = (3ULL << 56) | FW_RI_SGEEC_START << 8 | 3; | 554 | sge_cmd = (3ULL << 56) | FW_RI_SGEEC_START << 8 | 3; |