aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2015-05-03 22:36:44 -0400
committerDavid S. Miller <davem@davemloft.net>2015-05-04 15:04:00 -0400
commit57f1d1868fb5d71a20bfb1bc807274471c2ff459 (patch)
treeeea2c884ece025f8ac5606d52808ce66ad896b18 /net/tipc
parent29a1ff6596fc6fbd1a2de0f2301bcd301dfcb4eb (diff)
tipc: rename functions defined in subscr.c
When a topology server accepts a connection request from its client, it allocates a connection instance and a tipc_subscriber structure object. The former is used to communicate with client, and the latter is often treated as a subscriber which manages all subscription events requested from a same client. When a topology server receives a request of subscribing name services from a client through the connection, it creates a tipc_subscription structure instance which is seen as a subscription recording what name services are subscribed. In order to manage all subscriptions from a same client, topology server links them into the subscrp_list of the subscriber. So subscriber and subscription completely represents different meanings respectively, but function names associated with them make us so confused that we are unable to easily tell which function is against subscriber and which is to subscription. So we want to eliminate the confusion by renaming them. Signed-off-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Jon Maloy <jon.maloy@ericson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/core.c4
-rw-r--r--net/tipc/name_table.c34
-rw-r--r--net/tipc/subscr.c116
-rw-r--r--net/tipc/subscr.h18
4 files changed, 75 insertions, 97 deletions
diff --git a/net/tipc/core.c b/net/tipc/core.c
index be1c9fa60b09..005ba5eb0ea4 100644
--- a/net/tipc/core.c
+++ b/net/tipc/core.c
@@ -68,7 +68,7 @@ static int __net_init tipc_init_net(struct net *net)
68 if (err) 68 if (err)
69 goto out_nametbl; 69 goto out_nametbl;
70 70
71 err = tipc_subscr_start(net); 71 err = tipc_topsrv_start(net);
72 if (err) 72 if (err)
73 goto out_subscr; 73 goto out_subscr;
74 return 0; 74 return 0;
@@ -83,7 +83,7 @@ out_sk_rht:
83 83
84static void __net_exit tipc_exit_net(struct net *net) 84static void __net_exit tipc_exit_net(struct net *net)
85{ 85{
86 tipc_subscr_stop(net); 86 tipc_topsrv_stop(net);
87 tipc_net_stop(net); 87 tipc_net_stop(net);
88 tipc_nametbl_stop(net); 88 tipc_nametbl_stop(net);
89 tipc_sk_rht_destroy(net); 89 tipc_sk_rht_destroy(net);
diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c
index ab0ac62a1287..0f47f08bf38f 100644
--- a/net/tipc/name_table.c
+++ b/net/tipc/name_table.c
@@ -330,13 +330,9 @@ static struct publication *tipc_nameseq_insert_publ(struct net *net,
330 330
331 /* Any subscriptions waiting for notification? */ 331 /* Any subscriptions waiting for notification? */
332 list_for_each_entry_safe(s, st, &nseq->subscriptions, nameseq_list) { 332 list_for_each_entry_safe(s, st, &nseq->subscriptions, nameseq_list) {
333 tipc_subscr_report_overlap(s, 333 tipc_subscrp_report_overlap(s, publ->lower, publ->upper,
334 publ->lower, 334 TIPC_PUBLISHED, publ->ref,
335 publ->upper, 335 publ->node, created_subseq);
336 TIPC_PUBLISHED,
337 publ->ref,
338 publ->node,
339 created_subseq);
340 } 336 }
341 return publ; 337 return publ;
342} 338}
@@ -404,13 +400,9 @@ found:
404 400
405 /* Notify any waiting subscriptions */ 401 /* Notify any waiting subscriptions */
406 list_for_each_entry_safe(s, st, &nseq->subscriptions, nameseq_list) { 402 list_for_each_entry_safe(s, st, &nseq->subscriptions, nameseq_list) {
407 tipc_subscr_report_overlap(s, 403 tipc_subscrp_report_overlap(s, publ->lower, publ->upper,
408 publ->lower, 404 TIPC_WITHDRAWN, publ->ref,
409 publ->upper, 405 publ->node, removed_subseq);
410 TIPC_WITHDRAWN,
411 publ->ref,
412 publ->node,
413 removed_subseq);
414 } 406 }
415 407
416 return publ; 408 return publ;
@@ -432,19 +424,17 @@ static void tipc_nameseq_subscribe(struct name_seq *nseq,
432 return; 424 return;
433 425
434 while (sseq != &nseq->sseqs[nseq->first_free]) { 426 while (sseq != &nseq->sseqs[nseq->first_free]) {
435 if (tipc_subscr_overlap(s, sseq->lower, sseq->upper)) { 427 if (tipc_subscrp_check_overlap(s, sseq->lower, sseq->upper)) {
436 struct publication *crs; 428 struct publication *crs;
437 struct name_info *info = sseq->info; 429 struct name_info *info = sseq->info;
438 int must_report = 1; 430 int must_report = 1;
439 431
440 list_for_each_entry(crs, &info->zone_list, zone_list) { 432 list_for_each_entry(crs, &info->zone_list, zone_list) {
441 tipc_subscr_report_overlap(s, 433 tipc_subscrp_report_overlap(s, sseq->lower,
442 sseq->lower, 434 sseq->upper,
443 sseq->upper, 435 TIPC_PUBLISHED,
444 TIPC_PUBLISHED, 436 crs->ref, crs->node,
445 crs->ref, 437 must_report);
446 crs->node,
447 must_report);
448 must_report = 0; 438 must_report = 0;
449 } 439 }
450 } 440 }
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c
index 1c147c869c2e..caec0b2b0740 100644
--- a/net/tipc/subscr.c
+++ b/net/tipc/subscr.c
@@ -42,12 +42,12 @@
42 * struct tipc_subscriber - TIPC network topology subscriber 42 * struct tipc_subscriber - TIPC network topology subscriber
43 * @conid: connection identifier to server connecting to subscriber 43 * @conid: connection identifier to server connecting to subscriber
44 * @lock: control access to subscriber 44 * @lock: control access to subscriber
45 * @subscription_list: list of subscription objects for this subscriber 45 * @subscrp_list: list of subscription objects for this subscriber
46 */ 46 */
47struct tipc_subscriber { 47struct tipc_subscriber {
48 int conid; 48 int conid;
49 spinlock_t lock; 49 spinlock_t lock;
50 struct list_head subscription_list; 50 struct list_head subscrp_list;
51}; 51};
52 52
53/** 53/**
@@ -62,9 +62,9 @@ static u32 htohl(u32 in, int swap)
62 return swap ? swab32(in) : in; 62 return swap ? swab32(in) : in;
63} 63}
64 64
65static void subscr_send_event(struct tipc_subscription *sub, u32 found_lower, 65static void tipc_subscrp_send_event(struct tipc_subscription *sub,
66 u32 found_upper, u32 event, u32 port_ref, 66 u32 found_lower, u32 found_upper,
67 u32 node) 67 u32 event, u32 port_ref, u32 node)
68{ 68{
69 struct tipc_net *tn = net_generic(sub->net, tipc_net_id); 69 struct tipc_net *tn = net_generic(sub->net, tipc_net_id);
70 struct tipc_subscriber *subscriber = sub->subscriber; 70 struct tipc_subscriber *subscriber = sub->subscriber;
@@ -82,12 +82,13 @@ static void subscr_send_event(struct tipc_subscription *sub, u32 found_lower,
82} 82}
83 83
84/** 84/**
85 * tipc_subscr_overlap - test for subscription overlap with the given values 85 * tipc_subscrp_check_overlap - test for subscription overlap with the
86 * given values
86 * 87 *
87 * Returns 1 if there is overlap, otherwise 0. 88 * Returns 1 if there is overlap, otherwise 0.
88 */ 89 */
89int tipc_subscr_overlap(struct tipc_subscription *sub, u32 found_lower, 90int tipc_subscrp_check_overlap(struct tipc_subscription *sub, u32 found_lower,
90 u32 found_upper) 91 u32 found_upper)
91{ 92{
92 if (found_lower < sub->seq.lower) 93 if (found_lower < sub->seq.lower)
93 found_lower = sub->seq.lower; 94 found_lower = sub->seq.lower;
@@ -98,24 +99,20 @@ int tipc_subscr_overlap(struct tipc_subscription *sub, u32 found_lower,
98 return 1; 99 return 1;
99} 100}
100 101
101/** 102void tipc_subscrp_report_overlap(struct tipc_subscription *sub, u32 found_lower,
102 * tipc_subscr_report_overlap - issue event if there is subscription overlap 103 u32 found_upper, u32 event, u32 port_ref,
103 * 104 u32 node, int must)
104 * Protected by nameseq.lock in name_table.c
105 */
106void tipc_subscr_report_overlap(struct tipc_subscription *sub, u32 found_lower,
107 u32 found_upper, u32 event, u32 port_ref,
108 u32 node, int must)
109{ 105{
110 if (!tipc_subscr_overlap(sub, found_lower, found_upper)) 106 if (!tipc_subscrp_check_overlap(sub, found_lower, found_upper))
111 return; 107 return;
112 if (!must && !(sub->filter & TIPC_SUB_PORTS)) 108 if (!must && !(sub->filter & TIPC_SUB_PORTS))
113 return; 109 return;
114 110
115 subscr_send_event(sub, found_lower, found_upper, event, port_ref, node); 111 tipc_subscrp_send_event(sub, found_lower, found_upper, event, port_ref,
112 node);
116} 113}
117 114
118static void subscr_timeout(unsigned long data) 115static void tipc_subscrp_timeout(unsigned long data)
119{ 116{
120 struct tipc_subscription *sub = (struct tipc_subscription *)data; 117 struct tipc_subscription *sub = (struct tipc_subscription *)data;
121 struct tipc_subscriber *subscriber = sub->subscriber; 118 struct tipc_subscriber *subscriber = sub->subscriber;
@@ -134,35 +131,30 @@ static void subscr_timeout(unsigned long data)
134 tipc_nametbl_unsubscribe(sub); 131 tipc_nametbl_unsubscribe(sub);
135 132
136 /* Unlink subscription from subscriber */ 133 /* Unlink subscription from subscriber */
137 list_del(&sub->subscription_list); 134 list_del(&sub->subscrp_list);
138 135
139 spin_unlock_bh(&subscriber->lock); 136 spin_unlock_bh(&subscriber->lock);
140 137
141 /* Notify subscriber of timeout */ 138 /* Notify subscriber of timeout */
142 subscr_send_event(sub, sub->evt.s.seq.lower, sub->evt.s.seq.upper, 139 tipc_subscrp_send_event(sub, sub->evt.s.seq.lower, sub->evt.s.seq.upper,
143 TIPC_SUBSCR_TIMEOUT, 0, 0); 140 TIPC_SUBSCR_TIMEOUT, 0, 0);
144 141
145 /* Now destroy subscription */ 142 /* Now destroy subscription */
146 kfree(sub); 143 kfree(sub);
147 atomic_dec(&tn->subscription_count); 144 atomic_dec(&tn->subscription_count);
148} 145}
149 146
150/** 147static void tipc_subscrp_delete(struct tipc_subscription *sub)
151 * subscr_del - delete a subscription within a subscription list
152 *
153 * Called with subscriber lock held.
154 */
155static void subscr_del(struct tipc_subscription *sub)
156{ 148{
157 struct tipc_net *tn = net_generic(sub->net, tipc_net_id); 149 struct tipc_net *tn = net_generic(sub->net, tipc_net_id);
158 150
159 tipc_nametbl_unsubscribe(sub); 151 tipc_nametbl_unsubscribe(sub);
160 list_del(&sub->subscription_list); 152 list_del(&sub->subscrp_list);
161 kfree(sub); 153 kfree(sub);
162 atomic_dec(&tn->subscription_count); 154 atomic_dec(&tn->subscription_count);
163} 155}
164 156
165static void subscr_release(struct tipc_subscriber *subscriber) 157static void tipc_subscrb_delete(struct tipc_subscriber *subscriber)
166{ 158{
167 struct tipc_subscription *sub; 159 struct tipc_subscription *sub;
168 struct tipc_subscription *sub_temp; 160 struct tipc_subscription *sub_temp;
@@ -170,14 +162,14 @@ static void subscr_release(struct tipc_subscriber *subscriber)
170 spin_lock_bh(&subscriber->lock); 162 spin_lock_bh(&subscriber->lock);
171 163
172 /* Destroy any existing subscriptions for subscriber */ 164 /* Destroy any existing subscriptions for subscriber */
173 list_for_each_entry_safe(sub, sub_temp, &subscriber->subscription_list, 165 list_for_each_entry_safe(sub, sub_temp, &subscriber->subscrp_list,
174 subscription_list) { 166 subscrp_list) {
175 if (sub->timeout != TIPC_WAIT_FOREVER) { 167 if (sub->timeout != TIPC_WAIT_FOREVER) {
176 spin_unlock_bh(&subscriber->lock); 168 spin_unlock_bh(&subscriber->lock);
177 del_timer_sync(&sub->timer); 169 del_timer_sync(&sub->timer);
178 spin_lock_bh(&subscriber->lock); 170 spin_lock_bh(&subscriber->lock);
179 } 171 }
180 subscr_del(sub); 172 tipc_subscrp_delete(sub);
181 } 173 }
182 spin_unlock_bh(&subscriber->lock); 174 spin_unlock_bh(&subscriber->lock);
183 175
@@ -186,7 +178,7 @@ static void subscr_release(struct tipc_subscriber *subscriber)
186} 178}
187 179
188/** 180/**
189 * subscr_cancel - handle subscription cancellation request 181 * tipc_subscrp_cancel - handle subscription cancellation request
190 * 182 *
191 * Called with subscriber lock held. Routine must temporarily release lock 183 * Called with subscriber lock held. Routine must temporarily release lock
192 * to enable the subscription timeout routine to finish without deadlocking; 184 * to enable the subscription timeout routine to finish without deadlocking;
@@ -194,16 +186,16 @@ static void subscr_release(struct tipc_subscriber *subscriber)
194 * 186 *
195 * Note that fields of 's' use subscriber's endianness! 187 * Note that fields of 's' use subscriber's endianness!
196 */ 188 */
197static void subscr_cancel(struct tipc_subscr *s, 189static void tipc_subscrp_cancel(struct tipc_subscr *s,
198 struct tipc_subscriber *subscriber) 190 struct tipc_subscriber *subscriber)
199{ 191{
200 struct tipc_subscription *sub; 192 struct tipc_subscription *sub;
201 struct tipc_subscription *sub_temp; 193 struct tipc_subscription *sub_temp;
202 int found = 0; 194 int found = 0;
203 195
204 /* Find first matching subscription, exit if not found */ 196 /* Find first matching subscription, exit if not found */
205 list_for_each_entry_safe(sub, sub_temp, &subscriber->subscription_list, 197 list_for_each_entry_safe(sub, sub_temp, &subscriber->subscrp_list,
206 subscription_list) { 198 subscrp_list) {
207 if (!memcmp(s, &sub->evt.s, sizeof(struct tipc_subscr))) { 199 if (!memcmp(s, &sub->evt.s, sizeof(struct tipc_subscr))) {
208 found = 1; 200 found = 1;
209 break; 201 break;
@@ -219,17 +211,12 @@ static void subscr_cancel(struct tipc_subscr *s,
219 del_timer_sync(&sub->timer); 211 del_timer_sync(&sub->timer);
220 spin_lock_bh(&subscriber->lock); 212 spin_lock_bh(&subscriber->lock);
221 } 213 }
222 subscr_del(sub); 214 tipc_subscrp_delete(sub);
223} 215}
224 216
225/** 217static int tipc_subscrp_create(struct net *net, struct tipc_subscr *s,
226 * subscr_subscribe - create subscription for subscriber 218 struct tipc_subscriber *subscriber,
227 * 219 struct tipc_subscription **sub_p)
228 * Called with subscriber lock held.
229 */
230static int subscr_subscribe(struct net *net, struct tipc_subscr *s,
231 struct tipc_subscriber *subscriber,
232 struct tipc_subscription **sub_p)
233{ 220{
234 struct tipc_net *tn = net_generic(net, tipc_net_id); 221 struct tipc_net *tn = net_generic(net, tipc_net_id);
235 struct tipc_subscription *sub; 222 struct tipc_subscription *sub;
@@ -241,7 +228,7 @@ static int subscr_subscribe(struct net *net, struct tipc_subscr *s,
241 /* Detect & process a subscription cancellation request */ 228 /* Detect & process a subscription cancellation request */
242 if (s->filter & htohl(TIPC_SUB_CANCEL, swap)) { 229 if (s->filter & htohl(TIPC_SUB_CANCEL, swap)) {
243 s->filter &= ~htohl(TIPC_SUB_CANCEL, swap); 230 s->filter &= ~htohl(TIPC_SUB_CANCEL, swap);
244 subscr_cancel(s, subscriber); 231 tipc_subscrp_cancel(s, subscriber);
245 return 0; 232 return 0;
246 } 233 }
247 234
@@ -273,13 +260,14 @@ static int subscr_subscribe(struct net *net, struct tipc_subscr *s,
273 kfree(sub); 260 kfree(sub);
274 return -EINVAL; 261 return -EINVAL;
275 } 262 }
276 list_add(&sub->subscription_list, &subscriber->subscription_list); 263 list_add(&sub->subscrp_list, &subscriber->subscrp_list);
277 sub->subscriber = subscriber; 264 sub->subscriber = subscriber;
278 sub->swap = swap; 265 sub->swap = swap;
279 memcpy(&sub->evt.s, s, sizeof(struct tipc_subscr)); 266 memcpy(&sub->evt.s, s, sizeof(*s));
280 atomic_inc(&tn->subscription_count); 267 atomic_inc(&tn->subscription_count);
281 if (sub->timeout != TIPC_WAIT_FOREVER) { 268 if (sub->timeout != TIPC_WAIT_FOREVER) {
282 setup_timer(&sub->timer, subscr_timeout, (unsigned long)sub); 269 setup_timer(&sub->timer, tipc_subscrp_timeout,
270 (unsigned long)sub);
283 mod_timer(&sub->timer, jiffies + sub->timeout); 271 mod_timer(&sub->timer, jiffies + sub->timeout);
284 } 272 }
285 *sub_p = sub; 273 *sub_p = sub;
@@ -287,22 +275,22 @@ static int subscr_subscribe(struct net *net, struct tipc_subscr *s,
287} 275}
288 276
289/* Handle one termination request for the subscriber */ 277/* Handle one termination request for the subscriber */
290static void subscr_conn_shutdown_event(int conid, void *usr_data) 278static void tipc_subscrb_shutdown_cb(int conid, void *usr_data)
291{ 279{
292 subscr_release((struct tipc_subscriber *)usr_data); 280 tipc_subscrb_delete((struct tipc_subscriber *)usr_data);
293} 281}
294 282
295/* Handle one request to create a new subscription for the subscriber */ 283/* Handle one request to create a new subscription for the subscriber */
296static void subscr_conn_msg_event(struct net *net, int conid, 284static void tipc_subscrb_rcv_cb(struct net *net, int conid,
297 struct sockaddr_tipc *addr, void *usr_data, 285 struct sockaddr_tipc *addr, void *usr_data,
298 void *buf, size_t len) 286 void *buf, size_t len)
299{ 287{
300 struct tipc_subscriber *subscriber = usr_data; 288 struct tipc_subscriber *subscriber = usr_data;
301 struct tipc_subscription *sub = NULL; 289 struct tipc_subscription *sub = NULL;
302 struct tipc_net *tn = net_generic(net, tipc_net_id); 290 struct tipc_net *tn = net_generic(net, tipc_net_id);
303 291
304 spin_lock_bh(&subscriber->lock); 292 spin_lock_bh(&subscriber->lock);
305 subscr_subscribe(net, (struct tipc_subscr *)buf, subscriber, &sub); 293 tipc_subscrp_create(net, (struct tipc_subscr *)buf, subscriber, &sub);
306 if (sub) 294 if (sub)
307 tipc_nametbl_subscribe(sub); 295 tipc_nametbl_subscribe(sub);
308 else 296 else
@@ -311,7 +299,7 @@ static void subscr_conn_msg_event(struct net *net, int conid,
311} 299}
312 300
313/* Handle one request to establish a new subscriber */ 301/* Handle one request to establish a new subscriber */
314static void *subscr_named_msg_event(int conid) 302static void *tipc_subscrb_connect_cb(int conid)
315{ 303{
316 struct tipc_subscriber *subscriber; 304 struct tipc_subscriber *subscriber;
317 305
@@ -321,14 +309,14 @@ static void *subscr_named_msg_event(int conid)
321 pr_warn("Subscriber rejected, no memory\n"); 309 pr_warn("Subscriber rejected, no memory\n");
322 return NULL; 310 return NULL;
323 } 311 }
324 INIT_LIST_HEAD(&subscriber->subscription_list); 312 INIT_LIST_HEAD(&subscriber->subscrp_list);
325 subscriber->conid = conid; 313 subscriber->conid = conid;
326 spin_lock_init(&subscriber->lock); 314 spin_lock_init(&subscriber->lock);
327 315
328 return (void *)subscriber; 316 return (void *)subscriber;
329} 317}
330 318
331int tipc_subscr_start(struct net *net) 319int tipc_topsrv_start(struct net *net)
332{ 320{
333 struct tipc_net *tn = net_generic(net, tipc_net_id); 321 struct tipc_net *tn = net_generic(net, tipc_net_id);
334 const char name[] = "topology_server"; 322 const char name[] = "topology_server";
@@ -355,9 +343,9 @@ int tipc_subscr_start(struct net *net)
355 topsrv->imp = TIPC_CRITICAL_IMPORTANCE; 343 topsrv->imp = TIPC_CRITICAL_IMPORTANCE;
356 topsrv->type = SOCK_SEQPACKET; 344 topsrv->type = SOCK_SEQPACKET;
357 topsrv->max_rcvbuf_size = sizeof(struct tipc_subscr); 345 topsrv->max_rcvbuf_size = sizeof(struct tipc_subscr);
358 topsrv->tipc_conn_recvmsg = subscr_conn_msg_event; 346 topsrv->tipc_conn_recvmsg = tipc_subscrb_rcv_cb;
359 topsrv->tipc_conn_new = subscr_named_msg_event; 347 topsrv->tipc_conn_new = tipc_subscrb_connect_cb;
360 topsrv->tipc_conn_shutdown = subscr_conn_shutdown_event; 348 topsrv->tipc_conn_shutdown = tipc_subscrb_shutdown_cb;
361 349
362 strncpy(topsrv->name, name, strlen(name) + 1); 350 strncpy(topsrv->name, name, strlen(name) + 1);
363 tn->topsrv = topsrv; 351 tn->topsrv = topsrv;
@@ -366,7 +354,7 @@ int tipc_subscr_start(struct net *net)
366 return tipc_server_start(topsrv); 354 return tipc_server_start(topsrv);
367} 355}
368 356
369void tipc_subscr_stop(struct net *net) 357void tipc_topsrv_stop(struct net *net)
370{ 358{
371 struct tipc_net *tn = net_generic(net, tipc_net_id); 359 struct tipc_net *tn = net_generic(net, tipc_net_id);
372 struct tipc_server *topsrv = tn->topsrv; 360 struct tipc_server *topsrv = tn->topsrv;
diff --git a/net/tipc/subscr.h b/net/tipc/subscr.h
index 33488bd9fe3c..92ee18cc5fe6 100644
--- a/net/tipc/subscr.h
+++ b/net/tipc/subscr.h
@@ -54,7 +54,7 @@ struct tipc_subscriber;
54 * @filter: event filtering to be done for subscription 54 * @filter: event filtering to be done for subscription
55 * @timer: timer governing subscription duration (optional) 55 * @timer: timer governing subscription duration (optional)
56 * @nameseq_list: adjacent subscriptions in name sequence's subscription list 56 * @nameseq_list: adjacent subscriptions in name sequence's subscription list
57 * @subscription_list: adjacent subscriptions in subscriber's subscription list 57 * @subscrp_list: adjacent subscriptions in subscriber's subscription list
58 * @server_ref: object reference of server port associated with subscription 58 * @server_ref: object reference of server port associated with subscription
59 * @swap: indicates if subscriber uses opposite endianness in its messages 59 * @swap: indicates if subscriber uses opposite endianness in its messages
60 * @evt: template for events generated by subscription 60 * @evt: template for events generated by subscription
@@ -67,17 +67,17 @@ struct tipc_subscription {
67 u32 filter; 67 u32 filter;
68 struct timer_list timer; 68 struct timer_list timer;
69 struct list_head nameseq_list; 69 struct list_head nameseq_list;
70 struct list_head subscription_list; 70 struct list_head subscrp_list;
71 int swap; 71 int swap;
72 struct tipc_event evt; 72 struct tipc_event evt;
73}; 73};
74 74
75int tipc_subscr_overlap(struct tipc_subscription *sub, u32 found_lower, 75int tipc_subscrp_check_overlap(struct tipc_subscription *sub, u32 found_lower,
76 u32 found_upper); 76 u32 found_upper);
77void tipc_subscr_report_overlap(struct tipc_subscription *sub, u32 found_lower, 77void tipc_subscrp_report_overlap(struct tipc_subscription *sub,
78 u32 found_upper, u32 event, u32 port_ref, 78 u32 found_lower, u32 found_upper, u32 event,
79 u32 node, int must); 79 u32 port_ref, u32 node, int must);
80int tipc_subscr_start(struct net *net); 80int tipc_topsrv_start(struct net *net);
81void tipc_subscr_stop(struct net *net); 81void tipc_topsrv_stop(struct net *net);
82 82
83#endif 83#endif