]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
RDMA/nes: Fix incorrect address of IP header
authorTatyana Nikolova <Tatyana.E.Nikolova@intel.com>
Fri, 2 Nov 2012 23:17:34 +0000 (23:17 +0000)
committerRoland Dreier <roland@purestorage.com>
Thu, 22 Nov 2012 08:49:13 +0000 (00:49 -0800)
Fix for incorrect ip header address when forwarding fpdus to hardware.

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

index 3ba7be36945207bce1448d2edb24cab2783bfa88..8cf74fd0c44fad88ec5a264ec32a9ad1c6f5defe 100644 (file)
@@ -447,7 +447,7 @@ static int forward_fpdus(struct nes_vnic *nesvnic, struct nes_qp *nesqp)
                set_wqe_32bit_value(cqp_wqe->wqe_words, NES_NIC_SQ_WQE_FRAG0_LOW_IDX,
                                    lower_32_bits(u64tmp));
                set_wqe_32bit_value(cqp_wqe->wqe_words, NES_NIC_SQ_WQE_FRAG0_HIGH_IDX,
-                                   upper_32_bits(u64tmp >> 32));
+                                   upper_32_bits(u64tmp));
 
                set_wqe_32bit_value(cqp_wqe->wqe_words, NES_NIC_SQ_WQE_FRAG1_LOW_IDX,
                                    lower_32_bits(fpdu_info->frags[0].physaddr));