public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opensm/perfmgr: fix endian conversion of PortCounters
@ 2012-07-25  5:49 Ira Weiny
       [not found] ` <20120724224917.09f38bb5c449404718238c11-i2BcT+NCU+M@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Ira Weiny @ 2012-07-25  5:49 UTC (permalink / raw)
  To: Alex Netes; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org


Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
---
 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);
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] opensm/perfmgr: fix endian conversion of PortCounters
       [not found] ` <20120724224917.09f38bb5c449404718238c11-i2BcT+NCU+M@public.gmane.org>
@ 2012-07-29 13:58   ` Alex Netes
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Netes @ 2012-07-29 13:58 UTC (permalink / raw)
  To: Ira Weiny; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi Ira,

On 22:49 Tue 24 Jul     , Ira Weiny wrote:
> 
> Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
> ---

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-29 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-25  5:49 [PATCH] opensm/perfmgr: fix endian conversion of PortCounters Ira Weiny
     [not found] ` <20120724224917.09f38bb5c449404718238c11-i2BcT+NCU+M@public.gmane.org>
2012-07-29 13:58   ` Alex Netes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox