aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/tipc/server.h')
-rw-r--r--net/tipc/server.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/net/tipc/server.h b/net/tipc/server.h
index be817b0b547e..9015faedb1b0 100644
--- a/net/tipc/server.h
+++ b/net/tipc/server.h
@@ -36,7 +36,9 @@
36#ifndef _TIPC_SERVER_H 36#ifndef _TIPC_SERVER_H
37#define _TIPC_SERVER_H 37#define _TIPC_SERVER_H
38 38
39#include "core.h" 39#include <linux/idr.h>
40#include <linux/tipc.h>
41#include <net/net_namespace.h>
40 42
41#define TIPC_SERVER_NAME_LEN 32 43#define TIPC_SERVER_NAME_LEN 32
42 44
@@ -45,6 +47,7 @@
45 * @conn_idr: identifier set of connection 47 * @conn_idr: identifier set of connection
46 * @idr_lock: protect the connection identifier set 48 * @idr_lock: protect the connection identifier set
47 * @idr_in_use: amount of allocated identifier entry 49 * @idr_in_use: amount of allocated identifier entry
50 * @net: network namspace instance
48 * @rcvbuf_cache: memory cache of server receive buffer 51 * @rcvbuf_cache: memory cache of server receive buffer
49 * @rcv_wq: receive workqueue 52 * @rcv_wq: receive workqueue
50 * @send_wq: send workqueue 53 * @send_wq: send workqueue
@@ -61,16 +64,18 @@ struct tipc_server {
61 struct idr conn_idr; 64 struct idr conn_idr;
62 spinlock_t idr_lock; 65 spinlock_t idr_lock;
63 int idr_in_use; 66 int idr_in_use;
67 struct net *net;
64 struct kmem_cache *rcvbuf_cache; 68 struct kmem_cache *rcvbuf_cache;
65 struct workqueue_struct *rcv_wq; 69 struct workqueue_struct *rcv_wq;
66 struct workqueue_struct *send_wq; 70 struct workqueue_struct *send_wq;
67 int max_rcvbuf_size; 71 int max_rcvbuf_size;
68 void *(*tipc_conn_new) (int conid); 72 void *(*tipc_conn_new)(int conid);
69 void (*tipc_conn_shutdown) (int conid, void *usr_data); 73 void (*tipc_conn_shutdown)(int conid, void *usr_data);
70 void (*tipc_conn_recvmsg) (int conid, struct sockaddr_tipc *addr, 74 void (*tipc_conn_recvmsg)(struct net *net, int conid,
71 void *usr_data, void *buf, size_t len); 75 struct sockaddr_tipc *addr, void *usr_data,
76 void *buf, size_t len);
72 struct sockaddr_tipc *saddr; 77 struct sockaddr_tipc *saddr;
73 const char name[TIPC_SERVER_NAME_LEN]; 78 char name[TIPC_SERVER_NAME_LEN];
74 int imp; 79 int imp;
75 int type; 80 int type;
76}; 81};