Veaceslav Falico 24cf3af3fe igmp: call ip_mc_clear_src() only when we have no users of ip_mc_list
In igmp_group_dropped() we call ip_mc_clear_src(), which resets the number
of source filters per mulitcast. However, igmp_group_dropped() is also
called on NETDEV_DOWN, NETDEV_PRE_TYPE_CHANGE and NETDEV_UNREGISTER, which
means that the group might get added back on NETDEV_UP, NETDEV_REGISTER and
NETDEV_POST_TYPE_CHANGE respectively, leaving us with broken source
filters.

To fix that, we must clear the source filters only when there are no users
in the ip_mc_list, i.e. in ip_mc_dec_group() and on device destroy.

Acked-by: David L Stevens <dlstevens@us.ibm.com>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-05-24 13:26:12 -04:00
..
2011-04-22 11:04:14 -07:00
2011-05-10 15:03:01 -07:00
2011-04-22 11:04:14 -07:00
2011-04-12 13:58:33 -07:00
2011-05-12 23:03:46 -04:00
2011-05-19 17:13:04 -04:00
2011-05-23 16:29:24 -04:00
2011-05-24 01:13:12 -04:00
2011-05-22 21:01:20 -04:00
2011-05-17 14:16:58 -04:00
2011-05-24 01:13:12 -04:00
2011-05-24 01:13:12 -04:00