summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2015-01-20 15:15:47 +0100
committerDavid S. Miller <davem@davemloft.net>2015-01-23 17:51:15 -0800
commit193523bf937309d57c6dd7839bcf34d7a029dbee (patch)
tree0dbb105a5d413ab622e6b9b5d18137ec93d7f809 /net/core
parente5f4e7b9ff331c6995af826b222681528de574b6 (diff)
downloadop-kernel-dev-193523bf937309d57c6dd7839bcf34d7a029dbee.zip
op-kernel-dev-193523bf937309d57c6dd7839bcf34d7a029dbee.tar.gz
vxlan: advertise netns of vxlan dev in fdb msg
Netlink FDB messages are sent in the link netns. The header of these messages contains the ifindex (ndm_ifindex) of the netdevice, but this ifindex is unusable in case of x-netns vxlan. I named the new attribute NDA_NDM_IFINDEX_NETNSID, to avoid confusion with NDA_IFINDEX. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.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 9d1a4ca..b7bde55 100644
--- a/net/core/net_namespace.c
+++ b/net/core/net_namespace.c
@@ -202,6 +202,7 @@ int peernet2id(struct net *net, struct net *peer)
return id >= 0 ? id : NETNSA_NSID_NOT_ASSIGNED;
}
+EXPORT_SYMBOL(peernet2id);
struct net *get_net_ns_by_id(struct net *net, int id)
{
OpenPOWER on IntegriCloud