[ofa-general] [PATCH 2/2] opensm: use pkey index, rather than pkey with libibumad

Sean Hefty sean.hefty at intel.com
Fri Jun 15 10:01:05 PDT 2007


The call to umad_set_pkey expects an index, not a pkey.  Use index 0
for now.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
This was the one place I found where the pkey was being passed into
umad_set_pkey(). 

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

diff --git a/opensm/libvendor/osm_vendor_ibumad.c b/opensm/libvendor/osm_vendor_ibumad.c
index ee94203..a10388c 100644
--- a/opensm/libvendor/osm_vendor_ibumad.c
+++ b/opensm/libvendor/osm_vendor_ibumad.c
@@ -1086,7 +1086,8 @@ osm_vendor_send(
 			  p_mad_addr->addr_type.gsi.service_level,
 			  IB_QP1_WELL_KNOWN_Q_KEY);
 	umad_set_grh(p_vw->umad, 0);	/* FIXME: GRH support */
-	umad_set_pkey(p_vw->umad, p_mad_addr->addr_type.gsi.pkey);
+	umad_set_pkey(p_vw->umad, 0);
+		/* FIXME: p_mad_addr->addr_type.gsi.pkey to index */
 	if (ib_class_is_rmpp(p_mad->mgmt_class)) {	/* RMPP GSI classes	FIXME: no GRH */
 		if (!ib_rmpp_is_flag_set((ib_rmpp_mad_t *)p_sa,
 					 IB_RMPP_FLAG_ACTIVE)) {




More information about the general mailing list