Skip to contentSkip to conversation

acm.c: Make sure MGID has full member pkey bit on

PATCH In review Hal Rosenstock 1 participant 1 message Aug 6, 2013 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 5/8 acm.c: Make sure MGID has full member pkey bit on

even when limited member of partition

---
 src/acm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
src/acm.c +1 -1
index d68746b..146d6e8 100644
@@ -1493,7 +1493,7 @@ static void acm_init_join(struct ib_sa_mad *mad, union ibv_gid *port_gid,
 		IB_COMP_MASK_MC_SCOPE | IB_COMP_MASK_MC_JOIN_STATE;
 
 	mc_rec = (struct ib_mc_member_rec *) mad->data;
-	acm_format_mgid(&mc_rec->mgid, pkey, tos, rate, mtu);
+	acm_format_mgid(&mc_rec->mgid, pkey | 0x8000, tos, rate, mtu);
 	mc_rec->port_gid = *port_gid;
 	mc_rec->qkey = ACM_QKEY;
 	mc_rec->mtu = 0x80 | mtu;
Signature · 6 lines
1.7.8.2

--
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