]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
acm.c: Make sure MGID has full member pkey bit on
authorHal Rosenstock <hal@dev.mellanox.co.il>
Tue, 6 Aug 2013 11:45:31 +0000 (07:45 -0400)
committerSean Hefty <sean.hefty@intel.com>
Mon, 12 Aug 2013 17:16:52 +0000 (10:16 -0700)
even when limited member of partition

Signed-off-by: Hal Rosenstock <hal@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c

index bc59e5c776587dcda9083f231c4d6cd10383720f..f7fa34fc2ee672964f170fc7f6fe6015ae92e846 100644 (file)
--- a/src/acm.c
+++ b/src/acm.c
@@ -1492,7 +1492,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;