License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / net / sunrpc / netns.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
2f72c9b7
PE
2#ifndef __SUNRPC_NETNS_H__
3#define __SUNRPC_NETNS_H__
4
5#include <net/net_namespace.h>
6#include <net/netns/generic.h>
7
90d51b02
PE
8struct cache_detail;
9
2f72c9b7 10struct sunrpc_net {
4f42d0d5 11 struct proc_dir_entry *proc_net_rpc;
90d51b02 12 struct cache_detail *ip_map_cache;
73393232 13 struct cache_detail *unix_gid_cache;
a1db410d
SK
14 struct cache_detail *rsc_cache;
15 struct cache_detail *rsi_cache;
90c4e829
SK
16
17 struct super_block *pipefs_sb;
4b9a445e 18 struct rpc_pipe *gssd_dummy;
c21a588f 19 struct mutex pipefs_sb_lock;
70abc49b
SK
20
21 struct list_head all_clients;
22 spinlock_t rpc_client_lock;
dff02d49
SK
23
24 struct rpc_clnt *rpcb_local_clnt;
25 struct rpc_clnt *rpcb_local_clnt4;
26 spinlock_t rpcb_clnt_lock;
27 unsigned int rpcb_users;
786615bc 28 unsigned int rpcb_is_af_local : 1;
1d658336
SS
29
30 struct mutex gssp_lock;
31 struct rpc_clnt *gssp_clnt;
030d794b 32 int use_gss_proxy;
2aed8b47
TM
33 int pipe_version;
34 atomic_t pipe_users;
030d794b 35 struct proc_dir_entry *use_gssp_proc;
2f72c9b7
PE
36};
37
c7d03a00 38extern unsigned int sunrpc_net_id;
2f72c9b7 39
90d51b02
PE
40int ip_map_cache_create(struct net *);
41void ip_map_cache_destroy(struct net *);
42
2f72c9b7 43#endif