aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.h
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2014-11-25 22:41:45 -0500
committerDavid S. Miller <davem@davemloft.net>2014-11-26 12:30:16 -0500
commita8f48af587b0f257c49dce5b49a62554a4b8627e (patch)
treedd28b059961d63e1f925a5c34f05fb14a741d405 /net/tipc/node.h
parent73cf0e923d685a6a1b7754c7d29cc14944f271d9 (diff)
tipc: remove node subscription infrastructure
The node subscribe infrastructure represents a virtual base class, so its users, such as struct tipc_port and struct publication, can derive its implemented functionalities. However, after the removal of struct tipc_port, struct publication is left as its only single user now. So defining an abstract infrastructure for one user becomes no longer reasonable. If corresponding new functions associated with the infrastructure are moved to name_table.c file, the node subscription infrastructure can be removed as well. Signed-off-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/node.h')
-rw-r--r--net/tipc/node.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/tipc/node.h b/net/tipc/node.h
index 005fbcef3212..f1994511f033 100644
--- a/net/tipc/node.h
+++ b/net/tipc/node.h
@@ -37,7 +37,6 @@
37#ifndef _TIPC_NODE_H 37#ifndef _TIPC_NODE_H
38#define _TIPC_NODE_H 38#define _TIPC_NODE_H
39 39
40#include "node_subscr.h"
41#include "addr.h" 40#include "addr.h"
42#include "net.h" 41#include "net.h"
43#include "bearer.h" 42#include "bearer.h"
@@ -104,7 +103,7 @@ struct tipc_node_bclink {
104 * @link_cnt: number of links to node 103 * @link_cnt: number of links to node
105 * @signature: node instance identifier 104 * @signature: node instance identifier
106 * @link_id: local and remote bearer ids of changing link, if any 105 * @link_id: local and remote bearer ids of changing link, if any
107 * @nsub: list of "node down" subscriptions monitoring node 106 * @publ_list: list of publications
108 * @rcu: rcu struct for tipc_node 107 * @rcu: rcu struct for tipc_node
109 */ 108 */
110struct tipc_node { 109struct tipc_node {
@@ -121,7 +120,7 @@ struct tipc_node {
121 int working_links; 120 int working_links;
122 u32 signature; 121 u32 signature;
123 u32 link_id; 122 u32 link_id;
124 struct list_head nsub; 123 struct list_head publ_list;
125 struct sk_buff_head waiting_sks; 124 struct sk_buff_head waiting_sks;
126 struct list_head conn_sks; 125 struct list_head conn_sks;
127 struct rcu_head rcu; 126 struct rcu_head rcu;