Discussion:
[ofw] [PATCH] DAPL v2.0: dapltest: fix endian swap issue with performance test
Davis, Arlin R
2013-10-03 22:59:47 UTC
Permalink
Signed-off-by: Arlin 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(-)

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-

Loading...