tipc: Eliminate configuration for maximum number of cluster nodes

Gets rid of the need for users to specify the maximum number of
cluster nodes supported by TIPC. TIPC now automatically provides
support for all 4K nodes allowed by its addressing scheme.

Note: This change sets TIPC's memory usage to the amount used by
a maximum size node table with 4K entries.  An upcoming patch that
converts the node table from a linear array to a hash table will
compact the node table to a more efficient design, but for clarity
it is nice to have all the Kconfig infrastruture go away separately.

Signed-off-by: Allan Stephens <Allan.Stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
This commit is contained in:
Allan Stephens 2011-02-25 14:22:11 -05:00 committed by Paul Gortmaker
parent d1bcb11544
commit f831c963b5
7 changed files with 9 additions and 57 deletions

View file

@ -114,8 +114,7 @@ atomic_t tipc_num_links;
static int net_start(void)
{
tipc_nodes = kcalloc(tipc_max_nodes + 1,
sizeof(*tipc_nodes), GFP_ATOMIC);
tipc_nodes = kcalloc(4096, sizeof(*tipc_nodes), GFP_ATOMIC);
tipc_highest_node = 0;
atomic_set(&tipc_num_links, 0);