tree bb500be58aef6c2a1ab7cc3259c4e29a9f155266
parent ebc1b90d6c474edb4bfd9c993ffcfb916149eeac
author Roland Dreier <[EMAIL PROTECTED]> Tue Apr 12 08:26:42 2005
committer Linus Torvalds <[EMAIL PROTECTED]> Tue Apr 12 08:26:42 2005

[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]>

 mthca_qp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Index: drivers/infiniband/hw/mthca/mthca_qp.c
===================================================================
--- 
ff3575aac2a414f0e1914f3d3945f1075da0c6c8/drivers/infiniband/hw/mthca/mthca_qp.c 
 (mode:100644 sha1:89566d883bb00482a8bdb648793a19e6eb5a9239)
+++ 
bb500be58aef6c2a1ab7cc3259c4e29a9f155266/drivers/infiniband/hw/mthca/mthca_qp.c 
 (mode:100644 sha1:eeda22bc00f753796f67569286a228d3d4bca0d0)
@@ -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

Reply via email to