projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6358ae2
)
IB/mlx4: Endianness annotations
author
Roland Dreier
<rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:07 +0000
(21:01 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:07 +0000
(21:01 -0700)
Trivial fixes to stamp_send_wqe().
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/mlx4/qp.c
b/drivers/infiniband/hw/mlx4/qp.c
index 958e205b6d7c7d5894b419ac6327b7483b900236..ac965ab288458a6ef5c3c49a205202afb6e4794c 100644
(file)
--- a/
drivers/infiniband/hw/mlx4/qp.c
+++ b/
drivers/infiniband/hw/mlx4/qp.c
@@
-122,7
+122,7
@@
static void *get_send_wqe(struct mlx4_ib_qp *qp, int n)
*/
static void stamp_send_wqe(struct mlx4_ib_qp *qp, int n, int size)
{
-
u
32 *wqe;
+
__be
32 *wqe;
int i;
int s;
int ind;
@@
-143,7
+143,7
@@
static void stamp_send_wqe(struct mlx4_ib_qp *qp, int n, int size)
buf = get_send_wqe(qp, n & (qp->sq.wqe_cnt - 1));
for (i = 64; i < s; i += 64) {
wqe = buf + i;
- *wqe =
0xffffffff
;
+ *wqe =
cpu_to_be32(0xffffffff)
;
}
}
}