OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jan 2017 17:44:59 +0000 (12:44 -0500)
commit1666d49e1d416fcc2cce708242a52fe3317ea8ba
tree7a3f4000264d927086aa070fa549e4c5b97d0401
parent34393529163af7163ef8459808e3cf2af7db7f16
mld: do not remove mld souce list info when set link down

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>
net/ipv6/mcast.c