team: move netlink event notifiers after team_port_leave()
authorJiri Pirko <jiri@resnulli.us>
Fri, 1 Feb 2013 08:17:25 +0000 (08:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Feb 2013 19:55:45 +0000 (14:55 -0500)
commitc3969d80a396bffd7f80ff57987b15793be67926
tree76e397a8fda90efd24a8bbe98c19638590c2df60
parentd90f889e9cc76daf3a6d91120bb158b16c4af444
team: move netlink event notifiers after team_port_leave()

In team_port_del(), there is need to be do all the cleanup related
things first and netlink event notifiers should be called after that.
This fixes two problems:
team carrier is now correctly set (port is removed from list first)
mode can set option as changed in .port_leave op

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c