All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Jim Schutt <jaschut-4OHPYypu0djtX7QSmKvirg@public.gmane.org>
Subject: Re: [PATCH] opensm/osm_torus.c: Increase PORTGRP_MAX_PORTS define
Date: Wed, 17 Dec 2014 05:46:40 -0500	[thread overview]
Message-ID: <54915F10.4000205@dev.mellanox.co.il> (raw)
In-Reply-To: <1418808490-27687-1-git-send-email-alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>

On 12/17/2014 4:28 AM, Alex Netes wrote:
> 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 <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> ---
>  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 <opensm/osm_opensm.h>
>  
>  #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
>  

There is portgroup_max_ports configuration parameter for torus to change this if needed.

man torus-2QoS.conf states:
       portgroup_max_ports max_ports
              This keyword specifies the maximum  number  of  parallel  inter-
              switch  links,  and  also  the  maximum number of host ports per
              switch, that torus-2QoS can accommodate.  The default  value  is
              16.   Torus-2QoS  will log an error message during topology dis-
              covery if this parameter needs to be increased.  If this keyword
              appears multiple times, the last instance prevails.

              Note  that  the  switch management port (switch port 0) gets put
              into the same port group with the host ports, so if you have  16
              host  ports  per switch, portgroup_max_ports would need to be at
              least 17.

Is there really a need to change the default for this ?

-- Hal
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2014-12-17 10:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-17  9:28 [PATCH] opensm/osm_torus.c: Increase PORTGRP_MAX_PORTS define Alex Netes
     [not found] ` <1418808490-27687-1-git-send-email-alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2014-12-17 10:46   ` Hal Rosenstock [this message]
     [not found]     ` <54915F10.4000205-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2014-12-17 10:59       ` Alex Netes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54915F10.4000205@dev.mellanox.co.il \
    --to=hal-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
    --cc=alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=jaschut-4OHPYypu0djtX7QSmKvirg@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.