diff options
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_ud.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_ud.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_ud.c b/drivers/infiniband/hw/ipath/ipath_ud.c index de67eed08ed0..8b6a261c89e3 100644 --- a/drivers/infiniband/hw/ipath/ipath_ud.c +++ b/drivers/infiniband/hw/ipath/ipath_ud.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2006, 2007 QLogic Corporation. All rights reserved. | 2 | * Copyright (c) 2006, 2007, 2008 QLogic Corporation. All rights reserved. |
3 | * Copyright (c) 2005, 2006 PathScale, Inc. All rights reserved. | 3 | * Copyright (c) 2005, 2006 PathScale, Inc. All rights reserved. |
4 | * | 4 | * |
5 | * This software is available to you under a choice of one of two | 5 | * This software is available to you under a choice of one of two |
@@ -95,7 +95,7 @@ static void ipath_ud_loopback(struct ipath_qp *sqp, struct ipath_swqe *swqe) | |||
95 | 95 | ||
96 | if (swqe->wr.opcode == IB_WR_SEND_WITH_IMM) { | 96 | if (swqe->wr.opcode == IB_WR_SEND_WITH_IMM) { |
97 | wc.wc_flags = IB_WC_WITH_IMM; | 97 | wc.wc_flags = IB_WC_WITH_IMM; |
98 | wc.imm_data = swqe->wr.imm_data; | 98 | wc.imm_data = swqe->wr.ex.imm_data; |
99 | } else { | 99 | } else { |
100 | wc.wc_flags = 0; | 100 | wc.wc_flags = 0; |
101 | wc.imm_data = 0; | 101 | wc.imm_data = 0; |
@@ -303,6 +303,7 @@ int ipath_make_ud_req(struct ipath_qp *qp) | |||
303 | qp->s_hdrwords = 7; | 303 | qp->s_hdrwords = 7; |
304 | qp->s_cur_size = wqe->length; | 304 | qp->s_cur_size = wqe->length; |
305 | qp->s_cur_sge = &qp->s_sge; | 305 | qp->s_cur_sge = &qp->s_sge; |
306 | qp->s_dmult = ah_attr->static_rate; | ||
306 | qp->s_wqe = wqe; | 307 | qp->s_wqe = wqe; |
307 | qp->s_sge.sge = wqe->sg_list[0]; | 308 | qp->s_sge.sge = wqe->sg_list[0]; |
308 | qp->s_sge.sg_list = wqe->sg_list + 1; | 309 | qp->s_sge.sg_list = wqe->sg_list + 1; |
@@ -326,7 +327,7 @@ int ipath_make_ud_req(struct ipath_qp *qp) | |||
326 | } | 327 | } |
327 | if (wqe->wr.opcode == IB_WR_SEND_WITH_IMM) { | 328 | if (wqe->wr.opcode == IB_WR_SEND_WITH_IMM) { |
328 | qp->s_hdrwords++; | 329 | qp->s_hdrwords++; |
329 | ohdr->u.ud.imm_data = wqe->wr.imm_data; | 330 | ohdr->u.ud.imm_data = wqe->wr.ex.imm_data; |
330 | bth0 = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE << 24; | 331 | bth0 = IB_OPCODE_UD_SEND_ONLY_WITH_IMMEDIATE << 24; |
331 | } else | 332 | } else |
332 | bth0 = IB_OPCODE_UD_SEND_ONLY << 24; | 333 | bth0 = IB_OPCODE_UD_SEND_ONLY << 24; |