Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba81276b authored by Vlad Yasevich's avatar Vlad Yasevich Committed by David S. Miller
Browse files

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 <jiri@resnulli.us>
Signed-off-by: default avatarVlad Yasevich <vyasevic@redhat.com>
Acked-by: default avatarJiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fbca58a2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);