Skip to contentSkip to conversation

opensm/osm_prtn_config.c: Insert autogenerated pkey into MGID for IPoIB

PATCH In review Hal Rosenstock 2 participants 2 messages Dec 19, 2012 – Jan 30, 2013 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_prtn_config.c: Insert autogenerated pkey into MGID for IPoIB

---

opensm/osm_prtn_config.c +1 -1
index 8714eba..a3524b1 100644
@@ -248,7 +248,7 @@ static int partition_create(unsigned lineno, struct part_conf *conf,
 		struct precreate_mgroup broadcast_mgroup;
 		memset(&broadcast_mgroup, 0, sizeof(broadcast_mgroup));
 		broadcast_mgroup.mgid = osm_ipoib_broadcast_mgid;
-		pkey |= cl_hton16(0x8000);
+		pkey = CL_HTON16(0x8000) | conf->p_prtn->pkey;
 		memcpy(&broadcast_mgroup.mgid.raw[4], &pkey , sizeof(pkey));
 		broadcast_mgroup.flags.mtu = conf->flags.mtu;
 		broadcast_mgroup.flags.rate = conf->flags.rate;

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 50D2129F.7040707-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org