From: Vlad Yasevich Date: Thu, 7 Mar 2013 07:59:25 +0000 (+0000) Subject: team: unsyc the devices addresses when port is removed X-Git-Tag: v3.9-rc3~36^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba81276b1a5e3cf0674cb0e6d9525e5ae0c98695;p=profile%2Fcommon%2Fkernel-common.git team: unsyc the devices addresses when port is removed When a team port is removed, unsync all devices addresses that may have been synched to the port devices. CC: Jiri Pirko Signed-off-by: Vlad Yasevich Acked-by: Jiri Pirko Signed-off-by: David S. Miller --- diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 05c5efe..bf34192 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c @@ -1138,6 +1138,8 @@ static int team_port_del(struct team *team, struct net_device *port_dev) netdev_upper_dev_unlink(port_dev, dev); team_port_disable_netpoll(port); vlan_vids_del_by_dev(port_dev, dev); + dev_uc_unsync(port_dev, dev); + dev_mc_unsync(port_dev, dev); dev_close(port_dev); team_port_leave(team, port);