linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] infiniband-diags/saquery.c: In dump_one_mcmember_record, fix flow label endian
@ 2010-10-27 13:06 Hal Rosenstock
       [not found] ` <4CC823DC.4030605-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2010-10-27 13:06 UTC (permalink / raw)
  To: Sasha Khapyorsky; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Already in host endian

Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/infiniband-diags/src/saquery.c b/infiniband-diags/src/saquery.c
index cb4fc18..18c5a1c 100644
--- a/infiniband-diags/src/saquery.c
+++ b/infiniband-diags/src/saquery.c
@@ -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 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] infiniband-diags/saquery.c: In dump_one_mcmember_record, fix flow label endian
       [not found] ` <4CC823DC.4030605-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2010-11-30 15:37   ` Sasha Khapyorsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sasha Khapyorsky @ 2010-11-30 15:37 UTC (permalink / raw)
  To: Hal Rosenstock; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

On 09:06 Wed 27 Oct     , Hal Rosenstock wrote:
> Already in host endian
> 
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

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

Sasha

> ---
> diff --git a/infiniband-diags/src/saquery.c b/infiniband-diags/src/saquery.c
> index cb4fc18..18c5a1c 100644
> --- a/infiniband-diags/src/saquery.c
> +++ b/infiniband-diags/src/saquery.c
> @@ -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 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:[~2010-11-30 15:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-27 13:06 [PATCH] infiniband-diags/saquery.c: In dump_one_mcmember_record, fix flow label endian Hal Rosenstock
     [not found] ` <4CC823DC.4030605-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2010-11-30 15:37   ` Sasha Khapyorsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).