From patchwork Thu Oct 3 22:59:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arlin Davis X-Patchwork-Id: 2986491 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9E3839F288 for ; Thu, 3 Oct 2013 22:59:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3340120426 for ; Thu, 3 Oct 2013 22:59:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A1DB82037D for ; Thu, 3 Oct 2013 22:59:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755451Ab3JCW7x (ORCPT ); Thu, 3 Oct 2013 18:59:53 -0400 Received: from mga09.intel.com ([134.134.136.24]:41460 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755393Ab3JCW7x (ORCPT ); Thu, 3 Oct 2013 18:59:53 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 03 Oct 2013 15:56:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.90,1028,1371106800"; d="scan'208";a="413744659" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by orsmga002.jf.intel.com with ESMTP; 03 Oct 2013 15:59:48 -0700 Received: from orsmsx111.amr.corp.intel.com (10.22.240.12) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.123.3; Thu, 3 Oct 2013 15:59:48 -0700 Received: from orsmsx101.amr.corp.intel.com ([169.254.8.125]) by ORSMSX111.amr.corp.intel.com ([169.254.11.8]) with mapi id 14.03.0123.003; Thu, 3 Oct 2013 15:59:48 -0700 From: "Davis, Arlin R" To: "linux-rdma@vger.kernel.org" , "ofw@lists.openfabrics.org" Subject: [PATCH] DAPL v2.0: dapltest: fix endian swap issue with performance test Thread-Topic: [PATCH] DAPL v2.0: dapltest: fix endian swap issue with performance test Thread-Index: Ac7Ai9hxmwWZGGUxQo6viW8PPgbdlA== Date: Thu, 3 Oct 2013 22:59:47 +0000 Message-ID: <54347E5A035A054EAE9D05927FB467F972DB4497@ORSMSX101.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.140] MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Arlin Davis --- 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 --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);