Skip to contentSkip to conversation

opensm/osm_sa_mcmember_record.c: Only use scope from MC group in copy_from_create_mc_rec

PATCH Superseded Hal Rosenstock 2 participants 3 messages Jan 24, 2013 – Feb 3, 2013 2 messages not in the archive InfiniBand

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_sa_mcmember_record.c: Only use scope from MC group in copy_from_create_mc_rec

---

opensm/osm_sa_mcmember_record.c +2 -1
index 96c1139..8099358 100644
@@ -97,7 +97,8 @@ static void copy_from_create_mc_rec(IN ib_member_rec_t * dest,
 	dest->tclass = src->tclass;
 	dest->pkey = src->pkey;
 	dest->sl_flow_hop = src->sl_flow_hop;
-	dest->scope_state = src->scope_state;
+	dest->scope_state = ib_member_set_scope_state(src->scope_state >> 4,
+						      dest->scope_state & 0x0F);
 	dest->mtu = src->mtu;
 	dest->rate = src->rate;
 	dest->pkt_life = src->pkt_life;

--
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): 51014915.8020807-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

A message that is not in the archive (sent off-list or not yet received): 20130203174852.GA2534-iQai9MGU/dze+A/[email protected]