[ofa-general] [PATCH] opensm/osm_qos_policy.c: matching PR query to QoS level with pkey

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Thu Aug 20 06:06:55 PDT 2009


Hi Sasha,

Fixing a bug in matching PR query to QoS
levels when pkey specified - pkeys in QoS
policy are held w/o the MSB.

Signed-off-by:  Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>

---
 opensm/opensm/osm_qos_policy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opensm/opensm/osm_qos_policy.c b/opensm/opensm/osm_qos_policy.c
index febd7f6..9b72293 100644
--- a/opensm/opensm/osm_qos_policy.c
+++ b/opensm/opensm/osm_qos_policy.c
@@ -303,7 +303,7 @@ boolean_t osm_qos_level_has_pkey(IN const osm_qos_level_t * p_qos_level,
 		return FALSE;
 	return __is_num_in_range_arr(p_qos_level->pkey_range_arr,
 				     p_qos_level->pkey_range_len,
-				     cl_ntoh16(pkey));
+				     cl_ntoh16(ib_pkey_get_base(pkey)));
 }

 /***************************************************
-- 
1.5.1.4




More information about the general mailing list