Skip to contentSkip to conversation

infiniband-diags/saquery.c: In dump_one_mcmember_record, fix flow label endian

PATCH In review Hal Rosenstock 2 participants 2 messages Oct 27, 2010 – Nov 30, 2010 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 infiniband-diags/saquery.c: In dump_one_mcmember_record, fix flow label endian

Already in host endian

---

infiniband-diags/src/saquery.c +2 -2
index cb4fc18..18c5a1c 100644
@@ -1,7 +1,7 @@
 /*
  * Copyright (c) 2006,2007 The Regents of the University of California.
  * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
- * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
+ * Copyright (c) 2002-2010 Mellanox Technologies LTD. All rights reserved.
  * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
  * Copyright (c) 2009 HNR Consulting. All rights reserved.
  *
@@ -461,7 +461,7 @@ static void dump_one_mcmember_record(void *data)
 	       inet_ntop(AF_INET6, mr->port_gid.raw, gid, sizeof(gid)),
 	       cl_ntoh32(mr->qkey), cl_ntoh16(mr->mlid), mr->mtu, mr->tclass,
 	       cl_ntoh16(mr->pkey), mr->rate, mr->pkt_life, sl,
-	       cl_ntoh32(flow), hop, scope, join, mr->proxy_join);
+	       flow, hop, scope, join, mr->proxy_join);
 }
 
 static void dump_multicast_group_record(void *data)

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4CC823DC.4030605-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

#2 lore raw
Quoted 3 lines · Hal Rosenstock

Already in host endian

Applied by hands (the patch was malformed). Thanks.

Sasha

Quoted 16 lines

---

infiniband-diags/src/saquery.c +1 -1
index cb4fc18..18c5a1c 100644
@@ -1,7 +1,7 @@
  /*
   * Copyright (c) 2006,2007 The Regents of the University of California.
   * Copyright (c) 2004-2009 Voltaire, Inc. All rights reserved.
- * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
+ * Copyright (c) 2002-2010 Mellanox Technologies LTD. All rights reserved.
   * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
   * Copyright (c) 2009 HNR Consulting. All rights reserved.
   *

infiniband-diags/src/saquery.c static void dump_one_mcmember_record(void *data) · line 467

Quoted 8 lines
infiniband-diags/src/saquery.c +1 -1
@@ -461,7 +461,7 @@ static void dump_one_mcmember_record(void *data)
  	       inet_ntop(AF_INET6, mr->port_gid.raw, gid, sizeof(gid)),
  	       cl_ntoh32(mr->qkey), cl_ntoh16(mr->mlid), mr->mtu, mr->tclass,
  	       cl_ntoh16(mr->pkey), mr->rate, mr->pkt_life, sl,
-	       cl_ntoh32(flow), hop, scope, join, mr->proxy_join);
+	       flow, hop, scope, join, mr->proxy_join);
  }
 
  static void dump_multicast_group_record(void *data)

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html