From patchwork Tue Apr 12 17:25:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Chu X-Patchwork-Id: 701371 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3CHPlgX026168 for ; Tue, 12 Apr 2011 17:25:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755515Ab1DLRZq (ORCPT ); Tue, 12 Apr 2011 13:25:46 -0400 Received: from nspiron-3.llnl.gov ([128.115.41.83]:3355 "EHLO smtp.llnl.gov" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755368Ab1DLRZq (ORCPT ); Tue, 12 Apr 2011 13:25:46 -0400 X-Attachments: None Received: from auk59.llnl.gov (HELO [134.9.93.24]) ([134.9.93.24]) by smtp.llnl.gov with ESMTP; 12 Apr 2011 10:25:45 -0700 Subject: [ibsim] increase max nodes and switches to support similation of larger fabrics From: Albert Chu To: Alex Netes Cc: "linux-rdma@vger.kernel.org" Date: Tue, 12 Apr 2011 10:25:45 -0700 Message-Id: <1302629145.21002.12.camel@auk59.llnl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-19.el5) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 12 Apr 2011 17:25:47 +0000 (UTC) The maximum number of nodes and switches allowed by ibsim was too small for some of our larger fabrics, so I increased the size. Longer term, there shouldn't be a fixed size for these and the arrays should grow in size as needed, however I'll leave that for another day. Al diff --git a/ibsim/sim.h b/ibsim/sim.h index 5a8a92f..a4d68bf 100644 --- a/ibsim/sim.h +++ b/ibsim/sim.h @@ -37,8 +37,8 @@ #include -#define MAXNETNODES 2048 -#define MAXNETSWITCHS 256 +#define MAXNETNODES 8192 +#define MAXNETSWITCHS 1024 #define MAXNETPORTS (MAXNETSWITCHS*36+MAXNETNODES*2) #define MAXNETALIASES MAXNETPORTS