diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-05-19 13:27:31 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-19 13:27:31 -0700 |
commit | e15f880409c807bb589e9492263564e80f0de6e9 (patch) | |
tree | d451964bd4a58a8a5566413db15a44b79227400a /net/tipc/subscr.c | |
parent | 236ae64063faf7d3398b4f9a889421b0d27a69d2 (diff) | |
download | op-kernel-dev-e15f880409c807bb589e9492263564e80f0de6e9.zip op-kernel-dev-e15f880409c807bb589e9492263564e80f0de6e9.tar.gz |
tipc: Add support for customized subscription overlap handling
This patch enables TIPC's topology server code to do customized
overlap detection handling on a per-subscription basis. (This
capability is needed to support the upcoming introduction of
multi-cluster TIPC networks.)
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/subscr.c')
-rw-r--r-- | net/tipc/subscr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index 8f8d0a6..81e2bd5 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c @@ -157,7 +157,8 @@ void tipc_subscr_report_overlap(struct subscription *sub, return; if (!must && !(sub->filter & TIPC_SUB_PORTS)) return; - subscr_send_event(sub, found_lower, found_upper, event, port_ref, node); + + sub->event_cb(sub, found_lower, found_upper, event, port_ref, node); } /** @@ -372,6 +373,7 @@ static void subscr_subscribe(struct tipc_subscr *s, subscr_terminate(subscriber); return; } + sub->event_cb = subscr_send_event; memcpy(&sub->evt.s, s, sizeof(struct tipc_subscr)); INIT_LIST_HEAD(&sub->subscription_list); INIT_LIST_HEAD(&sub->nameseq_list); |