From patchwork Fri May 21 20:18:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Schutt X-Patchwork-Id: 101545 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 o4LKInh3019576 for ; Fri, 21 May 2010 20:18:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752779Ab0EUUSs (ORCPT ); Fri, 21 May 2010 16:18:48 -0400 Received: from sentry-three.sandia.gov ([132.175.109.17]:59593 "EHLO sentry-three.sandia.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752485Ab0EUUSs (ORCPT ); Fri, 21 May 2010 16:18:48 -0400 X-WSS-ID: 0L2SDR1-0C-8T5-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 12CCD50D908; Fri, 21 May 2010 14:18:37 -0600 (MDT) Received: from [132.175.109.1] by sentry.sandia.gov with ESMTP (SMTP Relay 01 (Email Firewall v6.3.2)); Fri, 21 May 2010 14:18:35 -0600 X-Server-Uuid: 6BFC7783-7E22-49B4-B610-66D6BE496C0E Received: from localhost.localdomain (sale659.sandia.gov [134.253.4.20]) by mailgate.sandia.gov (8.14.4/8.14.4) with ESMTP id o4LKISuV004130; Fri, 21 May 2010 14:18:28 -0600 From: "Jim Schutt" To: linux-rdma@vger.kernel.org cc: sashak@voltaire.com, "Jim Schutt" Subject: [PATCH] opensm/qos.c: Revert port ranges for calls to sl2vl_update_table(). Date: Fri, 21 May 2010 14:18:35 -0600 Message-ID: <1274473115-3153-1-git-send-email-jaschut@sandia.gov> X-Mailer: git-send-email 1.6.2.2 X-PMX-Version: 5.5.9.395186, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2010.5.21.200617 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1500_1599 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, TO_NO_NAME 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS ' X-TMWD-Spam-Summary: TS=20100521201838; ID=1; SEV=2.3.1; DFV=B2010052120; IFV=NA; AIF=B2010052120; RPD=5.03.0010; ENG=NA; RPDID=7374723D303030312E30413031303230392E34424636454139442E303042383A534346535441543838363133332C73733D312C6667733D30; CAT=NONE; CON=NONE; SIG=AAAAAAAAAAAAAAAAAAAAAAAAfQ== X-MMS-Spam-Filter-ID: B2010052120_5.03.0010 MIME-Version: 1.0 X-WSS-ID: 67E835112JS726129-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]); Fri, 21 May 2010 20:18:49 +0000 (UTC) diff --git a/opensm/opensm/osm_qos.c b/opensm/opensm/osm_qos.c index 6bbbfa2..b8c3111 100644 --- a/opensm/opensm/osm_qos.c +++ b/opensm/opensm/osm_qos.c @@ -230,12 +230,12 @@ static int qos_extports_setup(osm_sm_t * sm, osm_node_t *node, &qcfg->sl2vl); } - for (i = 1; i < num_ports; i++) { + 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 = 0; j < num_ports; j++) - if (sl2vl_update_table(sm, p, i, i << 8 | j, - force_update, &qcfg->sl2vl)) + for (j = 1; j < num_ports; j++) + if (sl2vl_update_table(sm, p, i, j, force_update, + &qcfg->sl2vl)) ret = -1; }