From patchwork Wed Oct 24 16:26:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 1639511 X-Patchwork-Delegate: alexne@voltaire.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 7CDCFDFABE for ; Wed, 24 Oct 2012 16:26:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934322Ab2JXQ0c (ORCPT ); Wed, 24 Oct 2012 12:26:32 -0400 Received: from mail-ia0-f174.google.com ([209.85.210.174]:37652 "EHLO mail-ia0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933634Ab2JXQ0c (ORCPT ); Wed, 24 Oct 2012 12:26:32 -0400 Received: by mail-ia0-f174.google.com with SMTP id y32so506431iag.19 for ; Wed, 24 Oct 2012 09:26:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent:x-gm-message-state; bh=dlxiAUlypkA3rBw8Wy41f95pCiw2eb0mK1LneB5g3vk=; b=PPdg+R/V3YiNPK1/xOh2R20hJsrnKZYlS2JFEf221pbuqz2GN6dA3fjI+ke9XMfwoq aM3j6xNBw4FocoRFS1kZ1SjNNtZ0amUOPFdtxRdEwtmeIqI2yxCXVat1U4RQy8FjNlBz Hy4JCSWpQYPccu0NmC2zuXSGOX5DeIpwJ92jQcqF7UpyA1clxbcTAlfJaejcrV+eYqq1 CMUy1GuVtsnOJJjPdyxmGb6Tw7KAdCKD8u8IXOBm1nwLPtAHHgeu1TVS5vADrcJSLgHU BshvDDkeHjsHowCyT/F3GX6G+ev5Q8QzRJWfnCSY1RfJnitHZ9OJEsiOYwR+mgd3ePfy Jyyw== Received: by 10.42.61.196 with SMTP id v4mr14424713ich.24.1351095991749; Wed, 24 Oct 2012 09:26:31 -0700 (PDT) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPS id ex10sm2326459igc.15.2012.10.24.09.26.29 (version=SSLv3 cipher=OTHER); Wed, 24 Oct 2012 09:26:30 -0700 (PDT) Date: Wed, 24 Oct 2012 18:26:27 +0200 From: Alex Netes To: linux-rdma@vger.kernel.org, Mike Heinz Subject: [PATCH] opensm/osm_subnet.c: Only parameters that marked with can_update flag should be updated during conf file rescan Message-ID: <20121024162627.GD18591@calypso> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQnlTfRd2oWwUUHZFS/6WbkY7qLDaIL92bC4W8PU4cb6l+i9hKEmFgEYZc1MNcbgtJn1fRdV Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Alex Netes --- opensm/osm_subnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensm/osm_subnet.c b/opensm/osm_subnet.c index b9a491b..541105a 100644 --- a/opensm/osm_subnet.c +++ b/opensm/osm_subnet.c @@ -2168,7 +2168,7 @@ int osm_subn_rescan_conf_files(IN osm_subn_t * p_subn) token_matched = 1; - if (strcmp(r->name, p_key)) + if (!r->can_update || strcmp(r->name, p_key)) continue; p_field1 = (void *)p_opts->file_opts + r->opt_offset;