diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-01-03 17:48:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-04 16:31:49 -0500 |
commit | b1cc9850cd92856196a45e75e97e9d6c2c0b6dc3 (patch) | |
tree | 92ad06f3ddf2a670adc61bbd26374f1ef3c2f1c6 | |
parent | 898e506171b2c6132cdebd450ab4db81ae9a59bc (diff) |
team: remove usage of netdev_set_master()
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/team/team.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index 2ea4f0ec54b0..250f8c1df72c 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c | |||
@@ -1055,10 +1055,11 @@ static int team_port_add(struct team *team, struct net_device *port_dev) | |||
1055 | } | 1055 | } |
1056 | } | 1056 | } |
1057 | 1057 | ||
1058 | err = netdev_set_master(port_dev, dev); | 1058 | err = netdev_master_upper_dev_link(port_dev, dev); |
1059 | if (err) { | 1059 | if (err) { |
1060 | netdev_err(dev, "Device %s failed to set master\n", portname); | 1060 | netdev_err(dev, "Device %s failed to set upper link\n", |
1061 | goto err_set_master; | 1061 | portname); |
1062 | goto err_set_upper_link; | ||
1062 | } | 1063 | } |
1063 | 1064 | ||
1064 | err = netdev_rx_handler_register(port_dev, team_handle_frame, | 1065 | err = netdev_rx_handler_register(port_dev, team_handle_frame, |
@@ -1091,9 +1092,9 @@ err_option_port_add: | |||
1091 | netdev_rx_handler_unregister(port_dev); | 1092 | netdev_rx_handler_unregister(port_dev); |
1092 | 1093 | ||
1093 | err_handler_register: | 1094 | err_handler_register: |
1094 | netdev_set_master(port_dev, NULL); | 1095 | netdev_upper_dev_unlink(port_dev, dev); |
1095 | 1096 | ||
1096 | err_set_master: | 1097 | err_set_upper_link: |
1097 | team_port_disable_netpoll(port); | 1098 | team_port_disable_netpoll(port); |
1098 | 1099 | ||
1099 | err_enable_netpoll: | 1100 | err_enable_netpoll: |
@@ -1137,7 +1138,7 @@ static int team_port_del(struct team *team, struct net_device *port_dev) | |||
1137 | team_port_disable(team, port); | 1138 | team_port_disable(team, port); |
1138 | list_del_rcu(&port->list); | 1139 | list_del_rcu(&port->list); |
1139 | netdev_rx_handler_unregister(port_dev); | 1140 | netdev_rx_handler_unregister(port_dev); |
1140 | netdev_set_master(port_dev, NULL); | 1141 | netdev_upper_dev_unlink(port_dev, dev); |
1141 | team_port_disable_netpoll(port); | 1142 | team_port_disable_netpoll(port); |
1142 | vlan_vids_del_by_dev(port_dev, dev); | 1143 | vlan_vids_del_by_dev(port_dev, dev); |
1143 | dev_close(port_dev); | 1144 | dev_close(port_dev); |