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/subscr.h | |
parent | fc5ad582709ce9c7b9ab7b70c1e5b5e2cfc384db (diff) | |
download | kernel_samsung_espresso10-28353e7fad1d224687220a448950dc552645a50a.zip kernel_samsung_espresso10-28353e7fad1d224687220a448950dc552645a50a.tar.gz kernel_samsung_espresso10-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/subscr.h')
-rw-r--r-- | net/tipc/subscr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/subscr.h b/net/tipc/subscr.h index 3e3e026..b9af687 100644 --- a/net/tipc/subscr.h +++ b/net/tipc/subscr.h @@ -49,12 +49,12 @@ typedef void (*tipc_subscr_event) (struct subscription *sub, * @timeout: duration of subscription (in ms) * @filter: event filtering to be done for subscription * @event_cb: routine invoked when a subscription event is detected + * @server_ref: object reference of server port associated with subscription * @swap: indicates if subscriber uses opposite endianness in its messages * @evt: template for events generated by subscription * @subscription_list: adjacent subscriptions in subscriber's subscription list * @nameseq_list: adjacent subscriptions in name sequence's subscription list * @timer_ref: reference to timer governing subscription duration (may be NULL) - * @owner: pointer to subscriber object associated with this subscription */ struct subscription { @@ -62,12 +62,12 @@ struct subscription { u32 timeout; u32 filter; tipc_subscr_event event_cb; + u32 server_ref; int swap; struct tipc_event evt; struct list_head subscription_list; struct list_head nameseq_list; struct timer_list timer; - struct subscriber *owner; }; int tipc_subscr_overlap(struct subscription * sub, |