diff mbox

[04/12] opensm: Fix up some torus-2QoS comments to match code.

Message ID 1261169461-2516-5-git-send-email-jaschut@sandia.gov (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jim Schutt Dec. 18, 2009, 8:50 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/opensm/osm_ucast_torus.c b/opensm/opensm/osm_ucast_torus.c
index 42582ce..9e4a9eb 100644
--- a/opensm/opensm/osm_ucast_torus.c
+++ b/opensm/opensm/osm_ucast_torus.c
@@ -169,11 +169,11 @@  struct port_grp {
 /*
  * A struct t_switch is used to represent a switch as placed in a torus.
  *
- * A t_switch used to build an N-dimensional torus will have N+1 port groups,
+ * A t_switch used to build an N-dimensional torus will have 2N+1 port groups,
  * used as follows, assuming 0 <= d < N:
  *   port_grp[2d]   => links leaving in negative direction for coordinate d
  *   port_grp[2d+1] => links leaving in positive direction for coordinate d
- *   port_grp[N]    => endpoints local to switch; i.e., hosts on switch
+ *   port_grp[2N]   => endpoints local to switch; i.e., hosts on switch
  *
  * struct link objects referenced by a t_switch are assumed to be oriented:
  * traversing a link from link.end[0] to link.end[1] is always in the positive