]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: Consolidate subscriber & subscriber port references
authorAllan Stephens <allan.stephens@windriver.com>
Mon, 19 May 2008 20:29:47 +0000 (13:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 May 2008 20:29:47 +0000 (13:29 -0700)
commit3eff91cac7c23b201bb14657a519e454bcd59183
tree69f60055703f0213601d3a2d38c26886def6e52e
parentd44f4a03298d99ba88f5f6d17d005ee997418d43
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>
net/tipc/core.c
net/tipc/subscr.c
net/tipc/subscr.h