projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c565a
)
net: export peernet2id_alloc
author
Jiri Benc
<jbenc@redhat.com>
Thu, 2 Nov 2017 19:04:36 +0000
(17:04 -0200)
committer
David S. Miller
<davem@davemloft.net>
Sun, 5 Nov 2017 12:49:17 +0000
(21:49 +0900)
It will be used by openvswitch.
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c
patch
|
blob
|
history
diff --git
a/net/core/net_namespace.c
b/net/core/net_namespace.c
index
6cfdc7c
..
b797832
100644
(file)
--- a/
net/core/net_namespace.c
+++ b/
net/core/net_namespace.c
@@
-234,6
+234,7
@@
int peernet2id_alloc(struct net *net, struct net *peer)
rtnl_net_notifyid(net, RTM_NEWNSID, id);
return id;
}
+EXPORT_SYMBOL_GPL(peernet2id_alloc);
/* This function returns, if assigned, the id of a peer netns. */
int peernet2id(struct net *net, struct net *peer)