diff mbox

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

Message ID 51014915.8020807@dev.mellanox.co.il (mailing list archive)
State Deferred
Delegated to: Alex Netes
Headers show

Commit Message

Hal Rosenstock Jan. 24, 2013, 2:45 p.m. UTC
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Alex Netes Feb. 3, 2013, 5:48 p.m. UTC | #1
Hi Hal,

On 09:45 Thu 24 Jan     , Hal Rosenstock wrote:
> 
> Signed-off-by: Hal Rosenstock <hal@mellanox.com>
> ---

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Alex Netes Feb. 3, 2013, 5:49 p.m. UTC | #2
Applied ver2 of this patch.

On 19:48 Sun 03 Feb     , Alex Netes wrote:
> Hi Hal,
> 
> On 09:45 Thu 24 Jan     , Hal Rosenstock wrote:
> > 
> > Signed-off-by: Hal Rosenstock <hal@mellanox.com>
> > ---
> 
> Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/opensm/osm_sa_mcmember_record.c b/opensm/osm_sa_mcmember_record.c
index 96c1139..8099358 100644
--- a/opensm/osm_sa_mcmember_record.c
+++ b/opensm/osm_sa_mcmember_record.c
@@ -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;