diff mbox series

[ovs-dev,net-next,1/3] net: export peernet2id_alloc

Message ID 20171102190438.2583-2-fbl@redhat.com
State Not Applicable
Headers show
Series Allow openvswitch to query ports in another netns. | expand

Commit Message

Flavio Leitner Nov. 2, 2017, 7:04 p.m. UTC
From: Jiri Benc <jbenc@redhat.com>

It will be used by openvswitch.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
---
 net/core/net_namespace.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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)