Commit d2ae16d5 authored by Roland Dreier's avatar Roland Dreier

IB/mlx4: Endianness annotations

Trivial fixes to stamp_send_wqe().
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 6358ae25
...@@ -122,7 +122,7 @@ static void *get_send_wqe(struct mlx4_ib_qp *qp, int n) ...@@ -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) static void stamp_send_wqe(struct mlx4_ib_qp *qp, int n, int size)
{ {
u32 *wqe; __be32 *wqe;
int i; int i;
int s; int s;
int ind; int ind;
...@@ -143,7 +143,7 @@ static void stamp_send_wqe(struct mlx4_ib_qp *qp, int n, int size) ...@@ -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)); buf = get_send_wqe(qp, n & (qp->sq.wqe_cnt - 1));
for (i = 64; i < s; i += 64) { for (i = 64; i < s; i += 64) {
wqe = buf + i; wqe = buf + i;
*wqe = 0xffffffff; *wqe = cpu_to_be32(0xffffffff);
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment