From patchwork Tue Jul 31 16:04:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 1260831 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 85AD6DF26F for ; Tue, 31 Jul 2012 16:06:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755206Ab2GaQGI (ORCPT ); Tue, 31 Jul 2012 12:06:08 -0400 Received: from mail-vc0-f174.google.com ([209.85.220.174]:51443 "EHLO mail-vc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755168Ab2GaQGI (ORCPT ); Tue, 31 Jul 2012 12:06:08 -0400 Received: by mail-vc0-f174.google.com with SMTP id fk26so5974874vcb.19 for ; Tue, 31 Jul 2012 09:06:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=LXXmvH2e6roJqimRKyV7N1q6S0C687BavtdzgnbN24s=; b=TXppgNUK3wtTPIbOoUawANvY3TLdRKNTx2fydkKKSJsMrL89+UqUua3HY017y5HMmG MMi5xQnkAw81Iz2+mvLFxd3BVnXt4CIz2juMfrvfOwEzXRlHsdYXS9ESK7twWuhKPAEs cy3VgXY2JHw9vB5OnqKFCmosVFUsqq7cr8HcDDW3EdwRfmY/0KR7yNIH4UL3RemMjHoJ y80llg9Ys3HBv406fmen+hvbPc53FicdM911xW0Ly9AVGAb/afuE/B+v34xZur5bFN+l j0rxNsJVGFBChM219x8N8SPcSvs4u4oaenT3Hbf1vIDTWZyiZLdWhx856ECJdFKnKpPE xutA== Received: by 10.52.65.145 with SMTP id x17mr12620289vds.117.1343750767667; Tue, 31 Jul 2012 09:06:07 -0700 (PDT) Received: from localhost ([193.47.165.251]) by mx.google.com with ESMTPS id i19sm413819vdt.18.2012.07.31.09.06.06 (version=SSLv3 cipher=OTHER); Tue, 31 Jul 2012 09:06:07 -0700 (PDT) From: Alex Netes To: linux-rdma@vger.kernel.org Cc: Alex Netes , Tamir Ronen Subject: [PATCH 04/27] Fixed Multicast precreation parsing Date: Tue, 31 Jul 2012 19:04:32 +0300 Message-Id: <1343750695-28063-4-git-send-email-alexne@mellanox.com> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1343750695-28063-1-git-send-email-alexne@mellanox.com> References: <1343750695-28063-1-git-send-email-alexne@mellanox.com> X-Gm-Message-State: ALoCoQkiiZwWm1vn44DW+Gx1NwrPmcuxKbA1B0JXuG2jFOyhaogZ29s0Q5sySYySEvQJd4nG7bgo Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Now allow to define partition without members with only multicast group definitions. Default=0x7fff : ALL; Default=0x7fff,ipoib: mgid=ff12:401b::0719; Signed-off-by: Tamir Ronen Signed-off-by: Alex Netes --- opensm/osm_prtn_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensm/osm_prtn_config.c b/opensm/osm_prtn_config.c index 6798979..750cbe0 100644 --- a/opensm/osm_prtn_config.c +++ b/opensm/osm_prtn_config.c @@ -670,6 +670,7 @@ skip_header: if (q) *q++ = '\0'; ret = parse_name_token(p, &name, &flag); + len += ret; if (strcmp(name, "mgid") == 0) { /* parse an mgid line if specified. */ @@ -685,7 +686,6 @@ skip_header: return -1; } p += ret; - len += ret; } while (q); done: