From patchwork Wed Jul 25 05:49:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 1235461 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 3FEA8DFFC0 for ; Wed, 25 Jul 2012 05:49:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932719Ab2GYFtT (ORCPT ); Wed, 25 Jul 2012 01:49:19 -0400 Received: from nspiron-1.llnl.gov ([128.115.41.81]:42118 "EHLO nspiron-1.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932711Ab2GYFtT (ORCPT ); Wed, 25 Jul 2012 01:49:19 -0400 X-Attachments: Received: from eris.llnl.gov (HELO trebuchet.chaos) ([128.115.7.7]) by nspiron-1.llnl.gov with SMTP; 24 Jul 2012 22:49:18 -0700 Date: Tue, 24 Jul 2012 22:49:17 -0700 From: Ira Weiny To: Alex Netes Cc: "linux-rdma@vger.kernel.org" Subject: [PATCH] opensm/perfmgr: fix endian conversion of PortCounters Message-Id: <20120724224917.09f38bb5c449404718238c11@llnl.gov> X-Mailer: Sylpheed 3.2.0 (GTK+ 2.18.9; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Ira Weiny --- opensm/osm_perfmgr_db.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/opensm/osm_perfmgr_db.c b/opensm/osm_perfmgr_db.c index a472287..17e839b 100644 --- a/opensm/osm_perfmgr_db.c +++ b/opensm/osm_perfmgr_db.c @@ -769,15 +769,14 @@ perfmgr_db_fill_err_read(ib_port_counters_t * wire_read, perfmgr_db_err_reading_t * reading) { reading->symbol_err_cnt = cl_ntoh16(wire_read->symbol_err_cnt); - reading->link_err_recover = cl_ntoh16(wire_read->link_err_recover); + reading->link_err_recover = wire_read->link_err_recover; reading->link_downed = wire_read->link_downed; - reading->rcv_err = wire_read->rcv_err; + reading->rcv_err = cl_ntoh16(wire_read->rcv_err); reading->rcv_rem_phys_err = cl_ntoh16(wire_read->rcv_rem_phys_err); reading->rcv_switch_relay_err = cl_ntoh16(wire_read->rcv_switch_relay_err); reading->xmit_discards = cl_ntoh16(wire_read->xmit_discards); - reading->xmit_constraint_err = - cl_ntoh16(wire_read->xmit_constraint_err); + reading->xmit_constraint_err = wire_read->xmit_constraint_err; reading->rcv_constraint_err = wire_read->rcv_constraint_err; reading->link_integrity = PC_LINK_INT(wire_read->link_int_buffer_overrun);