From patchwork Thu Jan 24 14:45:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2032131 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C69963FD56 for ; Thu, 24 Jan 2013 14:44:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753019Ab3AXOo4 (ORCPT ); Thu, 24 Jan 2013 09:44:56 -0500 Received: from mail-qa0-f48.google.com ([209.85.216.48]:49187 "EHLO mail-qa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751658Ab3AXOo4 (ORCPT ); Thu, 24 Jan 2013 09:44:56 -0500 Received: by mail-qa0-f48.google.com with SMTP id j8so100357qah.7 for ; Thu, 24 Jan 2013 06:44:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:content-type:content-transfer-encoding:x-gm-message-state; bh=IBWdpDK+qD2ZTu3nFQrFCmW5DWW9ZebOqY3M+/Y3N6E=; b=fLVXG5W8rCiZfNtXFMdFl8JcfVD11R9Z4oF55Hs0vR+GMFusmwxyGzBXnWghd6ktxQ fduL/IASfgD4S7RRmpxem/dbIJxd5RYhGBleeCXi8rS4Ajyq3pbOnYozXTZ6M4SuUTHg 371oQAKH4nDXBqGsliW1G1ZWlnH8q0ZBEFN+ANrMSANG7aigQHQMIUZ7cxRLDkbtmO13 aIjPmZlhqZ2Rw+gfE/7gH+94Gsf+IzA9hVxXp0bN/XNYCAHshpxrLlAx2oZ/FWWWRWdG rfkNrWELPcXvqJwGJQoMZQcn/TzLrBz4U/Xhi9WozFWwh+Bjle9w7rfVXasezTJTS2v0 V+sA== X-Received: by 10.224.175.82 with SMTP id w18mr2241152qaz.65.1359038694598; Thu, 24 Jan 2013 06:44:54 -0800 (PST) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPS id z17sm15074493qem.4.2013.01.24.06.44.52 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jan 2013 06:44:53 -0800 (PST) Message-ID: <51014915.8020807@dev.mellanox.co.il> Date: Thu, 24 Jan 2013 09:45:41 -0500 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH] opensm/osm_sa_mcmember_record.c: Only use scope from MC group in copy_from_create_mc_rec X-Gm-Message-State: ALoCoQlmvLj702pr+MCitcDArF6ybyU5kIc8RiKjGyP3O5WPYEJ+8HPU2MokyWXzdUwVY53Ncr+i Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Hal Rosenstock --- -- 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 --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;