igmp: do not remove igmp souce list info when set link down
In commit 24cf3af3 ("igmp: call ip_mc_clear_src..."), we forgot to remove igmpv3_clear_delrec() in ip_mc_down(), which also called ip_mc_clear_src(). This make us clear all IGMPv3 source filter info after NETDEV_DOWN. Move igmpv3_clear_delrec() to ip_mc_destroy_dev() and then no need ip_mc_clear_src() in ip_mc_destroy_dev(). On the other hand, we should restore back instead of free all source filter info in igmpv3_del_delrec(). Or we will not able to restore IGMPv3 source filter info after NETDEV_UP and NETDEV_POST_TYPE_CHANGE. Fixes: 24cf3af3 ("igmp: call ip_mc_clear_src() only when ...") Signed-off-by:Hangbin Liu <liuhangbin@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
parent
f6c365fa
-
mentioned in commit aee5dd00
-
mentioned in commit ce6994f5
-
mentioned in commit 4b859d2a
-
mentioned in commit 84d0edf1
-
mentioned in commit a19230f4
-
mentioned in commit ac31cc83
-
mentioned in commit 3dd2aeac
-
mentioned in commit 6cff57ee
-
mentioned in commit 1e28018b
-
mentioned in commit 0dc13e75
Please register or sign in to comment