consistently type lids and lmcs libibnetdisc
PATCH 1/2 consistently type lids and lmcs libibnetdisc
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
Signature · 5 lines
Albert Chu [email protected] Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory
From: Albert Chu <[email protected]>
Date: Thu, 5 Nov 2009 14:58:11 -0800
Subject: [PATCH] consistently type lids and lmcs libibnetdisc
--- .../libibnetdisc/include/infiniband/ibnetdisc.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h +2 -2
@@ -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;
Signature · 1 line
1.5.4.5
A message that is not in the archive (sent off-list or not yet received): 1257531261.18550.69.camel-X2zTWyBD0EhliZ7u+bvwcg@public.gmane.org
Sasha Khapyorsky
AppliedQuoted 24 lines · Al Chu
Hey Sasha,
The
ibnd_port_tlid and lmc are typed uint16_t/uint8_t, but theibnd_node_tsmalid 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
Signature · 12 lines
Albert Chu [email protected] Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory From: Albert Chu <[email protected]> Date: Thu, 5 Nov 2009 14:58:11 -0800 Subject: [PATCH] consistently type lids and lmcs libibnetdisc Signed-off-by: Albert Chu <[email protected]>
Applied. Thanks.
Sasha
--
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