aboutsummaryrefslogtreecommitdiffstats
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
parentipv6: remove IN6_ADDR_HSIZE from addrconf.h (diff)
downloadlinux-dev-7cbebc8a142238da3c2966f87b81ace491c8f089.tar.xz
linux-dev-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)