Lines Matching full:vid
76 u16 vid; member
88 const struct net_device *vxlan_dev, u16 vid,
92 u16 vid, struct netlink_ext_ack *extack);
95 u16 vid);
411 u16 vid) in mlxsw_sp_port_vlan_find_by_bridge() argument
423 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge()
450 u16 vid) in mlxsw_sp_bridge_vlan_find() argument
455 if (bridge_vlan->vid == vid) in mlxsw_sp_bridge_vlan_find()
463 mlxsw_sp_bridge_vlan_create(struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_vlan_create() argument
472 bridge_vlan->vid = vid; in mlxsw_sp_bridge_vlan_create()
487 mlxsw_sp_bridge_vlan_get(struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_vlan_get() argument
491 bridge_vlan = mlxsw_sp_bridge_vlan_find(bridge_port, vid); in mlxsw_sp_bridge_vlan_get()
495 return mlxsw_sp_bridge_vlan_create(bridge_port, vid); in mlxsw_sp_bridge_vlan_get()
516 bridge_vlan->vid, state); in mlxsw_sp_port_bridge_vlan_stp_set()
616 u16 vid = bridge_vlan->vid; in mlxsw_sp_port_bridge_vlan_learning_set() local
622 return mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, set); in mlxsw_sp_port_bridge_vlan_learning_set()
963 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_fid_join() local
968 fid = bridge_device->ops->fid_get(bridge_device, vid, extack); in mlxsw_sp_port_vlan_fid_join()
987 err = mlxsw_sp_fid_port_vid_map(fid, mlxsw_sp_port, vid); in mlxsw_sp_port_vlan_fid_join()
1012 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_fid_leave() local
1015 mlxsw_sp_fid_port_vid_unmap(fid, mlxsw_sp_port, vid); in mlxsw_sp_port_vlan_fid_leave()
1024 u16 vid, bool is_pvid) in mlxsw_sp_port_pvid_determine() argument
1027 return vid; in mlxsw_sp_port_pvid_determine()
1028 else if (mlxsw_sp_port->pvid == vid) in mlxsw_sp_port_pvid_determine()
1041 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_bridge_join() local
1053 err = mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, in mlxsw_sp_port_vlan_bridge_join()
1058 err = mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, in mlxsw_sp_port_vlan_bridge_join()
1063 bridge_vlan = mlxsw_sp_bridge_vlan_get(bridge_port, vid); in mlxsw_sp_port_vlan_bridge_join()
1079 mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, BR_STATE_DISABLED); in mlxsw_sp_port_vlan_bridge_join()
1081 mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, false); in mlxsw_sp_port_vlan_bridge_join()
1094 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_bridge_leave() local
1103 bridge_vlan = mlxsw_sp_bridge_vlan_find(bridge_port, vid); in mlxsw_sp_port_vlan_bridge_leave()
1108 mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, BR_STATE_DISABLED); in mlxsw_sp_port_vlan_bridge_leave()
1109 mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, false); in mlxsw_sp_port_vlan_bridge_leave()
1126 u16 vid, bool is_untagged, bool is_pvid, in mlxsw_sp_bridge_port_vlan_add() argument
1129 u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); in mlxsw_sp_bridge_port_vlan_add()
1138 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_port_vlan_add()
1145 vid); in mlxsw_sp_bridge_port_vlan_add()
1150 err = mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, true, in mlxsw_sp_bridge_port_vlan_add()
1169 mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, false, false); in mlxsw_sp_bridge_port_vlan_add()
1181 u16 vid; in mlxsw_sp_br_ban_rif_pvid_change() local
1187 for (vid = vlan->vid_begin; vid <= vlan->vid_end; ++vid) { in mlxsw_sp_br_ban_rif_pvid_change()
1189 if (vid != pvid) { in mlxsw_sp_br_ban_rif_pvid_change()
1194 if (vid == pvid) { in mlxsw_sp_br_ban_rif_pvid_change()
1214 u16 vid; in mlxsw_sp_port_vlans_add() local
1239 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) { in mlxsw_sp_port_vlans_add()
1243 vid, flag_untagged, in mlxsw_sp_port_vlans_add()
1415 u16 fid_index, vid; in mlxsw_sp_port_fdb_set() local
1424 fdb_info->vid); in mlxsw_sp_port_fdb_set()
1429 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_fdb_set()
1440 vid, adding, false); in mlxsw_sp_port_fdb_set()
1709 mdb->vid); in mlxsw_sp_port_mdb_add()
1820 struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_port_vlan_del() argument
1822 u16 pvid = mlxsw_sp_port->pvid == vid ? 0 : mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_del()
1825 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_port_vlan_del()
1831 mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, false, false); in mlxsw_sp_bridge_port_vlan_del()
1841 u16 vid; in mlxsw_sp_port_vlans_del() local
1853 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) in mlxsw_sp_port_vlans_del()
1854 mlxsw_sp_bridge_port_vlan_del(mlxsw_sp_port, bridge_port, vid); in mlxsw_sp_port_vlans_del()
1900 mdb->vid); in mlxsw_sp_port_mdb_del()
2006 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_bridge_8021q_vxlan_join() argument
2023 if (!vid) { in mlxsw_sp_bridge_8021q_vxlan_join()
2024 err = mlxsw_sp_vxlan_mapped_vid(vxlan_dev, &vid); in mlxsw_sp_bridge_8021q_vxlan_join()
2025 if (err || !vid) in mlxsw_sp_bridge_8021q_vxlan_join()
2029 fid = mlxsw_sp_fid_8021q_get(mlxsw_sp, vid); in mlxsw_sp_bridge_8021q_vxlan_join()
2054 mlxsw_sp_bridge_8021q_vxlan_dev_find(struct net_device *br_dev, u16 vid) in mlxsw_sp_bridge_8021q_vxlan_dev_find() argument
2067 if (err || pvid != vid) in mlxsw_sp_bridge_8021q_vxlan_dev_find()
2078 u16 vid, struct netlink_ext_ack *extack) in mlxsw_sp_bridge_8021q_fid_get() argument
2082 return mlxsw_sp_fid_8021q_get(mlxsw_sp, vid); in mlxsw_sp_bridge_8021q_fid_get()
2087 u16 vid) in mlxsw_sp_bridge_8021q_fid_lookup() argument
2091 return mlxsw_sp_fid_8021q_lookup(mlxsw_sp, vid); in mlxsw_sp_bridge_8021q_fid_lookup()
2135 u16 vid; in mlxsw_sp_bridge_8021d_port_join() local
2137 vid = is_vlan_dev(dev) ? vlan_dev_vlan_id(dev) : MLXSW_SP_DEFAULT_VID; in mlxsw_sp_bridge_8021d_port_join()
2138 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_8021d_port_join()
2162 u16 vid; in mlxsw_sp_bridge_8021d_port_leave() local
2164 vid = is_vlan_dev(dev) ? vlan_dev_vlan_id(dev) : MLXSW_SP_DEFAULT_VID; in mlxsw_sp_bridge_8021d_port_leave()
2165 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_8021d_port_leave()
2174 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_bridge_8021d_vxlan_join() argument
2213 u16 vid, struct netlink_ext_ack *extack) in mlxsw_sp_bridge_8021d_fid_get() argument
2222 u16 vid) in mlxsw_sp_bridge_8021d_fid_lookup() argument
2227 if (vid) in mlxsw_sp_bridge_8021d_fid_lookup()
2299 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_bridge_vxlan_join() argument
2308 return bridge_device->ops->vxlan_join(bridge_device, vxlan_dev, vid, in mlxsw_sp_bridge_vxlan_join()
2398 const char *mac, u16 vid, in mlxsw_sp_fdb_call_notifiers() argument
2404 info.vid = vid; in mlxsw_sp_fdb_call_notifiers()
2420 u16 vid, fid; in mlxsw_sp_fdb_notify_mac_process() local
2436 …netdev_err(mlxsw_sp_port->dev, "Failed to find a matching {Port, VID} following FDB notification\n… in mlxsw_sp_fdb_notify_mac_process()
2442 netdev_err(mlxsw_sp_port->dev, "{Port, VID} not associated with a bridge\n"); in mlxsw_sp_fdb_notify_mac_process()
2447 vid = bridge_device->vlan_enabled ? mlxsw_sp_port_vlan->vid : 0; in mlxsw_sp_fdb_notify_mac_process()
2460 mlxsw_sp_fdb_call_notifiers(type, mac, vid, bridge_port->dev, adding); in mlxsw_sp_fdb_notify_mac_process()
2482 u16 vid, fid; in mlxsw_sp_fdb_notify_mac_lag_process() local
2498 …netdev_err(mlxsw_sp_port->dev, "Failed to find a matching {Port, VID} following FDB notification\n… in mlxsw_sp_fdb_notify_mac_lag_process()
2504 netdev_err(mlxsw_sp_port->dev, "{Port, VID} not associated with a bridge\n"); in mlxsw_sp_fdb_notify_mac_lag_process()
2509 vid = bridge_device->vlan_enabled ? mlxsw_sp_port_vlan->vid : 0; in mlxsw_sp_fdb_notify_mac_lag_process()
2511 mlxsw_sp_port_vlan->vid : 0; in mlxsw_sp_fdb_notify_mac_lag_process()
2524 mlxsw_sp_fdb_call_notifiers(type, mac, vid, bridge_port->dev, adding); in mlxsw_sp_fdb_notify_mac_lag_process()
2596 u16 fid_index, vid; in mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local
2615 &nve_dev, &vid, &vni); in mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
2631 mlxsw_sp_fdb_call_notifiers(type, mac, vid, nve_dev, adding); in mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
2777 fdb_info->vid, dev, true); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
2827 switchdev_work->fdb_info.vid); in mlxsw_sp_switchdev_bridge_nve_fdb_event()
2871 fdb_info->vid, dev, true); in mlxsw_sp_switchdev_bridge_fdb_event_work()
2907 u16 vid; in mlxsw_sp_switchdev_vxlan_fdb_add() local
2942 vid = bridge_device->ops->fid_vid(bridge_device, fid); in mlxsw_sp_switchdev_vxlan_fdb_add()
2943 if (br_fdb_find_port(br_dev, vxlan_fdb_info->eth_addr, vid) != dev) in mlxsw_sp_switchdev_vxlan_fdb_add()
2955 vxlan_fdb_info->eth_addr, vid, dev, true); in mlxsw_sp_switchdev_vxlan_fdb_add()
2979 u16 vid; in mlxsw_sp_switchdev_vxlan_fdb_del() local
3003 vid = bridge_device->ops->fid_vid(bridge_device, fid); in mlxsw_sp_switchdev_vxlan_fdb_del()
3005 vxlan_fdb_info->eth_addr, vid, dev, false); in mlxsw_sp_switchdev_vxlan_fdb_del()
3177 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_switchdev_vxlan_vlan_add() argument
3193 mlxsw_sp_bridge_8021q_vxlan_dev_find(bridge_device->dev, vid)) { in mlxsw_sp_switchdev_vxlan_vlan_add()
3210 vxlan_dev, vid, extack); in mlxsw_sp_switchdev_vxlan_vlan_add()
3219 if (vid == old_vid) { in mlxsw_sp_switchdev_vxlan_vlan_add()
3249 err = mlxsw_sp_bridge_8021q_vxlan_join(bridge_device, vxlan_dev, vid, in mlxsw_sp_switchdev_vxlan_vlan_add()
3265 const struct net_device *vxlan_dev, u16 vid) in mlxsw_sp_switchdev_vxlan_vlan_del() argument
3279 if (mlxsw_sp_fid_8021q_vid(fid) != vid) in mlxsw_sp_switchdev_vxlan_vlan_del()
3302 u16 vid; in mlxsw_sp_switchdev_vxlan_vlans_add() local
3325 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) { in mlxsw_sp_switchdev_vxlan_vlans_add()
3329 vxlan_dev, vid, in mlxsw_sp_switchdev_vxlan_vlans_add()
3349 u16 vid; in mlxsw_sp_switchdev_vxlan_vlans_del() local
3368 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) in mlxsw_sp_switchdev_vxlan_vlans_del()
3370 vxlan_dev, vid); in mlxsw_sp_switchdev_vxlan_vlans_del()