* [PATCH 2.6.30] RDMA/cxgb3: remove modulo math from build_rdma_recv().
@ 2009-02-11 22:29 Steve Wise
2009-02-11 23:00 ` David Miller
2009-02-13 5:43 ` Roland Dreier
0 siblings, 2 replies; 3+ messages in thread
From: Steve Wise @ 2009-02-11 22:29 UTC (permalink / raw)
To: rdreier; +Cc: general, randy.dunlap, linux-next, linux-kernel
From: Steve Wise <swise@opengridcomputing.com>
- remove modulo usage
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
---
drivers/infiniband/hw/cxgb3/iwch_qp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c b/drivers/infiniband/hw/cxgb3/iwch_qp.c
index c2b3cf7..bf549ed 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_qp.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_qp.c
@@ -263,8 +263,8 @@ static int build_rdma_recv(struct iwch_qp *qhp, union t3_wr *wqe,
wqe->recv.sgl[i].len = cpu_to_be32(wr->sg_list[i].length);
/* to in the WQE == the offset into the page */
- 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)));
/* pbl_addr is the adapters address in the PBL */
wqe->recv.pbl_addr[i] = cpu_to_be32(pbl_addr[i]);
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2.6.30] RDMA/cxgb3: remove modulo math from build_rdma_recv().
2009-02-11 22:29 [PATCH 2.6.30] RDMA/cxgb3: remove modulo math from build_rdma_recv() Steve Wise
@ 2009-02-11 23:00 ` David Miller
2009-02-13 5:43 ` Roland Dreier
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2009-02-11 23:00 UTC (permalink / raw)
To: swise; +Cc: rdreier, general, randy.dunlap, linux-next, linux-kernel
From: Steve Wise <swise@opengridcomputing.com>
Date: Wed, 11 Feb 2009 16:29:15 -0600
> From: Steve Wise <swise@opengridcomputing.com>
>
> - remove modulo usage
>
> Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2.6.30] RDMA/cxgb3: remove modulo math from build_rdma_recv().
2009-02-11 22:29 [PATCH 2.6.30] RDMA/cxgb3: remove modulo math from build_rdma_recv() Steve Wise
2009-02-11 23:00 ` David Miller
@ 2009-02-13 5:43 ` Roland Dreier
1 sibling, 0 replies; 3+ messages in thread
From: Roland Dreier @ 2009-02-13 5:43 UTC (permalink / raw)
To: Steve Wise; +Cc: general, randy.dunlap, linux-next, linux-kernel
thanks, applied
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-13 5:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 22:29 [PATCH 2.6.30] RDMA/cxgb3: remove modulo math from build_rdma_recv() Steve Wise
2009-02-11 23:00 ` David Miller
2009-02-13 5:43 ` Roland Dreier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).