Home
last modified time | relevance | path

Searched refs:new_dev (Results 1 – 4 of 4) sorted by relevance

/net/8021q/
Dvlan.c216 struct net_device *new_dev; in register_vlan_device() local
257 new_dev = alloc_netdev(sizeof(struct vlan_dev_priv), name, in register_vlan_device()
260 if (new_dev == NULL) in register_vlan_device()
263 dev_net_set(new_dev, net); in register_vlan_device()
267 new_dev->mtu = real_dev->mtu; in register_vlan_device()
269 vlan = vlan_dev_priv(new_dev); in register_vlan_device()
276 new_dev->rtnl_link_ops = &vlan_link_ops; in register_vlan_device()
277 err = register_vlan_dev(new_dev, NULL); in register_vlan_device()
284 free_netdev(new_dev); in register_vlan_device()
/net/bluetooth/
D6lowpan.c1184 struct lowpan_btle_dev *entry, *tmp, *new_dev; in disconnect_devices() local
1197 new_dev = kmalloc(sizeof(*new_dev), GFP_ATOMIC); in disconnect_devices()
1198 if (!new_dev) in disconnect_devices()
1201 new_dev->netdev = entry->netdev; in disconnect_devices()
1202 INIT_LIST_HEAD(&new_dev->list); in disconnect_devices()
1204 list_add_rcu(&new_dev->list, &devices); in disconnect_devices()
/net/ipv4/
Dipmr.c443 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()
[all …]
/net/core/
Ddev.c7856 struct net_device *new_dev, in netdev_adjacent_change_prepare() argument
7866 if (!new_dev) in netdev_adjacent_change_prepare()
7869 if (old_dev && new_dev != old_dev) in netdev_adjacent_change_prepare()
7871 err = __netdev_upper_dev_link(new_dev, dev, false, NULL, NULL, &priv, in netdev_adjacent_change_prepare()
7874 if (old_dev && new_dev != old_dev) in netdev_adjacent_change_prepare()
7884 struct net_device *new_dev, in netdev_adjacent_change_commit() argument
7892 if (!new_dev || !old_dev) in netdev_adjacent_change_commit()
7895 if (new_dev == old_dev) in netdev_adjacent_change_commit()
7904 struct net_device *new_dev, in netdev_adjacent_change_abort() argument
7912 if (!new_dev) in netdev_adjacent_change_abort()
[all …]