Lines Matching defs:new_dev
288 struct net_device *new_dev;
327 new_dev = alloc_netdev_mq(sizeof(struct vlan_dev_info), name,
330 if (new_dev == NULL)
333 new_dev->real_num_tx_queues = real_dev->real_num_tx_queues;
334 dev_net_set(new_dev, net);
338 new_dev->mtu = real_dev->mtu;
340 vlan_dev_info(new_dev)->vlan_id = vlan_id;
341 vlan_dev_info(new_dev)->real_dev = real_dev;
342 vlan_dev_info(new_dev)->dent = NULL;
343 vlan_dev_info(new_dev)->flags = VLAN_FLAG_REORDER_HDR;
345 new_dev->rtnl_link_ops = &vlan_link_ops;
346 err = register_vlan_dev(new_dev);
351 (void)ctf_dev_vlan_add(kcih, real_dev, vlan_id, new_dev);
357 free_netdev(new_dev);