[MTHCA] bug fix: removed unnecessary conversion to network order in atomic operations...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 12 May 2009 16:49:49 +0000 (16:49 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 12 May 2009 16:49:49 +0000 (16:49 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2167 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mthca/kernel/mthca_qp.c
hw/mthca/user/mlnx_uvp_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
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