team: unsyc the devices addresses when port is removed
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Signed-off-by Vlad Yasevich <[email protected]>
--- drivers/net/team/team.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/team/team.c +2 -0
@@ -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);
Signature · 1 line
1.7.7.6
Quoted 2 lines · Thu, Mar 07, 2013 at 06:59:25PM CET, [email protected] wrote:
When a team port is removed, unsync all devices addresses that may have been synched to the port devices.
This is looking good to me. Thanks for spotting this bug.
Acked-by Jiri Pirko <[email protected]>
Quoted 23 lines
CC Jiri Pirko <[email protected]>Signed-off-by Vlad Yasevich <[email protected]>---
drivers/net/team/team.c| 2 ++1 files changed, 2 insertions(+), 0 deletions(-)drivers/net/team/team.c +2
-0@@ -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);Signature · 1 line
1.7.7.6
From: Jiri Pirko <[email protected]>
Date: Thu, 7 Mar 2013 19:30:00 +0100
Quoted 8 lines
Quoted 2 lines · Thu, Mar 07, 2013 at 06:59:25PM CET, [email protected] wrote:
When a team port is removed, unsync all devices addresses that may have been synched to the port devices.
This is looking good to me. Thanks for spotting this bug.
Acked-by Jiri Pirko <[email protected]>
Applied, thanks everyone.