From patchwork Thu Nov 5 19:29:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 57928 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA5JWtmn002594 for ; Thu, 5 Nov 2009 19:32:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757755AbZKETct (ORCPT ); Thu, 5 Nov 2009 14:32:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758445AbZKETct (ORCPT ); Thu, 5 Nov 2009 14:32:49 -0500 Received: from nspiron-3.llnl.gov ([128.115.41.83]:25090 "EHLO smtp.llnl.gov" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757755AbZKETcs (ORCPT ); Thu, 5 Nov 2009 14:32:48 -0500 X-Attachments: None Received: from mail-2.llnl.gov ([128.115.41.181]) by smtp.llnl.gov with ESMTP; 05 Nov 2009 11:32:53 -0800 Received: from jeepcj7.llnl.gov (jeepcj7.llnl.gov [134.9.93.67]) by mail-2.llnl.gov (8.13.1/8.12.3/LLNL evision: 1.7 $) with SMTP id nA5JWmh4002802; Thu, 5 Nov 2009 11:32:48 -0800 Date: Thu, 5 Nov 2009 11:29:56 -0800 From: Ira Weiny To: Sasha Khapyorsky Cc: "linux-rdma@vger.kernel.org" Subject: [PATCH] infiniband-diags/ibnetdisc.h: Clarify "ports" member of ibnd_node_t with more descriptive comment Message-Id: <20091105112956.914e4c8a.weiny2@llnl.gov> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.10.4; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h b/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h index bb5df02..2b4afea 100644 --- a/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h +++ b/infiniband-diags/libibnetdisc/include/infiniband/ibnetdisc.h @@ -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 */