[ewg] [GIT PULL ofed-1.4.1] - fix to iw_cxgb3_0400 patch

Steve Wise swise at opengridcomputing.com
Tue Feb 17 08:00:42 PST 2009


Vlad,

Please pull from

git://git.openfabrics.org/~swise/ofed-1.4.git ofed_1_4

This is a small fix to one of the patches I added last week.

Thanks,

Steve.

-----

commit cfc38bc5ec39b8ec680c6181143407f9bb26cc29
Author: Steve Wise <swise at opengridcomputing.com>
Date:   Tue Feb 17 09:47:51 2009 -0600

    RDMA/cxgb3: fix bad patch file.
   
    Signed-off-by: Steve Wise <swise at opengridcomputing.com>

diff --git 
a/kernel_patches/fixes/iw_cxgb3_0400_remove_modulo_math_from_build_rdma_recv.patch 
b/kernel_patches/fixes/iw_cxgb3_0400_remove_modulo_math_from_build_rdma_recv.patch
index e5b4f2c..80dc61a 100644
--- 
a/kernel_patches/fixes/iw_cxgb3_0400_remove_modulo_math_from_build_rdma_recv.patch
+++ 
b/kernel_patches/fixes/iw_cxgb3_0400_remove_modulo_math_from_build_rdma_recv.patch
@@ -21,7 +21,7 @@ index c84ac5b..b520d86 100644
 -        wqe->recv.sgl[i].to = cpu_to_be64(((u32) wr->sg_list[i].addr) %
 -                (1UL << (12 + page_size[i])));
 +        wqe->recv.sgl[i].to = cpu_to_be64(((u32)wr->sg_list[i].addr) &
-+                ((1UL << (12 + page_size[i]) - 1)));
++                ((1UL << (12 + page_size[i])) - 1));
 
          /* pbl_addr is the adapters address in the PBL */
          wqe->recv.pbl_addr[i] = cpu_to_be32(pbl_addr[i]);





More information about the ewg mailing list