RDMA/cxgb3: Remove modulo math from build_rdma_recv()
authorSteve Wise <swise@opengridcomputing.com>
Tue, 17 Feb 2009 05:23:32 +0000 (21:23 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 17 Feb 2009 05:23:32 +0000 (21:23 -0800)
commit426328963078f644c7194403a308588cf684d4c6
tree4f4d22db8b998b0275800c69075cf1471bdc7b9c
parent42fb61f02f9bdc476c7a76d3cce0400d989f44c5
RDMA/cxgb3: Remove modulo math from build_rdma_recv()

Remove modulo usage to avoid a divide in the fast path (not all
gcc versions do strength reduction here).

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_qp.c