* [infiniband-diags] [PATCH 1/2] consistently type lids and lmcs libibnetdisc
@ 2009-11-06 18:14 Al Chu
[not found] ` <1257531261.18550.69.camel-X2zTWyBD0EhliZ7u+bvwcg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Al Chu @ 2009-11-06 18:14 UTC (permalink / raw)
To: Sasha Khapyorsky; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 408 bytes --]
Hey Sasha,
The ibnd_port_t lid and lmc are typed uint16_t/uint8_t, but the
ibnd_node_t smalid and smalmc are typed int/int. This patch turns the
ints into uint16_t/uint8_t.
Naturally, we can do the opposite, but it should be consistent one way
or the other.
Al
--
Albert Chu
chu11-i2BcT+NCU+M@public.gmane.org
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
[-- Attachment #2: 0001-consistently-type-lids-and-lmcs-libibnetdisc.patch --]
[-- Type: text/plain, Size: 933 bytes --]
From: Albert Chu <chu11-i2BcT+NCU+M@public.gmane.org>
Date: Thu, 5 Nov 2009 14:58:11 -0800
Subject: [PATCH] consistently type lids and lmcs libibnetdisc
Signed-off-by: Albert Chu <chu11-i2BcT+NCU+M@public.gmane.org>
---
.../libibnetdisc/include/infiniband/ibnetdisc.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h b/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h
index 37de342..e8ceff7 100644
--- a/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h
+++ b/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h
@@ -49,8 +49,8 @@ typedef struct ibnd_node {
struct ibnd_node *next; /* all node list in fabric */
ib_portid_t path_portid; /* path from "from_node" */
- int smalid;
- int smalmc;
+ uint16_t smalid;
+ uint8_t smalmc;
/* quick cache of switchinfo below */
int smaenhsp0;
--
1.5.4.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [infiniband-diags] [PATCH 1/2] consistently type lids and lmcs libibnetdisc
[not found] ` <1257531261.18550.69.camel-X2zTWyBD0EhliZ7u+bvwcg@public.gmane.org>
@ 2009-11-12 23:01 ` Sasha Khapyorsky
0 siblings, 0 replies; 2+ messages in thread
From: Sasha Khapyorsky @ 2009-11-12 23:01 UTC (permalink / raw)
To: Al Chu; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
On 10:14 Fri 06 Nov , Al Chu wrote:
> Hey Sasha,
>
> The ibnd_port_t lid and lmc are typed uint16_t/uint8_t, but the
> ibnd_node_t smalid and smalmc are typed int/int. This patch turns the
> ints into uint16_t/uint8_t.
>
> Naturally, we can do the opposite, but it should be consistent one way
> or the other.
>
> Al
>
> --
> Albert Chu
> chu11-i2BcT+NCU+M@public.gmane.org
> Computer Scientist
> High Performance Systems Division
> Lawrence Livermore National Laboratory
> From: Albert Chu <chu11-i2BcT+NCU+M@public.gmane.org>
> Date: Thu, 5 Nov 2009 14:58:11 -0800
> Subject: [PATCH] consistently type lids and lmcs libibnetdisc
>
>
> Signed-off-by: Albert Chu <chu11-i2BcT+NCU+M@public.gmane.org>
Applied. Thanks.
Sasha
--
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:[~2009-11-12 23:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-06 18:14 [infiniband-diags] [PATCH 1/2] consistently type lids and lmcs libibnetdisc Al Chu
[not found] ` <1257531261.18550.69.camel-X2zTWyBD0EhliZ7u+bvwcg@public.gmane.org>
2009-11-12 23:01 ` Sasha Khapyorsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox