diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2015-01-20 15:15:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-23 17:51:15 -0800 |
commit | 193523bf937309d57c6dd7839bcf34d7a029dbee (patch) | |
tree | 0dbb105a5d413ab622e6b9b5d18137ec93d7f809 /net/core/net_namespace.c | |
parent | e5f4e7b9ff331c6995af826b222681528de574b6 (diff) | |
download | linux-193523bf937309d57c6dd7839bcf34d7a029dbee.tar.gz linux-193523bf937309d57c6dd7839bcf34d7a029dbee.tar.bz2 linux-193523bf937309d57c6dd7839bcf34d7a029dbee.zip |
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/net_namespace.c')
-rw-r--r-- | net/core/net_namespace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 9d1a4cac83b6..b7bde551ef76 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) { |