[ofa-general] [PATCH] opensm/perfmgr: use pkey at index 0
Sasha Khapyorsky
sashak at voltaire.com
Tue Jan 15 10:21:42 PST 2008
Use pkey at index 0 of port's pkey table, now this value is passed to
user_mad. For some reason the old code (where 0xffff was passed) worked
too.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
opensm/opensm/osm_perfmgr.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/opensm/osm_perfmgr.c b/opensm/opensm/osm_perfmgr.c
index 76ef080..66d919d 100644
--- a/opensm/opensm/osm_perfmgr.c
+++ b/opensm/opensm/osm_perfmgr.c
@@ -399,7 +399,7 @@ osm_perfmgr_send_pc_mad(osm_perfmgr_t * perfmgr, ib_net16_t dest_lid,
p_madw->mad_addr.addr_type.gsi.remote_qkey =
cl_hton32(IB_QP1_WELL_KNOWN_Q_KEY);
/* FIXME what about other partitions */
- p_madw->mad_addr.addr_type.gsi.pkey = cl_hton16(0xFFFF);
+ p_madw->mad_addr.addr_type.gsi.pkey = 0;
p_madw->mad_addr.addr_type.gsi.service_level = 0;
p_madw->mad_addr.addr_type.gsi.global_route = FALSE;
p_madw->resp_expected = TRUE;
--
1.5.4.rc2.60.gb2e62
More information about the general
mailing list