From patchwork Wed Dec 17 09:28:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Netes X-Patchwork-Id: 5505891 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 459F1BEEA8 for ; Wed, 17 Dec 2014 09:39:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 75AF3209CF for ; Wed, 17 Dec 2014 09:39:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7813320A1B for ; Wed, 17 Dec 2014 09:39:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751839AbaLQJjX (ORCPT ); Wed, 17 Dec 2014 04:39:23 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:49360 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751841AbaLQJjW (ORCPT ); Wed, 17 Dec 2014 04:39:22 -0500 Received: by mail-wg0-f48.google.com with SMTP id y19so19718606wgg.35 for ; Wed, 17 Dec 2014 01:39:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=Qqxrt4FXupPPE2W76FiPpuK+Th9WGGRqm1ssesURhKg=; b=JAE8So2qzSbVXhNiRjFK+1sH5wdkTR2BAQ1qZRl/VPgtaNBjQF9zoaVQ4fzz1tljLz 0tOVOt7AjqtErRLnAsTGqw6/I8pKVP5bfldMo5vtZHEa0z+YBLtnstRYrrZRIZhe2InE +kM+AE85PkCcMjN9Vey6kvC74nVGp7VS67zxLiSkA9eIOhsxbi1VVchrM+4RwcgLo3MS PPebmOLlRaO4PxK8oA9sdVsfszI67V1xG4k0gpDaV+g10QI9yG4+M4YvhG9UMx+WS7gQ tFFeZmriHyBWW6ze93ut0fj/nciyIJV4Hn4Q+qDO3ZojmwkYHwxsBbcePlVgpenEDT5C vR1g== X-Gm-Message-State: ALoCoQlbV+3u5DDVibEod8+msTi9bDHcrECqbXCD3RN0TRQ6t4lNNUz+rJyiEmadZye3LHwNZbHW X-Received: by 10.180.98.138 with SMTP id ei10mr12747649wib.32.1418809160492; Wed, 17 Dec 2014 01:39:20 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id l3sm4378652wje.12.2014.12.17.01.39.18 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Wed, 17 Dec 2014 01:39:19 -0800 (PST) From: Alex Netes To: linux-rdma@vger.kernel.org, Hal Rosenstock Cc: Alex Netes Subject: [PATCH] opensm/osm_torus.c: Increase PORTGRP_MAX_PORTS define Date: Wed, 17 Dec 2014 11:28:10 +0200 Message-Id: <1418808490-27687-1-git-send-email-alexne@mellanox.com> X-Mailer: git-send-email 1.7.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Torus-2QoS fails to configure fabric with more than 16 HCAs. This patch extends PORTGRP_MAX_PORTS to be 34. Maximal practical ports per switch - 2 reserved ports (minimal of needed ports for switch to switch connections in 2D Torus). Signed-off-by: Alex Netes --- opensm/osm_torus.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/opensm/osm_torus.c b/opensm/osm_torus.c index 330f55d..b01f69f 100644 --- a/opensm/osm_torus.c +++ b/opensm/osm_torus.c @@ -59,7 +59,7 @@ #include #define TORUS_MAX_DIM 3 -#define PORTGRP_MAX_PORTS 16 +#define PORTGRP_MAX_PORTS 34 #define SWITCH_MAX_PORTGRPS (1 + 2 * TORUS_MAX_DIM) #define DEFAULT_MAX_CHANGES 32