Lines Matching refs:vlan_id

51 				   __be16 vlan_proto, u16 vlan_id)  in vlan_group_prealloc_vid()  argument
64 vidx = vlan_id / VLAN_GROUP_ARRAY_PART_LEN; in vlan_group_prealloc_vid()
95 u16 vlan_id = vlan->vlan_id; in unregister_vlan_dev() local
111 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, NULL); in unregister_vlan_dev()
125 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in unregister_vlan_dev()
129 __be16 protocol, u16 vlan_id, in vlan_check_real_dev() argument
140 if (vlan_find_dev(real_dev, protocol, vlan_id) != NULL) { in vlan_check_real_dev()
152 u16 vlan_id = vlan->vlan_id; in register_vlan_dev() local
157 err = vlan_vid_add(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
175 err = vlan_group_prealloc_vid(grp, vlan->vlan_proto, vlan_id); in register_vlan_dev()
193 vlan_group_set_device(grp, vlan->vlan_proto, vlan_id, dev); in register_vlan_dev()
207 vlan_vid_del(real_dev, vlan->vlan_proto, vlan_id); in register_vlan_dev()
214 static int register_vlan_device(struct net_device *real_dev, u16 vlan_id) in register_vlan_device() argument
223 if (vlan_id >= VLAN_VID_MASK) in register_vlan_device()
226 err = vlan_check_real_dev(real_dev, htons(ETH_P_8021Q), vlan_id, in register_vlan_device()
235 snprintf(name, IFNAMSIZ, "%s.%.4i", real_dev->name, vlan_id); in register_vlan_device()
241 snprintf(name, IFNAMSIZ, "vlan%i", vlan_id); in register_vlan_device()
247 snprintf(name, IFNAMSIZ, "%s.%i", real_dev->name, vlan_id); in register_vlan_device()
254 snprintf(name, IFNAMSIZ, "vlan%.4i", vlan_id); in register_vlan_device()
271 vlan->vlan_id = vlan_id; in register_vlan_device()