diff mbox

opensm/osm_qos.c: Make offset of VL in VLarb block element match IBA spec

Message ID 1288732095-32199-1-git-send-email-jaschut@sandia.gov (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Jim Schutt Nov. 2, 2010, 9:08 p.m. UTC
None
diff mbox

Patch

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);