Lines Matching refs:mlxsw_sp_port

84 			 struct mlxsw_sp_port *mlxsw_sp_port,
88 struct mlxsw_sp_port *mlxsw_sp_port);
139 mlxsw_sp_bridge_port_mdb_flush(struct mlxsw_sp_port *mlxsw_sp_port,
149 mlxsw_sp_port_mrouter_update_mdb(struct mlxsw_sp_port *mlxsw_sp_port,
393 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_bridge_port_create() local
400 mlxsw_sp_port = mlxsw_sp_port_dev_lower_find(brport_dev); in mlxsw_sp_bridge_port_create()
401 bridge_port->lagged = mlxsw_sp_port->lagged; in mlxsw_sp_bridge_port_create()
403 bridge_port->lag_id = mlxsw_sp_port->lag_id; in mlxsw_sp_bridge_port_create()
405 bridge_port->system_port = mlxsw_sp_port->local_port; in mlxsw_sp_bridge_port_create()
415 err = switchdev_bridge_port_offload(brport_dev, mlxsw_sp_port->dev, in mlxsw_sp_bridge_port_create()
484 mlxsw_sp_port_vlan_find_by_bridge(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_find_by_bridge() argument
491 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_bridge()
508 mlxsw_sp_port_vlan_find_by_fid(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlan_find_by_fid() argument
513 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_vlan_find_by_fid()
581 mlxsw_sp_port_bridge_vlan_stp_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_stp_set() argument
589 if (mlxsw_sp_port_vlan->mlxsw_sp_port != mlxsw_sp_port) in mlxsw_sp_port_bridge_vlan_stp_set()
591 return mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_stp_set()
598 static int mlxsw_sp_port_attr_stp_state_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_stp_state_set() argument
609 bridge_port = mlxsw_sp_bridge_port_find(mlxsw_sp_port->mlxsw_sp->bridge, in mlxsw_sp_port_attr_stp_state_set()
615 err = mlxsw_sp_port_bridge_vlan_stp_set(mlxsw_sp_port, in mlxsw_sp_port_attr_stp_state_set()
628 mlxsw_sp_port_bridge_vlan_stp_set(mlxsw_sp_port, bridge_vlan, in mlxsw_sp_port_attr_stp_state_set()
634 mlxsw_sp_port_bridge_vlan_flood_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_flood_set() argument
643 if (mlxsw_sp_port_vlan->mlxsw_sp_port != mlxsw_sp_port) in mlxsw_sp_port_bridge_vlan_flood_set()
647 mlxsw_sp_port->local_port, in mlxsw_sp_port_bridge_vlan_flood_set()
655 mlxsw_sp_bridge_port_flood_table_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_flood_table_set() argument
664 err = mlxsw_sp_port_bridge_vlan_flood_set(mlxsw_sp_port, in mlxsw_sp_bridge_port_flood_table_set()
677 mlxsw_sp_port_bridge_vlan_flood_set(mlxsw_sp_port, bridge_vlan, in mlxsw_sp_bridge_port_flood_table_set()
692 u16 local_port = mlxsw_sp_port_vlan->mlxsw_sp_port->local_port; in mlxsw_sp_bridge_vlans_flood_set()
706 u16 local_port = mlxsw_sp_port_vlan->mlxsw_sp_port->local_port; in mlxsw_sp_bridge_vlans_flood_set()
741 mlxsw_sp_port_bridge_vlan_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_vlan_learning_set() argument
750 if (mlxsw_sp_port_vlan->mlxsw_sp_port != mlxsw_sp_port) in mlxsw_sp_port_bridge_vlan_learning_set()
752 return mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, set); in mlxsw_sp_port_bridge_vlan_learning_set()
759 mlxsw_sp_bridge_port_learning_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_learning_set() argument
767 err = mlxsw_sp_port_bridge_vlan_learning_set(mlxsw_sp_port, in mlxsw_sp_bridge_port_learning_set()
778 mlxsw_sp_port_bridge_vlan_learning_set(mlxsw_sp_port, in mlxsw_sp_bridge_port_learning_set()
784 mlxsw_sp_port_attr_br_pre_flags_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_br_pre_flags_set() argument
793 static int mlxsw_sp_port_attr_br_flags_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_br_flags_set() argument
800 bridge_port = mlxsw_sp_bridge_port_find(mlxsw_sp_port->mlxsw_sp->bridge, in mlxsw_sp_port_attr_br_flags_set()
806 err = mlxsw_sp_bridge_port_flood_table_set(mlxsw_sp_port, in mlxsw_sp_port_attr_br_flags_set()
815 err = mlxsw_sp_bridge_port_learning_set(mlxsw_sp_port, in mlxsw_sp_port_attr_br_flags_set()
826 err = mlxsw_sp_bridge_port_flood_table_set(mlxsw_sp_port, in mlxsw_sp_port_attr_br_flags_set()
852 static int mlxsw_sp_port_attr_br_ageing_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_br_ageing_set() argument
855 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_br_ageing_set()
866 static int mlxsw_sp_port_attr_br_vlan_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_br_vlan_set() argument
870 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_br_vlan_set()
884 static int mlxsw_sp_port_attr_br_vlan_proto_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_br_vlan_proto_set() argument
888 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_br_vlan_proto_set()
899 static int mlxsw_sp_port_attr_mrouter_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_mrouter_set() argument
906 bridge_port = mlxsw_sp_bridge_port_find(mlxsw_sp_port->mlxsw_sp->bridge, in mlxsw_sp_port_attr_mrouter_set()
911 mlxsw_sp_port_mrouter_update_mdb(mlxsw_sp_port, bridge_port, in mlxsw_sp_port_attr_mrouter_set()
917 err = mlxsw_sp_bridge_port_flood_table_set(mlxsw_sp_port, bridge_port, in mlxsw_sp_port_attr_mrouter_set()
937 static int mlxsw_sp_port_mc_disabled_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_mc_disabled_set() argument
942 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_mc_disabled_set()
1153 mlxsw_sp_port_attr_br_mrouter_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_attr_br_mrouter_set() argument
1157 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_attr_br_mrouter_set()
1178 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_attr_set() local
1183 err = mlxsw_sp_port_attr_stp_state_set(mlxsw_sp_port, in mlxsw_sp_port_attr_set()
1188 err = mlxsw_sp_port_attr_br_pre_flags_set(mlxsw_sp_port, in mlxsw_sp_port_attr_set()
1192 err = mlxsw_sp_port_attr_br_flags_set(mlxsw_sp_port, in mlxsw_sp_port_attr_set()
1197 err = mlxsw_sp_port_attr_br_ageing_set(mlxsw_sp_port, in mlxsw_sp_port_attr_set()
1201 err = mlxsw_sp_port_attr_br_vlan_set(mlxsw_sp_port, in mlxsw_sp_port_attr_set()
1206 err = mlxsw_sp_port_attr_br_vlan_proto_set(mlxsw_sp_port, in mlxsw_sp_port_attr_set()
1211 err = mlxsw_sp_port_attr_mrouter_set(mlxsw_sp_port, in mlxsw_sp_port_attr_set()
1216 err = mlxsw_sp_port_mc_disabled_set(mlxsw_sp_port, in mlxsw_sp_port_attr_set()
1221 err = mlxsw_sp_port_attr_br_mrouter_set(mlxsw_sp_port, in mlxsw_sp_port_attr_set()
1230 mlxsw_sp_span_respin(mlxsw_sp_port->mlxsw_sp); in mlxsw_sp_port_attr_set()
1240 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_port_vlan_fid_join() local
1242 u16 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_port_vlan_fid_join()
1267 err = mlxsw_sp_fid_port_vid_map(fid, mlxsw_sp_port, vid); in mlxsw_sp_port_vlan_fid_join()
1289 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_port_vlan_fid_leave() local
1291 u16 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_port_vlan_fid_leave()
1295 mlxsw_sp_fid_port_vid_unmap(fid, mlxsw_sp_port, vid); in mlxsw_sp_port_vlan_fid_leave()
1303 mlxsw_sp_port_pvid_determine(const struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_pvid_determine() argument
1308 else if (mlxsw_sp_port->pvid == vid) in mlxsw_sp_port_pvid_determine()
1311 return mlxsw_sp_port->pvid; in mlxsw_sp_port_pvid_determine()
1319 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_port_vlan_bridge_join() local
1333 err = mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, in mlxsw_sp_port_vlan_bridge_join()
1338 err = mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, in mlxsw_sp_port_vlan_bridge_join()
1352 mlxsw_sp_bridge_port_get(mlxsw_sp_port->mlxsw_sp->bridge, in mlxsw_sp_port_vlan_bridge_join()
1359 mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, BR_STATE_DISABLED); in mlxsw_sp_port_vlan_bridge_join()
1361 mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, false); in mlxsw_sp_port_vlan_bridge_join()
1370 struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port; in mlxsw_sp_port_vlan_bridge_leave() local
1387 mlxsw_sp_port_vid_stp_set(mlxsw_sp_port, vid, BR_STATE_DISABLED); in mlxsw_sp_port_vlan_bridge_leave()
1388 mlxsw_sp_port_vid_learning_set(mlxsw_sp_port, vid, false); in mlxsw_sp_port_vlan_bridge_leave()
1390 mlxsw_sp_bridge_port_fdb_flush(mlxsw_sp_port->mlxsw_sp, in mlxsw_sp_port_vlan_bridge_leave()
1394 mlxsw_sp_bridge_port_mdb_flush(mlxsw_sp_port, bridge_port, in mlxsw_sp_port_vlan_bridge_leave()
1399 mlxsw_sp_bridge_port_put(mlxsw_sp_port->mlxsw_sp->bridge, bridge_port); in mlxsw_sp_port_vlan_bridge_leave()
1404 mlxsw_sp_bridge_port_vlan_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_vlan_add() argument
1409 u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); in mlxsw_sp_bridge_port_vlan_add()
1411 u16 old_pvid = mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_add()
1419 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_port_vlan_add()
1425 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_create(mlxsw_sp_port, in mlxsw_sp_bridge_port_vlan_add()
1431 err = mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, true, in mlxsw_sp_bridge_port_vlan_add()
1437 err = mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid, proto); in mlxsw_sp_bridge_port_vlan_add()
1449 mlxsw_sp_port_pvid_set(mlxsw_sp_port, old_pvid, proto); in mlxsw_sp_bridge_port_vlan_add()
1451 mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, false, false); in mlxsw_sp_bridge_port_vlan_add()
1483 static int mlxsw_sp_port_vlans_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlans_add() argument
1489 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_vlans_add()
1511 return mlxsw_sp_bridge_port_vlan_add(mlxsw_sp_port, bridge_port, in mlxsw_sp_port_vlans_add()
1760 mlxsw_sp_port_fdb_set(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_fdb_set() argument
1763 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_fdb_set()
1775 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_bridge(mlxsw_sp_port, in mlxsw_sp_port_fdb_set()
1830 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_bridge_port_get_ports_bitmap() local
1841 mlxsw_sp_port = mlxsw_sp_port_lagged_get(mlxsw_sp, in mlxsw_sp_bridge_port_get_ports_bitmap()
1843 if (mlxsw_sp_port) in mlxsw_sp_bridge_port_get_ports_bitmap()
1844 set_bit(mlxsw_sp_port->local_port, in mlxsw_sp_bridge_port_get_ports_bitmap()
2083 static int mlxsw_sp_port_mdb_add(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_mdb_add() argument
2086 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_mdb_add()
2099 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_bridge(mlxsw_sp_port, in mlxsw_sp_port_mdb_add()
2109 mlxsw_sp_port->local_port); in mlxsw_sp_port_mdb_add()
2139 mlxsw_sp_port_mrouter_update_mdb(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_mrouter_update_mdb() argument
2143 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_mrouter_update_mdb()
2145 u16 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_port_mrouter_update_mdb()
2164 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_obj_add() local
2172 err = mlxsw_sp_port_vlans_add(mlxsw_sp_port, vlan, extack); in mlxsw_sp_port_obj_add()
2179 mlxsw_sp_span_respin(mlxsw_sp_port->mlxsw_sp); in mlxsw_sp_port_obj_add()
2182 err = mlxsw_sp_port_mdb_add(mlxsw_sp_port, in mlxsw_sp_port_obj_add()
2194 mlxsw_sp_bridge_port_vlan_del(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_vlan_del() argument
2197 u16 pvid = mlxsw_sp_port->pvid == vid ? 0 : mlxsw_sp_port->pvid; in mlxsw_sp_bridge_port_vlan_del()
2201 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_port_vlan_del()
2207 mlxsw_sp_port_pvid_set(mlxsw_sp_port, pvid, proto); in mlxsw_sp_bridge_port_vlan_del()
2208 mlxsw_sp_port_vlan_set(mlxsw_sp_port, vid, vid, false, false); in mlxsw_sp_bridge_port_vlan_del()
2212 static int mlxsw_sp_port_vlans_del(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_vlans_del() argument
2215 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_vlans_del()
2229 mlxsw_sp_bridge_port_vlan_del(mlxsw_sp_port, bridge_port, vlan->vid); in mlxsw_sp_port_vlans_del()
2234 static int mlxsw_sp_port_mdb_del(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_mdb_del() argument
2237 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_mdb_del()
2241 struct net_device *dev = mlxsw_sp_port->dev; in mlxsw_sp_port_mdb_del()
2252 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_bridge(mlxsw_sp_port, in mlxsw_sp_port_mdb_del()
2270 mlxsw_sp_port->local_port, false); in mlxsw_sp_port_mdb_del()
2275 mlxsw_sp_bridge_port_mdb_flush(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_port_mdb_flush() argument
2279 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_bridge_port_mdb_flush()
2282 u16 local_port = mlxsw_sp_port->local_port; in mlxsw_sp_bridge_port_mdb_flush()
2304 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(dev); in mlxsw_sp_port_obj_del() local
2309 err = mlxsw_sp_port_vlans_del(mlxsw_sp_port, in mlxsw_sp_port_obj_del()
2313 err = mlxsw_sp_port_mdb_del(mlxsw_sp_port, in mlxsw_sp_port_obj_del()
2321 mlxsw_sp_span_respin(mlxsw_sp_port->mlxsw_sp); in mlxsw_sp_port_obj_del()
2326 static struct mlxsw_sp_port *mlxsw_sp_lag_rep_port(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_lag_rep_port()
2329 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_lag_rep_port() local
2336 mlxsw_sp_port = mlxsw_sp_port_lagged_get(mlxsw_sp, lag_id, i); in mlxsw_sp_lag_rep_port()
2337 if (mlxsw_sp_port) in mlxsw_sp_lag_rep_port()
2338 return mlxsw_sp_port; in mlxsw_sp_lag_rep_port()
2345 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_vlan_aware_port_join() argument
2354 if (mlxsw_sp_port->default_vlan->fid) in mlxsw_sp_bridge_vlan_aware_port_join()
2355 mlxsw_sp_port_vlan_router_leave(mlxsw_sp_port->default_vlan); in mlxsw_sp_bridge_vlan_aware_port_join()
2363 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_8021q_port_join() argument
2366 return mlxsw_sp_bridge_vlan_aware_port_join(bridge_port, mlxsw_sp_port, in mlxsw_sp_bridge_8021q_port_join()
2371 mlxsw_sp_bridge_vlan_aware_port_leave(struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_bridge_vlan_aware_port_leave() argument
2374 mlxsw_sp_port_pvid_set(mlxsw_sp_port, MLXSW_SP_DEFAULT_VID, in mlxsw_sp_bridge_vlan_aware_port_leave()
2381 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_bridge_8021q_port_leave() argument
2383 mlxsw_sp_bridge_vlan_aware_port_leave(mlxsw_sp_port); in mlxsw_sp_bridge_8021q_port_leave()
2504 mlxsw_sp_port_is_br_member(const struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_is_br_member() argument
2509 list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list, in mlxsw_sp_port_is_br_member()
2523 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_8021d_port_join() argument
2531 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_8021d_port_join()
2535 if (mlxsw_sp_port_is_br_member(mlxsw_sp_port, bridge_device->dev)) { in mlxsw_sp_bridge_8021d_port_join()
2551 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_bridge_8021d_port_leave() argument
2558 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid); in mlxsw_sp_bridge_8021d_port_leave()
2646 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_bridge_8021ad_port_join() argument
2651 err = mlxsw_sp_port_vlan_classification_set(mlxsw_sp_port, true, false); in mlxsw_sp_bridge_8021ad_port_join()
2655 err = mlxsw_sp_bridge_vlan_aware_port_join(bridge_port, mlxsw_sp_port, in mlxsw_sp_bridge_8021ad_port_join()
2663 mlxsw_sp_port_vlan_classification_set(mlxsw_sp_port, false, true); in mlxsw_sp_bridge_8021ad_port_join()
2670 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp_bridge_8021ad_port_leave() argument
2672 mlxsw_sp_bridge_vlan_aware_port_leave(mlxsw_sp_port); in mlxsw_sp_bridge_8021ad_port_leave()
2673 mlxsw_sp_port_vlan_classification_set(mlxsw_sp_port, false, true); in mlxsw_sp_bridge_8021ad_port_leave()
2697 struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp2_bridge_8021ad_port_join() argument
2706 err = mlxsw_sp_port_egress_ethtype_set(mlxsw_sp_port, ETH_P_8021AD); in mlxsw_sp2_bridge_8021ad_port_join()
2711 mlxsw_sp_port, extack); in mlxsw_sp2_bridge_8021ad_port_join()
2718 mlxsw_sp_port_egress_ethtype_set(mlxsw_sp_port, ETH_P_8021Q); in mlxsw_sp2_bridge_8021ad_port_join()
2725 struct mlxsw_sp_port *mlxsw_sp_port) in mlxsw_sp2_bridge_8021ad_port_leave() argument
2728 mlxsw_sp_port); in mlxsw_sp2_bridge_8021ad_port_leave()
2729 mlxsw_sp_port_egress_ethtype_set(mlxsw_sp_port, ETH_P_8021Q); in mlxsw_sp2_bridge_8021ad_port_leave()
2741 int mlxsw_sp_port_bridge_join(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_join() argument
2746 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_bridge_join()
2758 mlxsw_sp_port, extack); in mlxsw_sp_port_bridge_join()
2769 void mlxsw_sp_port_bridge_leave(struct mlxsw_sp_port *mlxsw_sp_port, in mlxsw_sp_port_bridge_leave() argument
2773 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_port_bridge_leave()
2785 mlxsw_sp_port); in mlxsw_sp_port_bridge_leave()
2908 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_fdb_notify_mac_process() local
2919 mlxsw_sp_port = mlxsw_sp->ports[local_port]; in mlxsw_sp_fdb_notify_mac_process()
2920 if (!mlxsw_sp_port) { in mlxsw_sp_fdb_notify_mac_process()
2928 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_fid(mlxsw_sp_port, fid); in mlxsw_sp_fdb_notify_mac_process()
2930 …netdev_err(mlxsw_sp_port->dev, "Failed to find a matching {Port, VID} following FDB notification\n… in mlxsw_sp_fdb_notify_mac_process()
2936 netdev_err(mlxsw_sp_port->dev, "{Port, VID} not associated with a bridge\n"); in mlxsw_sp_fdb_notify_mac_process()
2972 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_fdb_notify_mac_lag_process() local
2982 mlxsw_sp_port = mlxsw_sp_lag_rep_port(mlxsw_sp, lag_id); in mlxsw_sp_fdb_notify_mac_lag_process()
2983 if (!mlxsw_sp_port) { in mlxsw_sp_fdb_notify_mac_lag_process()
2991 mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_fid(mlxsw_sp_port, fid); in mlxsw_sp_fdb_notify_mac_lag_process()
2993 …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()
2999 netdev_err(mlxsw_sp_port->dev, "{Port, VID} not associated with a bridge\n"); in mlxsw_sp_fdb_notify_mac_lag_process()
3339 struct mlxsw_sp_port *mlxsw_sp_port; in mlxsw_sp_switchdev_bridge_fdb_event_work() local
3348 mlxsw_sp_port = mlxsw_sp_port_dev_lower_find(dev); in mlxsw_sp_switchdev_bridge_fdb_event_work()
3349 if (!mlxsw_sp_port) in mlxsw_sp_switchdev_bridge_fdb_event_work()
3357 err = mlxsw_sp_port_fdb_set(mlxsw_sp_port, fdb_info, true); in mlxsw_sp_switchdev_bridge_fdb_event_work()
3366 mlxsw_sp_port_fdb_set(mlxsw_sp_port, fdb_info, false); in mlxsw_sp_switchdev_bridge_fdb_event_work()
3376 mlxsw_sp_span_respin(mlxsw_sp_port->mlxsw_sp); in mlxsw_sp_switchdev_bridge_fdb_event_work()