From patchwork Tue Nov 10 09:37:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 58984 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 nAA9WakE003842 for ; Tue, 10 Nov 2009 09:32:36 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755614AbZKJJcR (ORCPT ); Tue, 10 Nov 2009 04:32:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755554AbZKJJcO (ORCPT ); Tue, 10 Nov 2009 04:32:14 -0500 Received: from mail.mellanox.co.il ([194.90.237.43]:32843 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755224AbZKJJcN (ORCPT ); Tue, 10 Nov 2009 04:32:13 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from kliteyn@dev.mellanox.co.il) with SMTP; 10 Nov 2009 11:38:28 +0200 Received: from [10.4.1.29] ([10.4.1.29]) by mtlexch01.mtl.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Nov 2009 11:32:13 +0200 Message-ID: <4AF93462.6070504@dev.mellanox.co.il> Date: Tue, 10 Nov 2009 11:37:38 +0200 From: Yevgeny Kliteynik Reply-To: kliteyn@dev.mellanox.co.il User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky CC: Linux RDMA Subject: [PATCH] opensm/osm_state_mgr.c: do not probe remote side of port 0 X-OriginalArrivalTime: 10 Nov 2009 09:32:13.0955 (UTC) FILETIME=[AF94C530:01CA61E8] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-6.000.1038-17000.004 X-TM-AS-Result: No--0.834000-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c index 4303d6e..122a8d4 100644 --- a/opensm/opensm/osm_state_mgr.c +++ b/opensm/opensm/osm_state_mgr.c @@ -453,7 +453,7 @@ static ib_api_status_t state_mgr_sweep_hop_1(IN osm_sm_t * sm) * subnet come up. */ num_ports = osm_node_get_num_physp(p_node); - for (port_num = 0; port_num < num_ports; port_num++) { + for (port_num = 1; port_num < num_ports; port_num++) { /* go through the port only if the port is not DOWN */ p_ext_physp = osm_node_get_physp_ptr(p_node, port_num); if (p_ext_physp && ib_port_info_get_port_state