[MTHCA] bug fix: removed unnecessary conversion to network order in atomic operations...
[mirror/winof/.git] / hw / mthca / kernel / mthca_qp.c
index 6901514..240852e 100644 (file)
@@ -1760,12 +1760,12 @@ int mthca_tavor_post_send(struct ib_qp *ibqp, struct _ib_send_wr *wr,
 \r
                                if (opcode == MTHCA_OPCODE_ATOMIC_CS) {\r
                                        ((struct mthca_atomic_seg *) wqe)->swap_add =\r
-                                               cl_hton64(wr->remote_ops.atomic2);\r
+                                               (wr->remote_ops.atomic2);\r
                                        ((struct mthca_atomic_seg *) wqe)->compare =\r
-                                               cl_hton64(wr->remote_ops.atomic1);\r
+                                               (wr->remote_ops.atomic1);\r
                                } else {\r
                                        ((struct mthca_atomic_seg *) wqe)->swap_add =\r
-                                               cl_hton64(wr->remote_ops.atomic1);\r
+                                               (wr->remote_ops.atomic1);\r
                                        ((struct mthca_atomic_seg *) wqe)->compare = 0;\r
                                }\r
 \r
@@ -2166,12 +2166,12 @@ int mthca_arbel_post_send(struct ib_qp *ibqp, struct _ib_send_wr *wr,
 \r
                                if (opcode == MTHCA_OPCODE_ATOMIC_CS) {\r
                                        ((struct mthca_atomic_seg *) wqe)->swap_add =\r
-                                               cl_hton64(wr->remote_ops.atomic2);\r
+                                               (wr->remote_ops.atomic2);\r
                                        ((struct mthca_atomic_seg *) wqe)->compare =\r
-                                               cl_hton64(wr->remote_ops.atomic1);\r
+                                               (wr->remote_ops.atomic1);\r
                                } else {\r
                                        ((struct mthca_atomic_seg *) wqe)->swap_add =\r
-                                               cl_hton64(wr->remote_ops.atomic1);\r
+                                               (wr->remote_ops.atomic1);\r
                                        ((struct mthca_atomic_seg *) wqe)->compare = 0;\r
                                }\r
 \r