]> git.baikalelectronics.ru Git - kernel.git/commit
vxlan: leave multicast group when vxlan device down
authorGao feng <gaofeng@cn.fujitsu.com>
Tue, 10 Dec 2013 08:37:33 +0000 (16:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Dec 2013 19:21:26 +0000 (14:21 -0500)
commit676ec527444fec579404bc5e0a3eb7b0fbb52d6a
tree845699b37059f7f8122b2545e9cc4f83f62f4488
parentad832cccb7aa5dfdea59ad7ccf60c64352b38f9f
vxlan: leave multicast group when vxlan device down

vxlan_group_used only allows device to leave multicast group
when the remote_ip of this vxlan device is difference from
other vxlan devices' remote_ip. this will cause device not
leave multicast group untile the vn_sock of this vxlan deivce
being released.

The check in vxlan_group_used is not quite precise. since even
the remote_ip is same, but these vxlan devices may use different
lower devices, and they may use different vn_socks.

Only when some vxlan devices use the same vn_sock,same lower
device and same remote_ip, the mc_list of the vn_sock should
not be changed.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c