From patchwork Mon May 24 21:42:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Schutt X-Patchwork-Id: 101954 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4OLdrAP032525 for ; Mon, 24 May 2010 21:42:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756007Ab0EXVmL (ORCPT ); Mon, 24 May 2010 17:42:11 -0400 Received: from sentry-three.sandia.gov ([132.175.109.17]:54377 "EHLO sentry-three.sandia.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755938Ab0EXVmK (ORCPT ); Mon, 24 May 2010 17:42:10 -0400 X-WSS-ID: 0L2Y1M1-0C-30B-02 X-M-MSG: Received: from sentry.sandia.gov (sentry.sandia.gov [132.175.109.21]) by sentry-three.sandia.gov (Postfix) with ESMTP id 1F9B0519EBB; Mon, 24 May 2010 15:42:01 -0600 (MDT) Received: from [134.253.165.159] by sentry.sandia.gov with ESMTP (SMTP Relay 01 (Email Firewall v6.3.2)); Mon, 24 May 2010 15:42:01 -0600 X-Server-Uuid: 6BFC7783-7E22-49B4-B610-66D6BE496C0E Received: from [134.253.4.20] (134.253.4.20) by smtps.sandia.gov ( 134.253.165.15) with Microsoft SMTP Server (TLS) id 8.1.375.2; Mon, 24 May 2010 15:42:01 -0600 Subject: Re: [PATCH] opensm/qos.c: Revert port ranges for calls to sl2vl_update_table(). From: "Jim Schutt" To: "Hal Rosenstock" cc: "linux-rdma@vger.kernel.org" , "sashak@voltaire.com" In-Reply-To: References: <1851_1274473140_o4LKDZ3n001852_1274473115-3153-1-git-send-email-jaschut@sandia.gov> <1274473795.4773.43.camel@sale659.sandia.gov> Date: Mon, 24 May 2010 15:42:01 -0600 Message-ID: <1274737321.4773.68.camel@sale659.sandia.gov> MIME-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-19.el5) X-TMWD-Spam-Summary: TS=20100524214202; ID=1; SEV=2.3.1; DFV=B2010052421; IFV=NA; AIF=B2010052421; RPD=5.03.0010; ENG=NA; RPDID=7374723D303030312E30413031303230342E34424641463241412E303032382C73733D312C6667733D30; CAT=NONE; CON=NONE; SIG=AAABAJsKIgAAAAAAAAAAAAAAAAAAAH0= X-MMS-Spam-Filter-ID: B2010052421_5.03.0010 X-WSS-ID: 67E42D232JS862393-01-01 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 24 May 2010 21:42:11 +0000 (UTC) --- a/opensm/opensm/osm_qos.c +++ b/opensm/opensm/osm_qos.c @@ -233,7 +233,8 @@ static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node, for (i = 0; i < num_ports; i++) { p = osm_node_get_physp_ptr(node, i); force_update = p->need_update || sm->p_subn->need_update; - for (j = 1; j < num_ports; j++) + j = ib_switch_info_is_enhanced_port0(&node->sw->switch_info) ? 0 : 1; + for (; j < num_ports; j++) if (sl2vl_update_table(sm, p, i, i << 8 | j, force_update, &qcfg->sl2vl)) ret = -1;