]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitadff77c149bf0fbd6bef06e0de9c776aad41cb6a
tree196f572deccc966b3e2682f293cf775b51007658
parenta0c9ca19cb8a8530e7d246aeb6deff83662e463d
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