summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2016-01-07 10:26:53 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-01-10 02:04:20 (GMT)
commit07b9b37c227cb8d88d478b4a9c5634fee514ede1 (patch)
tree7f3d66a27c77d9061ee204fc3615113f91b943d2 /Kbuild
parent29c6dd591bbd592472247441de9fa694acdabae8 (diff)
downloadlinux-07b9b37c227cb8d88d478b4a9c5634fee514ede1.tar.xz
vxlan: fix test which detect duplicate vxlan iface
When a vxlan interface is created, the driver checks that there is not another vxlan interface with the same properties. To do this, it checks the existing vxlan udp socket. Since commit 1c51a9159dde, the creation of the vxlan socket is done only when the interface is set up, thus it breaks that test. Example: $ ip l a vxlan10 type vxlan id 10 group 239.0.0.10 dev eth0 dstport 0 $ ip l a vxlan11 type vxlan id 10 group 239.0.0.10 dev eth0 dstport 0 $ ip -br l | grep vxlan vxlan10 DOWN f2:55:1c:6a:fb:00 <BROADCAST,MULTICAST> vxlan11 DOWN 7a:cb:b9:38:59:0d <BROADCAST,MULTICAST> Instead of checking sockets, let's loop over the vxlan iface list. Fixes: 1c51a9159dde ("vxlan: fix race caused by dropping rtnl_unlock") Reported-by: Thomas Faivre <thomas.faivre@6wind.com> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions