bonding: flush unicast and multicast lists when changing type
authorJiri Pirko <jpirko@redhat.com>
Fri, 19 Mar 2010 04:00:23 +0000 (04:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2010 01:31:34 +0000 (18:31 -0700)
commit32a806c194ea112cfab00f558482dd97bee5e44e
tree196f572deccc966b3e2682f293cf775b51007658
parent755d0e77ac9c8d125388922dc33434ed5b2ebe80
bonding: flush unicast and multicast lists when changing type

After the type change, addresses in unicast and multicast lists wouldn't make
sense, not to mention possible different lenghts. So flush both lists here.

Note "dev_addr_discard" will be very soon replaced by "dev_mc_flush" (once
mc_list conversion will be done).

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
include/linux/netdevice.h
net/core/dev.c