ftree: Allow defining only io_guids file and consider rest of nodes as CN nodes
PATCH 1/1 ftree: Allow defining only io_guids file and consider rest of nodes as CN nodes
Quoted 1 line
From
2068a60399865590aff094738e3350f972c6e9b4Mon Sep 17 00:00:00 2001
From: Vladimir Koushnir <vladimirk-VPRAkNaXOzVWk0Htik3J/[email protected]>
Date: Sun, 9 Jun 2013 18:05:01 +0300
Subject: [PATCH] ftree: Allow defining only io_guids file and consider rest of nodes as CN nodes
In the current implementation cn_guids and io_guids files should be provided in order to separate between
Compute Nodes and IO Nodes for ftree routing.
This approach is not optimal when there are several IO Nodes the fabric compared to thousands of CNs.
Provided patch considers all nodes to be Compute nodes by default. If some guid is presenting in io_guids file and not presenting in cn_guid file the corresponding node will be considered as IO node.
--- opensm/osm_subnet.c | 7 ++++- opensm/osm_ucast_ftree.c | 53 +++++++++++++++++++++++---------------------- 2 files changed, 32 insertions(+), 28 deletions(-)
opensm/osm_subnet.c +5 -2
@@ -2879,11 +2879,14 @@ int osm_subn_output_conf(FILE *out, IN osm_subn_opt_t * p_opts)fprintf (out,"# The file holding the fat-tree I/O node guids\n" -"# One guid in each line\nio_guid_file %s\n\n" , +"# One guid in each line.\n" +"# If only io_guid file is provided, the rest of nodes\n" +"# are considered as compute nodes.\n" +"io_guid_file %s\n\n" , p_opts->io_guid_file ? p_opts->io_guid_file : null_str);fprintf (out, -"# Number of reverse hops allowed for I/O nodes \n" +"# Number of reverse hops allowed for I/O nodes\n" "# Used for connectivity between I/O nodes connected to Top Switches\nmax_reverse_hops %d\n\n" , p_opts->max_reverse_hops);
opensm/osm_ucast_ftree.c +27 -26
83 lines not on this page · raw message
Signature · 6 lines
1.7.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html