[MTHCA] bug fix: removed unnecessary conversion to network order in atomic operations...
[mirror/winof/.git] / hw / mthca / user / mlnx_uvp_qp.c
index 85f7acb..4fa3767 100644 (file)
@@ -223,12 +223,12 @@ int mthca_tavor_post_send(struct ibv_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
@@ -623,12 +623,12 @@ int mthca_arbel_post_send(struct ibv_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