From patchwork Tue Jan 22 16:40:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Domke X-Patchwork-Id: 2019461 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id BD7733FD1A for ; Tue, 22 Jan 2013 16:47:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754745Ab3AVQr5 (ORCPT ); Tue, 22 Jan 2013 11:47:57 -0500 Received: from mail03.nap.gsic.titech.ac.jp ([131.112.13.22]:58650 "HELO mail03.nap.gsic.titech.ac.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754800Ab3AVQrx (ORCPT ); Tue, 22 Jan 2013 11:47:53 -0500 Received: from 131.112.13.37 by mail03.nap.gsic.titech.ac.jp with Mail2000 ESMTP Server V6.00S(15873:0:AUTH_RELAY) (envelope-from ); Wed, 23 Jan 2013 01:40:41 +0900 (JST) Received: from [131.112.13.20] (mail01.nap.gsic.titech.ac.jp) by drweb2.nap.gsic.titech.ac.jp (Dr.Web MailD 6.0.2.0) with SMTP id 01618C2D; Wed, 23 Jan 2013 01:40:41 Received: from 131.112.29.201 by mail01.nap.gsic.titech.ac.jp with Mail2000 ESMTP Server V6.00S(797:0:AUTH_LOGIN) (envelope-from ); Wed, 23 Jan 2013 01:40:40 +0900 (JST) From: Jens Domke To: linux-rdma@vger.kernel.org Cc: Alex Netes , Torsten Hoefler , Jens Domke Subject: [PATCH 05/10] OpenSM: dfsssp ignores differences in the lmc value Date: Wed, 23 Jan 2013 01:40:29 +0900 Message-Id: <1358872829-16969-1-git-send-email-domke.j.aa@m.titech.ac.jp> X-Mailer: git-send-email 1.7.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org 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 --- opensm/osm_ucast_dfsssp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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; }