Lines Matching refs:new_dev
443 struct net_device *tunnel_dev, *new_dev; in ipmr_new_tunnel() local
465 new_dev = __dev_get_by_name(net, p.name); in ipmr_new_tunnel()
466 if (!new_dev) in ipmr_new_tunnel()
469 new_dev->flags |= IFF_MULTICAST; in ipmr_new_tunnel()
470 if (!ipmr_init_vif_indev(new_dev)) in ipmr_new_tunnel()
472 if (dev_open(new_dev, NULL)) in ipmr_new_tunnel()
474 dev_hold(new_dev); in ipmr_new_tunnel()
475 err = dev_set_allmulti(new_dev, 1); in ipmr_new_tunnel()
477 dev_close(new_dev); in ipmr_new_tunnel()
480 dev_put(new_dev); in ipmr_new_tunnel()
481 new_dev = ERR_PTR(err); in ipmr_new_tunnel()
483 return new_dev; in ipmr_new_tunnel()
486 unregister_netdevice(new_dev); in ipmr_new_tunnel()