mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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>
This commit is contained in:
parent
27c565ae9d
commit
7cbebc8a14
@ -234,6 +234,7 @@ int peernet2id_alloc(struct net *net, struct net *peer)
|
|||||||
rtnl_net_notifyid(net, RTM_NEWNSID, id);
|
rtnl_net_notifyid(net, RTM_NEWNSID, id);
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(peernet2id_alloc);
|
||||||
|
|
||||||
/* This function returns, if assigned, the id of a peer netns. */
|
/* This function returns, if assigned, the id of a peer netns. */
|
||||||
int peernet2id(struct net *net, struct net *peer)
|
int peernet2id(struct net *net, struct net *peer)
|
||||||
|
Loading…
Reference in New Issue
Block a user