]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit28353e7fad1d224687220a448950dc552645a50a
tree69f60055703f0213601d3a2d38c26886def6e52e
parentfc5ad582709ce9c7b9ab7b70c1e5b5e2cfc384db
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