vlan.c (440fdb53b4ae58602711b5b8c3a139ace2404dbb) | vlan.c (d9f30ec0b0d129b9cbf2b041a6a3159aa24592f6) |
---|---|
1/* 2 * INET 802.1Q VLAN 3 * Ethernet-type device handling. 4 * 5 * Authors: Ben Greear <greearb@candelatech.com> 6 * Please send support related email to: vlan@scry.wanfear.com 7 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html 8 * --- 548 unchanged lines hidden (view full) --- 557 VLAN_DEV_INFO(new_dev)->dent = NULL; 558 VLAN_DEV_INFO(new_dev)->flags = VLAN_FLAG_REORDER_HDR; 559 560 new_dev->rtnl_link_ops = &vlan_link_ops; 561 err = register_vlan_dev(new_dev); 562 if (err < 0) 563 goto out_free_newdev; 564 | 1/* 2 * INET 802.1Q VLAN 3 * Ethernet-type device handling. 4 * 5 * Authors: Ben Greear <greearb@candelatech.com> 6 * Please send support related email to: vlan@scry.wanfear.com 7 * VLAN Home Page: http://www.candelatech.com/~greear/vlan.html 8 * --- 548 unchanged lines hidden (view full) --- 557 VLAN_DEV_INFO(new_dev)->dent = NULL; 558 VLAN_DEV_INFO(new_dev)->flags = VLAN_FLAG_REORDER_HDR; 559 560 new_dev->rtnl_link_ops = &vlan_link_ops; 561 err = register_vlan_dev(new_dev); 562 if (err < 0) 563 goto out_free_newdev; 564 |
565 /* Account for reference in struct vlan_dev_info */ 566 dev_hold(real_dev); | |
567#ifdef VLAN_DEBUG 568 printk(VLAN_DBG "Allocated new device successfully, returning.\n"); 569#endif 570 return 0; 571 572out_free_newdev: 573 free_netdev(new_dev); 574 return err; --- 270 unchanged lines hidden --- | 565#ifdef VLAN_DEBUG 566 printk(VLAN_DBG "Allocated new device successfully, returning.\n"); 567#endif 568 return 0; 569 570out_free_newdev: 571 free_netdev(new_dev); 572 return err; --- 270 unchanged lines hidden --- |