]> git.karo-electronics.de Git - linux-beck.git/commit
mld: do not remove mld souce list info when set link down
authorHangbin Liu <liuhangbin@gmail.com>
Thu, 12 Jan 2017 13:19:37 +0000 (21:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Feb 2017 14:11:43 +0000 (15:11 +0100)
commit53a76d633b860f47f82f3ad821bc264306f9be69
tree0af92069c3b41c236ed040ae8ba2152e51147677
parent5b1bb4cbd7ec562d1964d37d642ca836f2b83a2c
mld: do not remove mld souce list info when set link down

[ Upstream commit 1666d49e1d416fcc2cce708242a52fe3317ea8ba ]

This is an IPv6 version of commit 24803f38a5c0 ("igmp: do not remove igmp
souce list..."). In mld_del_delrec(), we will restore back all source filter
info instead of flush them.

Move mld_clear_delrec() from ipv6_mc_down() to ipv6_mc_destroy_dev() since
we should not remove source list info when set link down. Remove
igmp6_group_dropped() in ipv6_mc_destroy_dev() since we have called it in
ipv6_mc_down().

Also clear all source info after igmp6_group_dropped() instead of in it
because ipv6_mc_down() will call igmp6_group_dropped().

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/mcast.c