Message ID | 1358872829-16969-1-git-send-email-domke.j.aa@m.titech.ac.jp (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Alex Netes |
Headers | show |
diff --git a/opensm/osm_ucast_dfsssp.c b/opensm/osm_ucast_dfsssp.c index f88382b..3e9bc31 100644 --- a/opensm/osm_ucast_dfsssp.c +++ b/opensm/osm_ucast_dfsssp.c @@ -1145,7 +1145,7 @@ static int dfsssp_build_graph(void *context) continue; /* if there is a Hca connected -> count and cycle */ if (!remote_node->sw) { - lmc = osm_port_get_lmc(p_port); + lmc = osm_node_get_lmc(remote_node, (uint32_t)remote_port); adj_list[i].num_hca += (1 << lmc); continue; }
dfsssp used one port representative to obtain the lmc value for all ports; but lmc can vary, e.g. SW base port 0 vs. CA port Signed-off-by: Jens Domke <domke.j.aa@m.titech.ac.jp> --- opensm/osm_ucast_dfsssp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)