blob: 1fdeb1ba84bd94e351ed73be72917afc2e45feaf [file] [log] [blame]
Pavel Emelyanov2f72c9b2010-09-27 14:01:27 +04001#ifndef __SUNRPC_NETNS_H__
2#define __SUNRPC_NETNS_H__
3
4#include <net/net_namespace.h>
5#include <net/netns/generic.h>
6
Pavel Emelyanov90d51b02010-09-27 14:02:29 +04007struct cache_detail;
8
Pavel Emelyanov2f72c9b2010-09-27 14:01:27 +04009struct sunrpc_net {
Pavel Emelyanov4f42d0d2010-09-27 14:01:58 +040010 struct proc_dir_entry *proc_net_rpc;
Pavel Emelyanov90d51b02010-09-27 14:02:29 +040011 struct cache_detail *ip_map_cache;
Stanislav Kinsbursky90c4e822011-12-26 15:39:30 +030012
13 struct super_block *pipefs_sb;
Stanislav Kinsburskyc21a5882011-12-26 15:39:39 +030014 struct mutex pipefs_sb_lock;
Stanislav Kinsbursky70abc492012-01-12 22:07:51 +040015
16 struct list_head all_clients;
17 spinlock_t rpc_client_lock;
Stanislav Kinsburskydff02d42012-01-13 12:52:10 +040018
19 struct rpc_clnt *rpcb_local_clnt;
20 struct rpc_clnt *rpcb_local_clnt4;
21 spinlock_t rpcb_clnt_lock;
22 unsigned int rpcb_users;
Pavel Emelyanov2f72c9b2010-09-27 14:01:27 +040023};
24
25extern int sunrpc_net_id;
26
Pavel Emelyanov90d51b02010-09-27 14:02:29 +040027int ip_map_cache_create(struct net *);
28void ip_map_cache_destroy(struct net *);
29
Pavel Emelyanov2f72c9b2010-09-27 14:01:27 +040030#endif