diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-05-19 16:30:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-19 16:30:13 -0400 |
commit | 5b06c85c3b96fa8db632f1ee94f99a2bd0215f3a (patch) | |
tree | 7c52f30881912ed94f15f4c367d23e44ad864776 /net | |
parent | 28353e7fad1d224687220a448950dc552645a50a (diff) |
tipc: Cosmetic cleanup of topology service code
This patch contains a set of cosmetic changes to TIPC's network
topology service subsystem, including:
- updates to comments (including copyright dates)
- re-ordering structure fields to group them more logically
- removal of optional debugging code that is no longer required
- minor changes to whitespace to conform to Linux coding conventions
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/tipc/subscr.c | 8 | ||||
-rw-r--r-- | net/tipc/subscr.h | 20 |
2 files changed, 13 insertions, 15 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index 7c62791eb0cc..0326d3060bc7 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c | |||
@@ -1,8 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * net/tipc/subscr.c: TIPC subscription service | 2 | * net/tipc/subscr.c: TIPC network topology service |
3 | * | 3 | * |
4 | * Copyright (c) 2000-2006, Ericsson AB | 4 | * Copyright (c) 2000-2006, Ericsson AB |
5 | * Copyright (c) 2005, Wind River Systems | 5 | * Copyright (c) 2005-2007, Wind River Systems |
6 | * All rights reserved. | 6 | * All rights reserved. |
7 | * | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without |
@@ -36,10 +36,10 @@ | |||
36 | 36 | ||
37 | #include "core.h" | 37 | #include "core.h" |
38 | #include "dbg.h" | 38 | #include "dbg.h" |
39 | #include "subscr.h" | ||
40 | #include "name_table.h" | 39 | #include "name_table.h" |
41 | #include "port.h" | 40 | #include "port.h" |
42 | #include "ref.h" | 41 | #include "ref.h" |
42 | #include "subscr.h" | ||
43 | 43 | ||
44 | /** | 44 | /** |
45 | * struct subscriber - TIPC network topology subscriber | 45 | * struct subscriber - TIPC network topology subscriber |
@@ -149,8 +149,6 @@ void tipc_subscr_report_overlap(struct subscription *sub, | |||
149 | u32 node, | 149 | u32 node, |
150 | int must) | 150 | int must) |
151 | { | 151 | { |
152 | dbg("Rep overlap %u:%u,%u<->%u,%u\n", sub->seq.type, sub->seq.lower, | ||
153 | sub->seq.upper, found_lower, found_upper); | ||
154 | if (!tipc_subscr_overlap(sub, found_lower, found_upper)) | 152 | if (!tipc_subscr_overlap(sub, found_lower, found_upper)) |
155 | return; | 153 | return; |
156 | if (!must && !(sub->filter & TIPC_SUB_PORTS)) | 154 | if (!must && !(sub->filter & TIPC_SUB_PORTS)) |
diff --git a/net/tipc/subscr.h b/net/tipc/subscr.h index b9af687b6368..45d89bf4d202 100644 --- a/net/tipc/subscr.h +++ b/net/tipc/subscr.h | |||
@@ -1,8 +1,8 @@ | |||
1 | /* | 1 | /* |
2 | * net/tipc/subscr.h: Include file for TIPC subscription service | 2 | * net/tipc/subscr.h: Include file for TIPC network topology service |
3 | * | 3 | * |
4 | * Copyright (c) 2003-2006, Ericsson AB | 4 | * Copyright (c) 2003-2006, Ericsson AB |
5 | * Copyright (c) 2005, Wind River Systems | 5 | * Copyright (c) 2005-2007, Wind River Systems |
6 | * All rights reserved. | 6 | * All rights reserved. |
7 | * | 7 | * |
8 | * Redistribution and use in source and binary forms, with or without | 8 | * Redistribution and use in source and binary forms, with or without |
@@ -49,12 +49,12 @@ typedef void (*tipc_subscr_event) (struct subscription *sub, | |||
49 | * @timeout: duration of subscription (in ms) | 49 | * @timeout: duration of subscription (in ms) |
50 | * @filter: event filtering to be done for subscription | 50 | * @filter: event filtering to be done for subscription |
51 | * @event_cb: routine invoked when a subscription event is detected | 51 | * @event_cb: routine invoked when a subscription event is detected |
52 | * @timer: timer governing subscription duration (optional) | ||
53 | * @nameseq_list: adjacent subscriptions in name sequence's subscription list | ||
54 | * @subscription_list: adjacent subscriptions in subscriber's subscription list | ||
52 | * @server_ref: object reference of server port associated with subscription | 55 | * @server_ref: object reference of server port associated with subscription |
53 | * @swap: indicates if subscriber uses opposite endianness in its messages | 56 | * @swap: indicates if subscriber uses opposite endianness in its messages |
54 | * @evt: template for events generated by subscription | 57 | * @evt: template for events generated by subscription |
55 | * @subscription_list: adjacent subscriptions in subscriber's subscription list | ||
56 | * @nameseq_list: adjacent subscriptions in name sequence's subscription list | ||
57 | * @timer_ref: reference to timer governing subscription duration (may be NULL) | ||
58 | */ | 58 | */ |
59 | 59 | ||
60 | struct subscription { | 60 | struct subscription { |
@@ -62,19 +62,19 @@ struct subscription { | |||
62 | u32 timeout; | 62 | u32 timeout; |
63 | u32 filter; | 63 | u32 filter; |
64 | tipc_subscr_event event_cb; | 64 | tipc_subscr_event event_cb; |
65 | struct timer_list timer; | ||
66 | struct list_head nameseq_list; | ||
67 | struct list_head subscription_list; | ||
65 | u32 server_ref; | 68 | u32 server_ref; |
66 | int swap; | 69 | int swap; |
67 | struct tipc_event evt; | 70 | struct tipc_event evt; |
68 | struct list_head subscription_list; | ||
69 | struct list_head nameseq_list; | ||
70 | struct timer_list timer; | ||
71 | }; | 71 | }; |
72 | 72 | ||
73 | int tipc_subscr_overlap(struct subscription * sub, | 73 | int tipc_subscr_overlap(struct subscription *sub, |
74 | u32 found_lower, | 74 | u32 found_lower, |
75 | u32 found_upper); | 75 | u32 found_upper); |
76 | 76 | ||
77 | void tipc_subscr_report_overlap(struct subscription * sub, | 77 | void tipc_subscr_report_overlap(struct subscription *sub, |
78 | u32 found_lower, | 78 | u32 found_lower, |
79 | u32 found_upper, | 79 | u32 found_upper, |
80 | u32 event, | 80 | u32 event, |