Lines Matching full:vid
59 u16 vid; member
67 u16 vid; member
74 static int prestera_port_vid_stp_set(struct prestera_port *port, u16 vid,
78 prestera_bridge_vlan_create(struct prestera_bridge_port *br_port, u16 vid) in prestera_bridge_vlan_create() argument
87 br_vlan->vid = vid; in prestera_bridge_vlan_create()
101 prestera_bridge_vlan_by_vid(struct prestera_bridge_port *br_port, u16 vid) in prestera_bridge_vlan_by_vid() argument
106 if (br_vlan->vid == vid) in prestera_bridge_vlan_by_vid()
114 u16 vid) in prestera_bridge_vlan_port_count() argument
122 if (br_vlan->vid == vid) { in prestera_bridge_vlan_port_count()
139 prestera_port_vlan_by_vid(struct prestera_port *port, u16 vid) in prestera_port_vlan_by_vid() argument
144 if (port_vlan->vid == vid) in prestera_port_vlan_by_vid()
152 prestera_port_vlan_create(struct prestera_port *port, u16 vid, bool untagged) in prestera_port_vlan_create() argument
157 port_vlan = prestera_port_vlan_by_vid(port, vid); in prestera_port_vlan_create()
161 err = prestera_hw_vlan_port_set(port, vid, true, untagged); in prestera_port_vlan_create()
172 port_vlan->vid = vid; in prestera_port_vlan_create()
179 prestera_hw_vlan_port_set(port, vid, false, false); in prestera_port_vlan_create()
191 u16 vid = port_vlan->vid; in prestera_port_vlan_bridge_leave() local
195 port_count = prestera_bridge_vlan_port_count(br_port->bridge, vid); in prestera_port_vlan_bridge_leave()
196 br_vlan = prestera_bridge_vlan_by_vid(br_port, vid); in prestera_port_vlan_bridge_leave()
204 prestera_hw_fdb_flush_vlan(port->sw, vid, fdb_flush_mode); in prestera_port_vlan_bridge_leave()
206 prestera_hw_fdb_flush_port_vlan(port, vid, fdb_flush_mode); in prestera_port_vlan_bridge_leave()
217 u16 vid = port_vlan->vid; in prestera_port_vlan_destroy() local
222 prestera_hw_vlan_port_set(port, vid, false, false); in prestera_port_vlan_destroy()
478 static int prestera_port_vid_stp_set(struct prestera_port *port, u16 vid, in prestera_port_vid_stp_set() argument
505 return prestera_hw_vlan_port_stp_set(port, vid, hw_state); in prestera_port_vid_stp_set()
662 return prestera_port_vid_stp_set(port, br_vlan->vid, state); in prestera_port_bridge_vlan_stp_set()
676 u16 vid; in presterar_port_attr_stp_state_set() local
686 vid = br_port->bridge->bridge_id; in presterar_port_attr_stp_state_set()
687 err = prestera_port_vid_stp_set(port, vid, state); in presterar_port_attr_stp_state_set()
709 prestera_port_vid_stp_set(port, vid, br_port->stp_state); in presterar_port_attr_stp_state_set()
760 send_info.vid = info->vid; in prestera_fdb_offload_notify()
775 u16 vid; in prestera_port_fdb_set() local
784 vid = fdb_info->vid; in prestera_port_fdb_set()
786 vid = bridge->bridge_id; in prestera_port_fdb_set()
789 err = prestera_hw_fdb_add(port, fdb_info->addr, vid, false); in prestera_port_fdb_set()
791 err = prestera_hw_fdb_del(port, fdb_info->addr, vid); in prestera_port_fdb_set()
913 u16 vid = port_vlan->vid; in prestera_port_vlan_bridge_join() local
927 err = prestera_port_vid_stp_set(port, vid, br_port->stp_state); in prestera_port_vlan_bridge_join()
931 br_vlan = prestera_bridge_vlan_by_vid(br_port, vid); in prestera_port_vlan_bridge_join()
933 br_vlan = prestera_bridge_vlan_create(br_port, vid); in prestera_port_vlan_bridge_join()
948 prestera_port_vid_stp_set(port, vid, BR_STATE_FORWARDING); in prestera_port_vlan_bridge_join()
958 u16 vid, bool is_untagged, bool is_pvid, in prestera_bridge_port_vlan_add() argument
967 pvid = vid; in prestera_bridge_port_vlan_add()
969 pvid = port->pvid == vid ? 0 : port->pvid; in prestera_bridge_port_vlan_add()
971 port_vlan = prestera_port_vlan_by_vid(port, vid); in prestera_bridge_port_vlan_add()
976 port_vlan = prestera_port_vlan_create(port, vid, is_untagged); in prestera_bridge_port_vlan_add()
980 err = prestera_hw_vlan_port_set(port, vid, true, is_untagged); in prestera_bridge_port_vlan_add()
998 prestera_hw_vlan_port_set(port, vid, false, false); in prestera_bridge_port_vlan_add()
1007 struct prestera_bridge_port *br_port, u16 vid) in prestera_bridge_port_vlan_del() argument
1009 u16 pvid = port->pvid == vid ? 0 : port->pvid; in prestera_bridge_port_vlan_del()
1012 port_vlan = prestera_port_vlan_by_vid(port, vid); in prestera_bridge_port_vlan_del()
1032 u16 vid; in prestera_port_vlans_add() local
1048 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) { in prestera_port_vlans_add()
1052 vid, flag_untagged, in prestera_port_vlans_add()
1084 u16 vid; in prestera_port_vlans_del() local
1096 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) in prestera_port_vlans_del()
1097 prestera_bridge_port_vlan_del(port, br_port, vid); in prestera_port_vlans_del()
1155 info.vid = evt->fdb_evt.vid; in prestera_fdb_event()