Lines Matching refs:real_dev
89 struct net_device *real_dev = vlan->real_dev; in unregister_vlan_dev() local
96 vlan_info = rtnl_dereference(real_dev->vlan_info); in unregister_vlan_dev()
110 netdev_upper_dev_unlink(real_dev, dev); in unregister_vlan_dev()
118 vlan_mvrp_uninit_applicant(real_dev); in unregister_vlan_dev()
119 vlan_gvrp_uninit_applicant(real_dev); in unregister_vlan_dev()
122 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
125 int vlan_check_real_dev(struct net_device *real_dev, in vlan_check_real_dev() argument
129 const char *name = real_dev->name; in vlan_check_real_dev()
131 if (real_dev->features & NETIF_F_VLAN_CHALLENGED) { in vlan_check_real_dev()
137 if (vlan_find_dev(real_dev, protocol, vlan_id) != NULL) { in vlan_check_real_dev()
148 struct net_device *real_dev = vlan->real_dev; in register_vlan_dev() local
154 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
158 vlan_info = rtnl_dereference(real_dev->vlan_info); in register_vlan_dev()
164 err = vlan_gvrp_init_applicant(real_dev); in register_vlan_dev()
167 err = vlan_mvrp_init_applicant(real_dev); in register_vlan_dev()
180 err = netdev_upper_dev_link(real_dev, dev, extack); in register_vlan_dev()
184 vlan_stacked_transfer_operstate(real_dev, dev, vlan); in register_vlan_dev()
199 vlan_mvrp_uninit_applicant(real_dev); in register_vlan_dev()
202 vlan_gvrp_uninit_applicant(real_dev); in register_vlan_dev()
204 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
211 static int register_vlan_device(struct net_device *real_dev, u16 vlan_id) in register_vlan_device() argument
215 struct net *net = dev_net(real_dev); in register_vlan_device()
223 err = vlan_check_real_dev(real_dev, htons(ETH_P_8021Q), vlan_id, in register_vlan_device()
232 snprintf(name, IFNAMSIZ, "%s.%.4i", real_dev->name, vlan_id); in register_vlan_device()
244 snprintf(name, IFNAMSIZ, "%s.%i", real_dev->name, vlan_id); in register_vlan_device()
264 new_dev->mtu = real_dev->mtu; in register_vlan_device()
269 vlan->real_dev = real_dev; in register_vlan_device()
332 vlandev->priv_flags |= (vlan->real_dev->priv_flags & IFF_XMIT_DST_RELEASE); in vlan_transfer_features()
333 vlandev->hw_enc_features = vlan_tnl_features(vlan->real_dev); in vlan_transfer_features()