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:

committed by
Paul Gortmaker

parent
d1bcb11544
commit
f831c963b5
@@ -41,10 +41,6 @@
|
||||
#include "config.h"
|
||||
|
||||
|
||||
#ifndef CONFIG_TIPC_NODES
|
||||
#define CONFIG_TIPC_NODES 255
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_TIPC_PORTS
|
||||
#define CONFIG_TIPC_PORTS 8191
|
||||
#endif
|
||||
@@ -64,7 +60,6 @@ const char tipc_alphabet[] =
|
||||
/* configurable TIPC parameters */
|
||||
|
||||
u32 tipc_own_addr;
|
||||
int tipc_max_nodes;
|
||||
int tipc_max_ports;
|
||||
int tipc_max_subscriptions;
|
||||
int tipc_max_publications;
|
||||
@@ -192,7 +187,6 @@ static int __init tipc_init(void)
|
||||
tipc_max_publications = 10000;
|
||||
tipc_max_subscriptions = 2000;
|
||||
tipc_max_ports = CONFIG_TIPC_PORTS;
|
||||
tipc_max_nodes = CONFIG_TIPC_NODES;
|
||||
tipc_net_id = 4711;
|
||||
|
||||
res = tipc_core_start();
|
||||
|
Reference in New Issue
Block a user