RDMA/nes: Fix fast memory registration length
authorTatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Sat, 7 Jan 2012 00:15:01 +0000 (18:15 -0600)
committerRoland Dreier <roland@purestorage.com>
Fri, 27 Jan 2012 18:14:51 +0000 (10:14 -0800)
Zero high order word of fast memory registration (FMR) length field.
FMR length field is 32 bits, so high word should always be zero.

Signed-off-by: Tatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Signed-off-by: Donald Wood <Donald.E.Wood@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/nes/nes_verbs.c

index 5095bc41c6ccdd9203f6259a3a1be294aca9b563..ba2eb002fd29fc9f9a3b0c5d805e5444d105a25d 100644 (file)
@@ -3427,6 +3427,8 @@ static int nes_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
                        set_wqe_32bit_value(wqe->wqe_words,
                                            NES_IWARP_SQ_FMR_WQE_LENGTH_LOW_IDX,
                                            ib_wr->wr.fast_reg.length);
+                       set_wqe_32bit_value(wqe->wqe_words,
+                                           NES_IWARP_SQ_FMR_WQE_LENGTH_HIGH_IDX, 0);
                        set_wqe_32bit_value(wqe->wqe_words,
                                            NES_IWARP_SQ_FMR_WQE_MR_STAG_IDX,
                                            ib_wr->wr.fast_reg.rkey);