]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: advertise link netns in fdb messages
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Mon, 26 Jan 2015 13:10:53 +0000 (14:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jan 2015 01:11:07 +0000 (17:11 -0800)
commitca665f5e47e26718ade49d0432e03b4485be4bd2
tree358f3258d1ab3bbcf261786d3bd66a7a9650943b
parentcf14a3a98c24078cd1f6c665bf2a2ad9e4681ebb
vxlan: advertise link netns in fdb messages

Previous commit is based on a wrong assumption, fdb messages are always sent
into the netns where the interface stands (see vxlan_fdb_notify()).

These fdb messages doesn't embed the rtnl attribute IFLA_LINK_NETNSID, thus we
need to add it (useful to interpret NDA_IFINDEX or NDA_DST for example).

Note also that vxlan_nlmsg_size() was not updated.

Fixes: a54cfe1404f8 ("vxlan: advertise netns of vxlan dev in fdb msg")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/uapi/linux/neighbour.h