Lines Matching refs:vid

105 	if (v->vid == br_get_pvid(vg))  in br_vlan_modify_state()
164 tun_id += v->vid - vinfo->vid; in br_vlan_modify_tunnel()
173 return br_vlan_tunnel_info(p, cmd, v->vid, tun_id, changed); in br_vlan_modify_tunnel()
224 int vid, err = 0; in br_vlan_process_options() local
242 for (vid = range_start->vid; vid <= range_end->vid; vid++) { in br_vlan_process_options()
245 v = br_vlan_find(vg, vid); in br_vlan_process_options()
265 if (v->vid == pvid || in br_vlan_process_options()
267 br_vlan_notify(br, p, curr_start->vid, in br_vlan_process_options()
268 curr_end->vid, RTM_NEWVLAN); in br_vlan_process_options()
277 br_vlan_notify(br, p, curr_start->vid, curr_end->vid, in br_vlan_process_options()
284 br_vlan_notify(br, p, curr_start->vid, curr_end->vid, in br_vlan_process_options()
293 return v_curr->vid - r_end->vid == 1 && in br_vlan_global_opts_can_enter_range()
300 bool br_vlan_global_opts_fill(struct sk_buff *skb, u16 vid, u16 vid_range, in br_vlan_global_opts_fill() argument
311 if (nla_put_u16(skb, BRIDGE_VLANDB_GOPTS_ID, vid)) in br_vlan_global_opts_fill()
314 if (vid_range && vid < vid_range && in br_vlan_global_opts_fill()
417 u16 vid, u16 vid_range) in br_vlan_global_opts_notify() argument
429 v = br_vlan_find(br_vlan_group(br), vid); in br_vlan_global_opts_notify()
446 if (!br_vlan_global_opts_fill(skb, vid, vid_range, v)) in br_vlan_global_opts_notify()
591 u16 vid, vid_range = 0; in br_vlan_rtm_process_global_options() local
617 vid = nla_get_u16(tb[BRIDGE_VLANDB_GOPTS_ID]); in br_vlan_rtm_process_global_options()
618 if (!br_vlan_valid_id(vid, extack)) in br_vlan_rtm_process_global_options()
625 if (vid >= vid_range) { in br_vlan_rtm_process_global_options()
630 vid_range = vid; in br_vlan_rtm_process_global_options()
633 for (; vid <= vid_range; vid++) { in br_vlan_rtm_process_global_options()
636 v = br_vlan_find(vg, vid); in br_vlan_rtm_process_global_options()
657 br_vlan_global_opts_notify(br, curr_start->vid, in br_vlan_rtm_process_global_options()
658 curr_end->vid); in br_vlan_rtm_process_global_options()
667 br_vlan_global_opts_notify(br, curr_start->vid, in br_vlan_rtm_process_global_options()
668 curr_end->vid); in br_vlan_rtm_process_global_options()
674 br_vlan_global_opts_notify(br, curr_start->vid, curr_end->vid); in br_vlan_rtm_process_global_options()