diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-01-03 17:48:54 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-04 16:31:50 -0500 |
commit | 74fdd93fbcc16522406f65c564ea104490ad4908 (patch) | |
tree | 6355c2f7e908e5896e8b95dcd5dbb2d96d8c8211 /net/bridge | |
parent | b1cc9850cd92856196a45e75e97e9d6c2c0b6dc3 (diff) |
bridge: remove usage of netdev_set_master()
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_if.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 1edd71d44a4c..2148d474a04f 100644 --- a/net/bridge/br_if.c +++ b/net/bridge/br_if.c | |||
@@ -148,7 +148,7 @@ static void del_nbp(struct net_bridge_port *p) | |||
148 | netdev_rx_handler_unregister(dev); | 148 | netdev_rx_handler_unregister(dev); |
149 | synchronize_net(); | 149 | synchronize_net(); |
150 | 150 | ||
151 | netdev_set_master(dev, NULL); | 151 | netdev_upper_dev_unlink(dev, br->dev); |
152 | 152 | ||
153 | br_multicast_del_port(p); | 153 | br_multicast_del_port(p); |
154 | 154 | ||
@@ -364,7 +364,7 @@ int br_add_if(struct net_bridge *br, struct net_device *dev) | |||
364 | if (br_netpoll_info(br) && ((err = br_netpoll_enable(p, GFP_KERNEL)))) | 364 | if (br_netpoll_info(br) && ((err = br_netpoll_enable(p, GFP_KERNEL)))) |
365 | goto err3; | 365 | goto err3; |
366 | 366 | ||
367 | err = netdev_set_master(dev, br->dev); | 367 | err = netdev_master_upper_dev_link(dev, br->dev); |
368 | if (err) | 368 | if (err) |
369 | goto err4; | 369 | goto err4; |
370 | 370 | ||
@@ -403,7 +403,7 @@ int br_add_if(struct net_bridge *br, struct net_device *dev) | |||
403 | return 0; | 403 | return 0; |
404 | 404 | ||
405 | err5: | 405 | err5: |
406 | netdev_set_master(dev, NULL); | 406 | netdev_upper_dev_unlink(dev, br->dev); |
407 | err4: | 407 | err4: |
408 | br_netpoll_disable(p); | 408 | br_netpoll_disable(p); |
409 | err3: | 409 | err3: |