diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-05-19 13:29:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-19 13:29:47 -0700 |
commit | 28353e7fad1d224687220a448950dc552645a50a (patch) | |
tree | 69f60055703f0213601d3a2d38c26886def6e52e /net/tipc/core.c | |
parent | fc5ad582709ce9c7b9ab7b70c1e5b5e2cfc384db (diff) | |
download | linux-28353e7fad1d224687220a448950dc552645a50a.tar.bz2 |
tipc: Consolidate subscriber & subscriber port references
This patch modifies TIPC's network topology service so that it
only requires a single reference table entry per subscriber
connection, rather than two. This is achieved by letting the
reference to the server port communicating with the subscriber
act as the reference to the subscriber object itself. (Since
the subscriber cannot exist without its port, and vice versa,
this dual role for the reference is perfectly natural.) This
consolidation reduces the size of the reference table by 50%
in the default configuration.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/core.c')
-rw-r--r-- | net/tipc/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/tipc/core.c b/net/tipc/core.c index 6d6aa5a3c240..3d97386af095 100644 --- a/net/tipc/core.c +++ b/net/tipc/core.c @@ -164,8 +164,7 @@ int tipc_core_start(void) tipc_mode = TIPC_NODE_MODE; if ((res = tipc_handler_start()) || - (res = tipc_ref_table_init(tipc_max_ports + tipc_max_subscriptions, - tipc_random)) || + (res = tipc_ref_table_init(tipc_max_ports, tipc_random)) || (res = tipc_reg_start()) || (res = tipc_nametbl_init()) || (res = tipc_k_signal((Handler)tipc_subscr_start, 0)) || |