From patchwork Tue Nov 2 21:08:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Schutt X-Patchwork-Id: 298172 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA2L8RK1009092 for ; Tue, 2 Nov 2010 21:08:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753467Ab0KBVI0 (ORCPT ); Tue, 2 Nov 2010 17:08:26 -0400 Received: from sentry-three.sandia.gov ([132.175.109.17]:54713 "EHLO sentry-three.sandia.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753466Ab0KBVI0 (ORCPT ); Tue, 2 Nov 2010 17:08:26 -0400 X-WSS-ID: 0LBA01W-0C-8MG-02 X-M-MSG: Received: from sentry.sandia.gov (mm03snlnto.sandia.gov [132.175.109.20]) by sentry-three.sandia.gov (Postfix) with ESMTP id 196DB4804BD; Tue, 2 Nov 2010 15:08:19 -0600 (MDT) Received: from [132.175.109.1] by sentry.sandia.gov with ESMTP (SMTP Relay 01 (Email Firewall v6.3.2)); Tue, 02 Nov 2010 15:08:16 -0600 X-Server-Uuid: AF72F651-81B1-4134-BA8C-A8E1A4E620FF Received: from localhost.localdomain (sale659.sandia.gov [134.253.4.20]) by mailgate.sandia.gov (8.14.4/8.14.4) with ESMTP id oA2L864e016400; Tue, 2 Nov 2010 15:08:06 -0600 From: "Jim Schutt" To: linux-rdma@vger.kernel.org cc: sashak@voltaire.com, "Jim Schutt" Subject: [PATCH] opensm/osm_qos.c: Make offset of VL in VLarb block element match IBA spec Date: Tue, 2 Nov 2010 15:08:15 -0600 Message-ID: <1288732095-32199-1-git-send-email-jaschut@sandia.gov> X-Mailer: git-send-email 1.6.2.2 X-PMX-Version: 5.6.0.2009776, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2010.11.2.210015 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_900_999 0, DATE_TZ_NA 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __SANE_MSGID 0, __STOCK_PHRASE_7 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS ' X-TMWD-Spam-Summary: TS=20101102210818; ID=1; SEV=2.3.1; DFV=B2010110220; IFV=NA; AIF=B2010110220; RPD=5.03.0010; ENG=NA; RPDID=7374723D303030312E30413031303230362E34434430374443322E303141413A534346535441543838363133332C73733D312C6667733D30; CAT=NONE; CON=NONE; SIG=AAAAAAAAAAAAAAAAAAAAAAAAfQ== X-MMS-Spam-Filter-ID: B2010110220_5.03.0010 MIME-Version: 1.0 X-WSS-ID: 60CEA24A4KO1903376-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 (demeter1.kernel.org [140.211.167.41]); Tue, 02 Nov 2010 21:08:28 +0000 (UTC) diff --git a/opensm/opensm/osm_qos.c b/opensm/opensm/osm_qos.c index c90073e..cc38151 100644 --- a/opensm/opensm/osm_qos.c +++ b/opensm/opensm/osm_qos.c @@ -365,7 +365,7 @@ static int parse_vlarb_entry(char *str, ib_vl_arb_element_t * e) unsigned val; char *p = str; p += parse_one_unsigned(p, ':', &val); - e->vl = val % 15; + e->vl = (val % 15) << 4; p += parse_one_unsigned(p, ',', &val); e->weight = (uint8_t) val; return (int)(p - str);