diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2015-05-07 11:02:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-10 04:15:30 +0200 |
commit | 7a0877d4b438886b72be61632eaa774d13262f70 (patch) | |
tree | b8cb00423af5be00667a07302128f0fe7c4f66a0 /include/net/net_namespace.h | |
parent | netns: always provide the id to rtnl_net_fill() (diff) | |
download | linux-7a0877d4b438886b72be61632eaa774d13262f70.tar.xz linux-7a0877d4b438886b72be61632eaa774d13262f70.zip |
netns: rename peernet2id() to peernet2id_alloc()
In a following commit, a new function will be introduced to only lookup for
a nsid (no allocation if the nsid doesn't exist). To avoid confusion, the
existing function is renamed.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r-- | include/net/net_namespace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index f733656404de..6d1e2eae32fb 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -271,7 +271,7 @@ static inline struct net *read_pnet(const possible_net_t *pnet) #define __net_initconst __initconst #endif -int peernet2id(struct net *net, struct net *peer); +int peernet2id_alloc(struct net *net, struct net *peer); struct net *get_net_ns_by_id(struct net *net, int id); struct pernet_operations { |