netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] team: unsyc the devices addresses when port is removed
@ 2013-03-07 17:59 Vlad Yasevich
  2013-03-07 18:30 ` Jiri Pirko
  0 siblings, 1 reply; 3+ messages in thread
From: Vlad Yasevich @ 2013-03-07 17:59 UTC (permalink / raw)
  To: netdev; +Cc: Vlad Yasevich, Jiri Pirko

When a team port is removed, unsync all devices addresses that may have
been synched to the port devices.

CC: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
---
 drivers/net/team/team.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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);
 
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-07 21:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-07 17:59 [PATCH] team: unsyc the devices addresses when port is removed Vlad Yasevich
2013-03-07 18:30 ` Jiri Pirko
2013-03-07 21:36   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).