Lines Matching refs: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);
341 u16 vid) in mlxsw_sp_port_vlan_find_by_bridge() argument
353 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge()
380 u16 vid) in mlxsw_sp_bridge_vlan_find() argument
385 if (bridge_vlan->vid == vid) in mlxsw_sp_bridge_vlan_find()
393 mlxsw_sp_bridge_vlan_create(struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_vlan_create() argument
402 bridge_vlan->vid = vid; in mlxsw_sp_bridge_vlan_create()
417 mlxsw_sp_bridge_vlan_get(struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_vlan_get() argument
421 bridge_vlan = mlxsw_sp_bridge_vlan_find(bridge_port, vid); in mlxsw_sp_bridge_vlan_get()
425 return mlxsw_sp_bridge_vlan_create(bridge_port, vid); in mlxsw_sp_bridge_vlan_get()
446 bridge_vlan->vid, state); in mlxsw_sp_port_bridge_vlan_stp_set()
546 u16 vid = bridge_vlan->vid; in mlxsw_sp_port_bridge_vlan_learning_set() local
552 return mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, set); in mlxsw_sp_port_bridge_vlan_learning_set()
893 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_fid_join() local
898 fid = bridge_device->ops->fid_get(bridge_device, vid, extack); in mlxsw_sp_port_vlan_fid_join()
917 err = mlxsw_sp_fid_port_vid_map(fid, mlxsw_sp_port, vid); in mlxsw_sp_port_vlan_fid_join()
942 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_fid_leave() local
945 mlxsw_sp_fid_port_vid_unmap(fid, mlxsw_sp_port, vid); in mlxsw_sp_port_vlan_fid_leave()
954 u16 vid, bool is_pvid) in mlxsw_sp_port_pvid_determine() argument
957 return vid; in mlxsw_sp_port_pvid_determine()
958 else if (mlxsw_sp_port->pvid == vid) in mlxsw_sp_port_pvid_determine()
971 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_bridge_join() local
983 err = mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, in mlxsw_sp_port_vlan_bridge_join()
988 err = mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, in mlxsw_sp_port_vlan_bridge_join()
993 bridge_vlan = mlxsw_sp_bridge_vlan_get(bridge_port, vid); in mlxsw_sp_port_vlan_bridge_join()
1009 mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, BR_STATE_DISABLED); in mlxsw_sp_port_vlan_bridge_join()
1011 mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, false); in mlxsw_sp_port_vlan_bridge_join()
1024 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_bridge_leave() local
1033 bridge_vlan = mlxsw_sp_bridge_vlan_find(bridge_port, vid); in mlxsw_sp_port_vlan_bridge_leave()
1038 mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, BR_STATE_DISABLED); in mlxsw_sp_port_vlan_bridge_leave()
1039 mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, false); in mlxsw_sp_port_vlan_bridge_leave()
1056 u16 vid, bool is_untagged, bool is_pvid, in mlxsw_sp_bridge_port_vlan_add() argument
1059 u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); in mlxsw_sp_bridge_port_vlan_add()
1068 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_port_vlan_add()
1075 vid); in mlxsw_sp_bridge_port_vlan_add()
1080 err = mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, true, in mlxsw_sp_bridge_port_vlan_add()
1099 mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, false, false); in mlxsw_sp_bridge_port_vlan_add()
1113 u16 vid; in mlxsw_sp_br_ban_rif_pvid_change() local
1121 for (vid = vlan->vid_begin; vid <= vlan->vid_end; ++vid) { in mlxsw_sp_br_ban_rif_pvid_change()
1123 if (vid != pvid) { in mlxsw_sp_br_ban_rif_pvid_change()
1128 if (vid == pvid) { in mlxsw_sp_br_ban_rif_pvid_change()
1148 u16 vid; in mlxsw_sp_port_vlans_add() local
1173 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) { in mlxsw_sp_port_vlans_add()
1177 vid, flag_untagged, in mlxsw_sp_port_vlans_add()
1349 u16 fid_index, vid; in mlxsw_sp_port_fdb_set() local
1358 fdb_info->vid); in mlxsw_sp_port_fdb_set()
1363 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_fdb_set()
1374 vid, adding, false); in mlxsw_sp_port_fdb_set()
1643 mdb->vid); in mlxsw_sp_port_mdb_add()
1784 struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_port_vlan_del() argument
1786 u16 pvid = mlxsw_sp_port->pvid == vid ? 0 : mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_del()
1789 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_port_vlan_del()
1795 mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, false, false); in mlxsw_sp_bridge_port_vlan_del()
1805 u16 vid; in mlxsw_sp_port_vlans_del() local
1817 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) in mlxsw_sp_port_vlans_del()
1818 mlxsw_sp_bridge_port_vlan_del(mlxsw_sp_port, bridge_port, vid); in mlxsw_sp_port_vlans_del()
1864 mdb->vid); in mlxsw_sp_port_mdb_del()
1970 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_bridge_8021q_vxlan_join() argument
1987 if (!vid) { in mlxsw_sp_bridge_8021q_vxlan_join()
1988 err = mlxsw_sp_vxlan_mapped_vid(vxlan_dev, &vid); in mlxsw_sp_bridge_8021q_vxlan_join()
1989 if (err || !vid) in mlxsw_sp_bridge_8021q_vxlan_join()
1996 fid = mlxsw_sp_fid_8021q_lookup(mlxsw_sp, vid); in mlxsw_sp_bridge_8021q_vxlan_join()
2024 mlxsw_sp_bridge_8021q_vxlan_dev_find(struct net_device *br_dev, u16 vid) in mlxsw_sp_bridge_8021q_vxlan_dev_find() argument
2037 if (err || pvid != vid) in mlxsw_sp_bridge_8021q_vxlan_dev_find()
2048 u16 vid, struct netlink_ext_ack *extack) in mlxsw_sp_bridge_8021q_fid_get() argument
2055 fid = mlxsw_sp_fid_8021q_get(mlxsw_sp, vid); in mlxsw_sp_bridge_8021q_fid_get()
2066 vid); in mlxsw_sp_bridge_8021q_fid_get()
2073 err = mlxsw_sp_bridge_8021q_vxlan_join(bridge_device, vxlan_dev, 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
2218 u16 vid, struct netlink_ext_ack *extack) in mlxsw_sp_bridge_8021d_fid_get() argument
2253 u16 vid) in mlxsw_sp_bridge_8021d_fid_lookup() argument
2258 if (vid) in mlxsw_sp_bridge_8021d_fid_lookup()
2329 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_bridge_vxlan_join() argument
2338 return bridge_device->ops->vxlan_join(bridge_device, vxlan_dev, vid, in mlxsw_sp_bridge_vxlan_join()
2359 u16 vid, in mlxsw_sp_bridge_fid_get() argument
2368 return bridge_device->ops->fid_get(bridge_device, vid, extack); in mlxsw_sp_bridge_fid_get()
2438 const char *mac, u16 vid, in mlxsw_sp_fdb_call_notifiers() argument
2444 info.vid = vid; in mlxsw_sp_fdb_call_notifiers()
2460 u16 vid, fid; in mlxsw_sp_fdb_notify_mac_process() local
2487 vid = bridge_device->vlan_enabled ? mlxsw_sp_port_vlan->vid : 0; in mlxsw_sp_fdb_notify_mac_process()
2500 mlxsw_sp_fdb_call_notifiers(type, mac, vid, bridge_port->dev, adding); in mlxsw_sp_fdb_notify_mac_process()
2522 u16 vid, fid; in mlxsw_sp_fdb_notify_mac_lag_process() local
2549 vid = bridge_device->vlan_enabled ? mlxsw_sp_port_vlan->vid : 0; in mlxsw_sp_fdb_notify_mac_lag_process()
2551 mlxsw_sp_port_vlan->vid : 0; in mlxsw_sp_fdb_notify_mac_lag_process()
2564 mlxsw_sp_fdb_call_notifiers(type, mac, vid, bridge_port->dev, adding); in mlxsw_sp_fdb_notify_mac_lag_process()
2636 u16 fid_index, vid; in mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local
2655 &nve_dev, &vid, &vni); in mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
2671 mlxsw_sp_fdb_call_notifiers(type, mac, vid, nve_dev, adding); in mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
2806 fdb_info->vid, dev, true); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
2856 switchdev_work->fdb_info.vid); in mlxsw_sp_switchdev_bridge_nve_fdb_event()
2900 fdb_info->vid, dev, true); in mlxsw_sp_switchdev_bridge_fdb_event_work()
2936 u16 vid; in mlxsw_sp_switchdev_vxlan_fdb_add() local
2971 vid = bridge_device->ops->fid_vid(bridge_device, fid); in mlxsw_sp_switchdev_vxlan_fdb_add()
2972 if (br_fdb_find_port(br_dev, vxlan_fdb_info->eth_addr, vid) != dev) in mlxsw_sp_switchdev_vxlan_fdb_add()
2984 vxlan_fdb_info->eth_addr, vid, dev, true); in mlxsw_sp_switchdev_vxlan_fdb_add()
3008 u16 vid; in mlxsw_sp_switchdev_vxlan_fdb_del() local
3032 vid = bridge_device->ops->fid_vid(bridge_device, fid); in mlxsw_sp_switchdev_vxlan_fdb_del()
3034 vxlan_fdb_info->eth_addr, vid, dev, false); in mlxsw_sp_switchdev_vxlan_fdb_del()
3206 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_switchdev_vxlan_vlan_add() argument
3222 mlxsw_sp_bridge_8021q_vxlan_dev_find(bridge_device->dev, vid)) { in mlxsw_sp_switchdev_vxlan_vlan_add()
3239 vxlan_dev, vid, extack); in mlxsw_sp_switchdev_vxlan_vlan_add()
3248 if (vid == old_vid) { in mlxsw_sp_switchdev_vxlan_vlan_add()
3278 err = mlxsw_sp_bridge_8021q_vxlan_join(bridge_device, vxlan_dev, vid, in mlxsw_sp_switchdev_vxlan_vlan_add()
3294 const struct net_device *vxlan_dev, u16 vid) in mlxsw_sp_switchdev_vxlan_vlan_del() argument
3308 if (mlxsw_sp_fid_8021q_vid(fid) != vid) in mlxsw_sp_switchdev_vxlan_vlan_del()
3331 u16 vid; in mlxsw_sp_switchdev_vxlan_vlans_add() local
3354 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) { in mlxsw_sp_switchdev_vxlan_vlans_add()
3358 vxlan_dev, vid, in mlxsw_sp_switchdev_vxlan_vlans_add()
3378 u16 vid; in mlxsw_sp_switchdev_vxlan_vlans_del() local
3397 for (vid = vlan->vid_begin; vid <= vlan->vid_end; vid++) in mlxsw_sp_switchdev_vxlan_vlans_del()
3399 vxlan_dev, vid); in mlxsw_sp_switchdev_vxlan_vlans_del()