aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/name_distr.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/name_distr.c')
-rw-r--r--net/tipc/name_distr.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/net/tipc/name_distr.c b/net/tipc/name_distr.c
index 211c1723a19..158318e67b0 100644
--- a/net/tipc/name_distr.c
+++ b/net/tipc/name_distr.c
@@ -58,7 +58,6 @@
58 * Note: There is no field that identifies the publishing node because it is 58 * Note: There is no field that identifies the publishing node because it is
59 * the same for all items contained within a publication message. 59 * the same for all items contained within a publication message.
60 */ 60 */
61
62struct distr_item { 61struct distr_item {
63 __be32 type; 62 __be32 type;
64 __be32 lower; 63 __be32 lower;
@@ -103,7 +102,6 @@ static struct publ_list *publ_lists[] = {
103/** 102/**
104 * publ_to_item - add publication info to a publication message 103 * publ_to_item - add publication info to a publication message
105 */ 104 */
106
107static void publ_to_item(struct distr_item *i, struct publication *p) 105static void publ_to_item(struct distr_item *i, struct publication *p)
108{ 106{
109 i->type = htonl(p->type); 107 i->type = htonl(p->type);
@@ -116,7 +114,6 @@ static void publ_to_item(struct distr_item *i, struct publication *p)
116/** 114/**
117 * named_prepare_buf - allocate & initialize a publication message 115 * named_prepare_buf - allocate & initialize a publication message
118 */ 116 */
119
120static struct sk_buff *named_prepare_buf(u32 type, u32 size, u32 dest) 117static struct sk_buff *named_prepare_buf(u32 type, u32 size, u32 dest)
121{ 118{
122 struct sk_buff *buf = tipc_buf_acquire(INT_H_SIZE + size); 119 struct sk_buff *buf = tipc_buf_acquire(INT_H_SIZE + size);
@@ -151,7 +148,6 @@ static void named_cluster_distribute(struct sk_buff *buf)
151/** 148/**
152 * tipc_named_publish - tell other nodes about a new publication by this node 149 * tipc_named_publish - tell other nodes about a new publication by this node
153 */ 150 */
154
155void tipc_named_publish(struct publication *publ) 151void tipc_named_publish(struct publication *publ)
156{ 152{
157 struct sk_buff *buf; 153 struct sk_buff *buf;
@@ -177,7 +173,6 @@ void tipc_named_publish(struct publication *publ)
177/** 173/**
178 * tipc_named_withdraw - tell other nodes about a withdrawn publication by this node 174 * tipc_named_withdraw - tell other nodes about a withdrawn publication by this node
179 */ 175 */
180
181void tipc_named_withdraw(struct publication *publ) 176void tipc_named_withdraw(struct publication *publ)
182{ 177{
183 struct sk_buff *buf; 178 struct sk_buff *buf;
@@ -236,7 +231,6 @@ static void named_distribute(struct list_head *message_list, u32 node,
236/** 231/**
237 * tipc_named_node_up - tell specified node about all publications by this node 232 * tipc_named_node_up - tell specified node about all publications by this node
238 */ 233 */
239
240void tipc_named_node_up(unsigned long nodearg) 234void tipc_named_node_up(unsigned long nodearg)
241{ 235{
242 struct tipc_node *n_ptr; 236 struct tipc_node *n_ptr;
@@ -246,7 +240,6 @@ void tipc_named_node_up(unsigned long nodearg)
246 u32 max_item_buf = 0; 240 u32 max_item_buf = 0;
247 241
248 /* compute maximum amount of publication data to send per message */ 242 /* compute maximum amount of publication data to send per message */
249
250 read_lock_bh(&tipc_net_lock); 243 read_lock_bh(&tipc_net_lock);
251 n_ptr = tipc_node_find(node); 244 n_ptr = tipc_node_find(node);
252 if (n_ptr) { 245 if (n_ptr) {
@@ -262,7 +255,6 @@ void tipc_named_node_up(unsigned long nodearg)
262 return; 255 return;
263 256
264 /* create list of publication messages, then send them as a unit */ 257 /* create list of publication messages, then send them as a unit */
265
266 INIT_LIST_HEAD(&message_list); 258 INIT_LIST_HEAD(&message_list);
267 259
268 read_lock_bh(&tipc_nametbl_lock); 260 read_lock_bh(&tipc_nametbl_lock);
@@ -279,7 +271,6 @@ void tipc_named_node_up(unsigned long nodearg)
279 * Invoked for each publication issued by a newly failed node. 271 * Invoked for each publication issued by a newly failed node.
280 * Removes publication structure from name table & deletes it. 272 * Removes publication structure from name table & deletes it.
281 */ 273 */
282
283static void named_purge_publ(struct publication *publ) 274static void named_purge_publ(struct publication *publ)
284{ 275{
285 struct publication *p; 276 struct publication *p;
@@ -303,7 +294,6 @@ static void named_purge_publ(struct publication *publ)
303/** 294/**
304 * tipc_named_recv - process name table update message sent by another node 295 * tipc_named_recv - process name table update message sent by another node
305 */ 296 */
306
307void tipc_named_recv(struct sk_buff *buf) 297void tipc_named_recv(struct sk_buff *buf)
308{ 298{
309 struct publication *publ; 299 struct publication *publ;
@@ -361,7 +351,6 @@ void tipc_named_recv(struct sk_buff *buf)
361 * All name table entries published by this node are updated to reflect 351 * All name table entries published by this node are updated to reflect
362 * the node's new network address. 352 * the node's new network address.
363 */ 353 */
364
365void tipc_named_reinit(void) 354void tipc_named_reinit(void)
366{ 355{
367 struct publication *publ; 356 struct publication *publ;