diff options
-rw-r--r-- | drivers/infiniband/hw/mlx4/qp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index 958e205b6d7c..ac965ab28845 100644 --- 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) | |||
122 | */ | 122 | */ |
123 | static void stamp_send_wqe(struct mlx4_ib_qp *qp, int n, int size) | 123 | static void stamp_send_wqe(struct mlx4_ib_qp *qp, int n, int size) |
124 | { | 124 | { |
125 | u32 *wqe; | 125 | __be32 *wqe; |
126 | int i; | 126 | int i; |
127 | int s; | 127 | int s; |
128 | int ind; | 128 | int ind; |
@@ -143,7 +143,7 @@ static void stamp_send_wqe(struct mlx4_ib_qp *qp, int n, int size) | |||
143 | buf = get_send_wqe(qp, n & (qp->sq.wqe_cnt - 1)); | 143 | buf = get_send_wqe(qp, n & (qp->sq.wqe_cnt - 1)); |
144 | for (i = 64; i < s; i += 64) { | 144 | for (i = 64; i < s; i += 64) { |
145 | wqe = buf + i; | 145 | wqe = buf + i; |
146 | *wqe = 0xffffffff; | 146 | *wqe = cpu_to_be32(0xffffffff); |
147 | } | 147 | } |
148 | } | 148 | } |
149 | } | 149 | } |