diff mbox

DAPL v2.0: dapltest: fix endian swap issue with performance test

Message ID 54347E5A035A054EAE9D05927FB467F972DB4497@ORSMSX101.amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Arlin Davis Oct. 3, 2013, 10:59 p.m. UTC
Signed-off-by: Arlin Davis <arlin.r.davis@intel.com>

---
 test/dapltest/test/dapl_performance_client.c |    2 +-
 test/dapltest/test/dapl_performance_server.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
1.7.3
diff mbox

Patch

diff --git a/test/dapltest/test/dapl_performance_client.c b/test/dapltest/test/dapl_performance_client.c
index 96d5b47..169a212 100644
--- a/test/dapltest/test/dapl_performance_client.c
+++ b/test/dapltest/test/dapl_performance_client.c
@@ -427,7 +427,7 @@  DT_Performance_Test_Client_Exchange(Params_t * params_ptr,
 	 * we pass to the other side.  The other side cannot (and
 	 * better not) interpret these values.
 	 */
-	if (DT_local_is_little_endian != test_ptr->is_remote_little_endian) {
+	if (DT_local_is_little_endian && !test_ptr->is_remote_little_endian) {
 		rmi->rmr_context = DT_EndianMemHandle(rmi->rmr_context);
 		rmi->mem_address.as_64 =
 		    DT_EndianMemAddress(rmi->mem_address.as_64);
diff --git a/test/dapltest/test/dapl_performance_server.c b/test/dapltest/test/dapl_performance_server.c
index 5083967..475a5fe 100644
--- a/test/dapltest/test/dapl_performance_server.c
+++ b/test/dapltest/test/dapl_performance_server.c
@@ -328,7 +328,7 @@  DT_Performance_Test_Server_Exchange(DT_Tdep_Print_Head * phead,
 	 * we pass to the other side.  The other side cannot (and
 	 * better not) interpret these values.
 	 */
-	if (DT_local_is_little_endian != test_ptr->is_remote_little_endian) {
+	if (DT_local_is_little_endian && !test_ptr->is_remote_little_endian) {
 		rmi->rmr_context = DT_EndianMemHandle(rmi->rmr_context);
 		rmi->mem_address.as_64 =
 		    DT_EndianMemAddress(rmi->mem_address.as_64);