summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorJiri Benc <jbenc@redhat.com>2017-11-02 17:04:36 -0200
committerDavid S. Miller <davem@davemloft.net>2017-11-05 21:49:17 +0900
commit7cbebc8a142238da3c2966f87b81ace491c8f089 (patch)
tree276356a406a023a07fa0b7a7299a6aab558e49ca /net/core
parent27c565ae9d554fa1c00c799754cff43476c8d3b5 (diff)
downloadlinux-7cbebc8a142238da3c2966f87b81ace491c8f089.tar.gz
linux-7cbebc8a142238da3c2966f87b81ace491c8f089.tar.bz2
linux-7cbebc8a142238da3c2966f87b81ace491c8f089.zip
net: export peernet2id_alloc
It will be used by openvswitch. Signed-off-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/net_namespace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
index 6cfdc7c84c48..b797832565d3 100644
--- 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)