From patchwork Wed Dec 19 19:16:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1896801 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 A44193FC64 for ; Wed, 19 Dec 2012 19:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751258Ab2LSTXR (ORCPT ); Wed, 19 Dec 2012 14:23:17 -0500 Received: from mail-vc0-f172.google.com ([209.85.220.172]:63546 "EHLO mail-vc0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751207Ab2LSTXR (ORCPT ); Wed, 19 Dec 2012 14:23:17 -0500 X-Greylist: delayed 383 seconds by postgrey-1.27 at vger.kernel.org; Wed, 19 Dec 2012 14:23:17 EST Received: by mail-vc0-f172.google.com with SMTP id fw7so2753128vcb.17 for ; Wed, 19 Dec 2012 11:23:16 -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=20s/LKeGaII9dDl/kDc5Tal1c7PpIE23ubqtp8ZxVDA=; b=BSHeF8rOEMyw5OCFxymVRyVxCLEDC2eOSr5riKlGD0q2AjCalekB8PIXDcyZNH7Lmi fYcti5RCbBF4UUEZhQdBeK15fC7HB/7lUgTw7J0x3qqYO2Rt/4i5P1xhBnChrCMx19u1 gMoFkK6iAxGka+3huUecs+b8ObsnbFX77EsdpjQVVpEbWMr1fEkiKoujECsWrNncuA9A WkLnL8BQDF7uInFO30nMPYsar+Le7Gw606dpJczcLzW4nLGb/+PeR2tzWhyeUCyHqZRU CD0e3O9ZOZducpzxZXWp8hFo4B/VYqklnWuhux0T1erucI4+vtCWG0/5+pXEDUH9LDfl Qx2A== X-Received: by 10.52.16.229 with SMTP id j5mr9054272vdd.111.1355944612560; Wed, 19 Dec 2012 11:16:52 -0800 (PST) Received: from [192.168.1.102] (c-71-192-10-85.hsd1.ma.comcast.net. [71.192.10.85]) by mx.google.com with ESMTPS id yf5sm4512091veb.13.2012.12.19.11.16.49 (version=SSLv3 cipher=OTHER); Wed, 19 Dec 2012 11:16:51 -0800 (PST) Message-ID: <50D2129F.7040707@dev.mellanox.co.il> Date: Wed, 19 Dec 2012 14:16:47 -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_prtn_config.c: Insert autogenerated pkey into MGID for IPoIB X-Gm-Message-State: ALoCoQm79sMFy/ZQGqferi1RflNfLyEmyIuiyCyvPx8L8jbozI4Si04hvURbbfbtrZkiHPvd56W/ 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_prtn_config.c b/opensm/osm_prtn_config.c index 8714eba..a3524b1 100644 --- a/opensm/osm_prtn_config.c +++ b/opensm/osm_prtn_config.c @@ -248,7 +248,7 @@ static int partition_create(unsigned lineno, struct part_conf *conf, struct precreate_mgroup broadcast_mgroup; memset(&broadcast_mgroup, 0, sizeof(broadcast_mgroup)); broadcast_mgroup.mgid = osm_ipoib_broadcast_mgid; - pkey |= cl_hton16(0x8000); + pkey = CL_HTON16(0x8000) | conf->p_prtn->pkey; memcpy(&broadcast_mgroup.mgid.raw[4], &pkey , sizeof(pkey)); broadcast_mgroup.flags.mtu = conf->flags.mtu; broadcast_mgroup.flags.rate = conf->flags.rate;