Skip to content

Commit

Permalink
tipc: Consolidate subscriber & subscriber port references
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and David S. Miller committed May 19, 2008
1 parent fc5ad58 commit 28353e7
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 90 deletions.
3 changes: 1 addition & 2 deletions net/tipc/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) ||
Expand Down
Loading

0 comments on commit 28353e7

Please sign in to comment.