[ofw] [PATCH] DAPL v2.0: dapltest: fix endian swap issue with performance test
Davis, Arlin R
arlin.r.davis at intel.com
Thu Oct 3 15:59:47 PDT 2013
Signed-off-by: Arlin Davis <arlin.r.davis at 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(-)
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);
--
1.7.3
More information about the ofw
mailing list