diff options
author | Ying Xue <ying.xue@windriver.com> | 2015-01-09 02:27:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-12 16:24:33 -0500 |
commit | a62fbccecd62bacb4416fc427239f5b43b25d05e (patch) | |
tree | 7f2646f08ce92d8d82cf4a6cbd2126e7f71555ec /net/tipc/server.h | |
parent | 347475395434abb2b61bf59c2952470f37072567 (diff) |
tipc: make subscriber server support net namespace
TIPC establishes one subscriber server which allows users to subscribe
their interesting name service status. After tipc supports namespace,
one dedicated tipc stack instance is created for each namespace, and
each instance can be deemed as one independent TIPC node. As a result,
subscriber server must be built for each namespace.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Tested-by: Tero Aho <Tero.Aho@coriant.com>
Reviewed-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/server.h')
-rw-r--r-- | net/tipc/server.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/tipc/server.h b/net/tipc/server.h index 9c979a01997c..9015faedb1b0 100644 --- a/net/tipc/server.h +++ b/net/tipc/server.h | |||
@@ -47,6 +47,7 @@ | |||
47 | * @conn_idr: identifier set of connection | 47 | * @conn_idr: identifier set of connection |
48 | * @idr_lock: protect the connection identifier set | 48 | * @idr_lock: protect the connection identifier set |
49 | * @idr_in_use: amount of allocated identifier entry | 49 | * @idr_in_use: amount of allocated identifier entry |
50 | * @net: network namspace instance | ||
50 | * @rcvbuf_cache: memory cache of server receive buffer | 51 | * @rcvbuf_cache: memory cache of server receive buffer |
51 | * @rcv_wq: receive workqueue | 52 | * @rcv_wq: receive workqueue |
52 | * @send_wq: send workqueue | 53 | * @send_wq: send workqueue |
@@ -63,6 +64,7 @@ struct tipc_server { | |||
63 | struct idr conn_idr; | 64 | struct idr conn_idr; |
64 | spinlock_t idr_lock; | 65 | spinlock_t idr_lock; |
65 | int idr_in_use; | 66 | int idr_in_use; |
67 | struct net *net; | ||
66 | struct kmem_cache *rcvbuf_cache; | 68 | struct kmem_cache *rcvbuf_cache; |
67 | struct workqueue_struct *rcv_wq; | 69 | struct workqueue_struct *rcv_wq; |
68 | struct workqueue_struct *send_wq; | 70 | struct workqueue_struct *send_wq; |
@@ -73,7 +75,7 @@ struct tipc_server { | |||
73 | struct sockaddr_tipc *addr, void *usr_data, | 75 | struct sockaddr_tipc *addr, void *usr_data, |
74 | void *buf, size_t len); | 76 | void *buf, size_t len); |
75 | struct sockaddr_tipc *saddr; | 77 | struct sockaddr_tipc *saddr; |
76 | const char name[TIPC_SERVER_NAME_LEN]; | 78 | char name[TIPC_SERVER_NAME_LEN]; |
77 | int imp; | 79 | int imp; |
78 | int type; | 80 | int type; |
79 | }; | 81 | }; |