diff options
Diffstat (limited to 'net')
-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: |