infiniband-diags/ibnetdisc.h: Clarify "ports" member of ibnd_node_t with more descriptive comment
PATCH 1/1 infiniband-diags/ibnetdisc.h: Clarify "ports" member of ibnd_node_t with more descriptive comment
From: Ira Weiny <[email protected]>
Date: Tue, 3 Nov 2009 17:03:15 -0800
Subject: [PATCH] infiniband-diags/ibnetdisc.h: Clarify "ports" member of ibnd_node_t with more descriptive comment
--- .../libibnetdisc/include/infiniband/ibnetdisc.h | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-)
infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h +8 -3
@@ -66,9 +66,14 @@ typedef struct ibnd_node {char nodedesc[IB_SMP_DATA_SIZE ]; -struct ibnd_port **ports;/* in order array of port pointers -the size of this array is info.numports + 1 -items MAY BE NULL! (ie 0 == switches only) */ +struct ibnd_port **ports;/* array of ports, indexed by port number +ports[1] == port 1, +ports[2] == port 2, +etc... +Any port in the array MAY BE NULL! +Most notable is non-switches have no +port 0 therefore node.ports[0] == NULL +for those nodes */ /* chassis info */ struct ibnd_node *next_chassis_node;/* next node in ibnd_chassis_t->nodes */
Signature · 6 lines
1.5.4.5 -- 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): [email protected]
Sasha Khapyorsky
AppliedQuoted 7 lines · Ira Weiny
From: Ira Weiny <[email protected]>
Date: Tue, 3 Nov 2009 17:03:15 -0800
Subject: [PATCH]infiniband-diags/ibnetdisc.h: Clarify "ports" member ofibnd_node_twith more descriptive commentSigned-off-by Ira Weiny <[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