tree 21db9238e859232257294b75e541737ee123e270
parent 17ead2f5cc81c4658e7b495014c2c6856a6f6b88
author Roland Dreier <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:16 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 17 Apr 2005 05:26:16 -0700
[PATCH] IB/mthca: fix posting sends with immediate data
When posting a work request with immediate data, put the immediate data in the
immediate data field of the hardware's work request (rather than overwriting
the flags field).
Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
infiniband/hw/mthca/mthca_qp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: drivers/infiniband/hw/mthca/mthca_qp.c
===================================================================
---
00ee9237785dd5c552dfc7d20460d8d6e3bc940e/drivers/infiniband/hw/mthca/mthca_qp.c
(mode:100644 sha1:7e4bbbd31f07534748fea10ecc784ab040ebd5f8)
+++
21db9238e859232257294b75e541737ee123e270/drivers/infiniband/hw/mthca/mthca_qp.c
(mode:100644 sha1:1992effe3f8b067a3e11154fc570bfa97d20252a)
@@ -1465,7 +1465,7 @@
cpu_to_be32(1);
if (wr->opcode == IB_WR_SEND_WITH_IMM ||
wr->opcode == IB_WR_RDMA_WRITE_WITH_IMM)
- ((struct mthca_next_seg *) wqe)->flags = wr->imm_data;
+ ((struct mthca_next_seg *) wqe)->imm = wr->imm_data;
wqe += sizeof (struct mthca_next_seg);
size = sizeof (struct mthca_next_seg) / 16;
@@ -1769,7 +1769,7 @@
cpu_to_be32(1);
if (wr->opcode == IB_WR_SEND_WITH_IMM ||
wr->opcode == IB_WR_RDMA_WRITE_WITH_IMM)
- ((struct mthca_next_seg *) wqe)->flags = wr->imm_data;
+ ((struct mthca_next_seg *) wqe)->imm = wr->imm_data;
wqe += sizeof (struct mthca_next_seg);
size = sizeof (struct mthca_next_seg) / 16;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html