Lines Matching refs:vid
78 u16 vid; member
90 const struct net_device *vxlan_dev, u16 vid,
94 u16 vid, struct netlink_ext_ack *extack);
97 u16 vid);
428 u16 vid = SWITCHDEV_OBJ_PORT_VLAN(port_obj_info->obj)->vid; in mlxsw_sp_bridge_port_replay_switchdev_objs() local
430 err = mlxsw_sp_port_kill_vid(rso->mlxsw_sp_port->dev, 0, vid); in mlxsw_sp_bridge_port_replay_switchdev_objs()
572 u16 vid) in mlxsw_sp_port_vlan_find_by_bridge() argument
584 mlxsw_sp_port_vlan->vid != vid) in mlxsw_sp_port_vlan_find_by_bridge()
611 u16 vid) in mlxsw_sp_bridge_vlan_find() argument
616 if (bridge_vlan->vid == vid) in mlxsw_sp_bridge_vlan_find()
624 mlxsw_sp_bridge_vlan_create(struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_vlan_create() argument
633 bridge_vlan->vid = vid; in mlxsw_sp_bridge_vlan_create()
648 mlxsw_sp_bridge_vlan_get(struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_vlan_get() argument
652 bridge_vlan = mlxsw_sp_bridge_vlan_find(bridge_port, vid); in mlxsw_sp_bridge_vlan_get()
656 return mlxsw_sp_bridge_vlan_create(bridge_port, vid); in mlxsw_sp_bridge_vlan_get()
677 bridge_vlan->vid, state); in mlxsw_sp_port_bridge_vlan_stp_set()
831 u16 vid = bridge_vlan->vid; in mlxsw_sp_port_bridge_vlan_learning_set() local
837 return mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, set); in mlxsw_sp_port_bridge_vlan_learning_set()
1352 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_fid_join() local
1357 fid = bridge_device->ops->fid_get(bridge_device, vid, extack); in mlxsw_sp_port_vlan_fid_join()
1376 err = mlxsw_sp_fid_port_vid_map(fid, mlxsw_sp_port, vid); in mlxsw_sp_port_vlan_fid_join()
1401 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_fid_leave() local
1404 mlxsw_sp_fid_port_vid_unmap(fid, mlxsw_sp_port, vid); in mlxsw_sp_port_vlan_fid_leave()
1413 u16 vid, bool is_pvid) in mlxsw_sp_port_pvid_determine() argument
1416 return vid; in mlxsw_sp_port_pvid_determine()
1417 else if (mlxsw_sp_port->pvid == vid) in mlxsw_sp_port_pvid_determine()
1430 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_bridge_join() local
1442 err = mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, in mlxsw_sp_port_vlan_bridge_join()
1447 err = mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, in mlxsw_sp_port_vlan_bridge_join()
1452 bridge_vlan = mlxsw_sp_bridge_vlan_get(bridge_port, vid); in mlxsw_sp_port_vlan_bridge_join()
1468 mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, BR_STATE_DISABLED); in mlxsw_sp_port_vlan_bridge_join()
1470 mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, false); in mlxsw_sp_port_vlan_bridge_join()
1483 u16 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_vlan_bridge_leave() local
1491 bridge_vlan = mlxsw_sp_bridge_vlan_find(bridge_port, vid); in mlxsw_sp_port_vlan_bridge_leave()
1496 mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, BR_STATE_DISABLED); in mlxsw_sp_port_vlan_bridge_leave()
1497 mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, false); in mlxsw_sp_port_vlan_bridge_leave()
1515 u16 vid, bool is_untagged, bool is_pvid, in mlxsw_sp_bridge_port_vlan_add() argument
1518 u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); in mlxsw_sp_bridge_port_vlan_add()
1528 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_port_vlan_add()
1535 vid); in mlxsw_sp_bridge_port_vlan_add()
1540 err = mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, true, in mlxsw_sp_bridge_port_vlan_add()
1560 mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, false, false); in mlxsw_sp_bridge_port_vlan_add()
1574 return mlxsw_sp_router_bridge_vlan_add(mlxsw_sp, br_dev, vlan->vid, in mlxsw_sp_br_rif_pvid_change()
1607 vlan->vid, flag_untagged, in mlxsw_sp_port_vlans_add()
1779 const char *mac, u16 fid, u16 vid, in __mlxsw_sp_port_fdb_uc_op() argument
1793 mlxsw_reg_sfd_uc_pack(sfd_pl, 0, policy, mac, fid, vid, action, in __mlxsw_sp_port_fdb_uc_op()
1809 const char *mac, u16 fid, u16 vid, in mlxsw_sp_port_fdb_uc_op() argument
1812 return __mlxsw_sp_port_fdb_uc_op(mlxsw_sp, local_port, mac, fid, vid, in mlxsw_sp_port_fdb_uc_op()
1863 u16 fid_index, vid; in mlxsw_sp_port_fdb_set() local
1872 fdb_info->vid); in mlxsw_sp_port_fdb_set()
1877 vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_port_fdb_set()
1882 fdb_info->addr, fid_index, vid, in mlxsw_sp_port_fdb_set()
1888 vid, adding, false); in mlxsw_sp_port_fdb_set()
2196 mdb->vid); in mlxsw_sp_port_mdb_add()
2290 struct mlxsw_sp_bridge_port *bridge_port, u16 vid) in mlxsw_sp_bridge_port_vlan_del() argument
2292 u16 pvid = mlxsw_sp_port->pvid == vid ? 0 : mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_del()
2296 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_port_vlan_del()
2303 mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, false, false); in mlxsw_sp_bridge_port_vlan_del()
2324 mlxsw_sp_bridge_port_vlan_del(mlxsw_sp_port, bridge_port, vlan->vid); in mlxsw_sp_port_vlans_del()
2349 mdb->vid); in mlxsw_sp_port_mdb_del()
2511 u16 vid, u16 ethertype, in mlxsw_sp_bridge_vlan_aware_vxlan_join() argument
2529 if (!vid) { in mlxsw_sp_bridge_vlan_aware_vxlan_join()
2530 err = mlxsw_sp_vxlan_mapped_vid(vxlan_dev, &vid); in mlxsw_sp_bridge_vlan_aware_vxlan_join()
2531 if (err || !vid) in mlxsw_sp_bridge_vlan_aware_vxlan_join()
2535 fid = mlxsw_sp_fid_8021q_get(mlxsw_sp, vid); in mlxsw_sp_bridge_vlan_aware_vxlan_join()
2561 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_bridge_8021q_vxlan_join() argument
2565 vid, ETH_P_8021Q, extack); in mlxsw_sp_bridge_8021q_vxlan_join()
2569 mlxsw_sp_bridge_8021q_vxlan_dev_find(struct net_device *br_dev, u16 vid) in mlxsw_sp_bridge_8021q_vxlan_dev_find() argument
2582 if (err || pvid != vid) in mlxsw_sp_bridge_8021q_vxlan_dev_find()
2593 u16 vid, struct netlink_ext_ack *extack) in mlxsw_sp_bridge_8021q_fid_get() argument
2597 return mlxsw_sp_fid_8021q_get(mlxsw_sp, vid); in mlxsw_sp_bridge_8021q_fid_get()
2602 u16 vid) in mlxsw_sp_bridge_8021q_fid_lookup() argument
2606 return mlxsw_sp_fid_8021q_lookup(mlxsw_sp, vid); in mlxsw_sp_bridge_8021q_fid_lookup()
2650 u16 vid; in mlxsw_sp_bridge_8021d_port_join() local
2653 vid = is_vlan_dev(dev) ? vlan_dev_vlan_id(dev) : MLXSW_SP_DEFAULT_VID; in mlxsw_sp_bridge_8021d_port_join()
2654 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_8021d_port_join()
2690 u16 vid; in mlxsw_sp_bridge_8021d_port_leave() local
2692 vid = is_vlan_dev(dev) ? vlan_dev_vlan_id(dev) : MLXSW_SP_DEFAULT_VID; in mlxsw_sp_bridge_8021d_port_leave()
2693 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_8021d_port_leave()
2702 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_bridge_8021d_vxlan_join() argument
2742 u16 vid, struct netlink_ext_ack *extack) in mlxsw_sp_bridge_8021d_fid_get() argument
2751 u16 vid) in mlxsw_sp_bridge_8021d_fid_lookup() argument
2756 if (vid) in mlxsw_sp_bridge_8021d_fid_lookup()
2813 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_bridge_8021ad_vxlan_join() argument
2817 vid, ETH_P_8021AD, extack); in mlxsw_sp_bridge_8021ad_vxlan_join()
2934 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_bridge_vxlan_join() argument
2943 return bridge_device->ops->vxlan_join(bridge_device, vxlan_dev, vid, in mlxsw_sp_bridge_vxlan_join()
3033 const char *mac, u16 vid, in mlxsw_sp_fdb_call_notifiers() argument
3039 info.vid = vid; in mlxsw_sp_fdb_call_notifiers()
3053 u16 local_port, vid, fid, evid = 0; in mlxsw_sp_fdb_notify_mac_process() local
3082 vid = bridge_device->vlan_enabled ? mlxsw_sp_port_vlan->vid : 0; in mlxsw_sp_fdb_notify_mac_process()
3083 evid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_fdb_notify_mac_process()
3087 vid, bridge_port->dev, false, true); in mlxsw_sp_fdb_notify_mac_process()
3102 mlxsw_sp_fdb_call_notifiers(type, mac, vid, bridge_port->dev, adding, in mlxsw_sp_fdb_notify_mac_process()
3125 u16 vid, fid; in mlxsw_sp_fdb_notify_mac_lag_process() local
3149 vid = bridge_device->vlan_enabled ? mlxsw_sp_port_vlan->vid : 0; in mlxsw_sp_fdb_notify_mac_lag_process()
3150 lag_vid = mlxsw_sp_port_vlan->vid; in mlxsw_sp_fdb_notify_mac_lag_process()
3154 vid, bridge_port->dev, false, true); in mlxsw_sp_fdb_notify_mac_lag_process()
3169 mlxsw_sp_fdb_call_notifiers(type, mac, vid, bridge_port->dev, adding, in mlxsw_sp_fdb_notify_mac_lag_process()
3242 u16 fid_index, vid; in mlxsw_sp_fdb_notify_mac_uc_tunnel_process() local
3261 &nve_dev, &vid, &vni); in mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
3277 mlxsw_sp_fdb_call_notifiers(type, mac, vid, nve_dev, adding, false); in mlxsw_sp_fdb_notify_mac_uc_tunnel_process()
3420 fdb_info->vid, dev, true, false); in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3471 switchdev_work->fdb_info.vid); in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3515 fdb_info->vid, dev, true, false); in mlxsw_sp_switchdev_bridge_fdb_event_work()
3550 u16 vid; in mlxsw_sp_switchdev_vxlan_fdb_add() local
3585 vid = bridge_device->ops->fid_vid(bridge_device, fid); in mlxsw_sp_switchdev_vxlan_fdb_add()
3586 if (br_fdb_find_port(br_dev, vxlan_fdb_info->eth_addr, vid) != dev) in mlxsw_sp_switchdev_vxlan_fdb_add()
3598 vxlan_fdb_info->eth_addr, vid, dev, true, in mlxsw_sp_switchdev_vxlan_fdb_add()
3622 u16 vid; in mlxsw_sp_switchdev_vxlan_fdb_del() local
3648 vid = bridge_device->ops->fid_vid(bridge_device, fid); in mlxsw_sp_switchdev_vxlan_fdb_del()
3650 vxlan_fdb_info->eth_addr, vid, dev, false, in mlxsw_sp_switchdev_vxlan_fdb_del()
3823 const struct net_device *vxlan_dev, u16 vid, in mlxsw_sp_switchdev_vxlan_vlan_add() argument
3839 mlxsw_sp_bridge_8021q_vxlan_dev_find(bridge_device->dev, vid)) { in mlxsw_sp_switchdev_vxlan_vlan_add()
3856 vid, extack); in mlxsw_sp_switchdev_vxlan_vlan_add()
3865 if (vid == old_vid) { in mlxsw_sp_switchdev_vxlan_vlan_add()
3895 err = bridge_device->ops->vxlan_join(bridge_device, vxlan_dev, vid, extack); in mlxsw_sp_switchdev_vxlan_vlan_add()
3909 const struct net_device *vxlan_dev, u16 vid) in mlxsw_sp_switchdev_vxlan_vlan_del() argument
3923 if (mlxsw_sp_fid_8021q_vid(fid) != vid) in mlxsw_sp_switchdev_vxlan_vlan_del()
3965 vxlan_dev, vlan->vid, in mlxsw_sp_switchdev_vxlan_vlans_add()
3999 vlan->vid); in mlxsw_sp_switchdev_vxlan_vlans_del()