Symbol: mlxsw_sp_port_vlan
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
1021
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
1029
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
1030
if (!mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
1032
mlxsw_sp_port_vlan_destroy(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
1461
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
1660
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_create(mlxsw_sp_port,
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
1662
if (IS_ERR(mlxsw_sp_port_vlan)) {
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
1665
err = PTR_ERR(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
1668
mlxsw_sp_port->default_vlan = mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
1707
mlxsw_sp_port_vlan_destroy(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
940
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan, *tmp;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
942
list_for_each_entry_safe(mlxsw_sp_port_vlan, tmp,
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
945
mlxsw_sp_port_vlan->vid == MLXSW_SP_DEFAULT_VID)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
947
mlxsw_sp_port_vlan_destroy(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
952
mlxsw_sp_port_vlan_cleanup(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
954
if (mlxsw_sp_port_vlan->bridge_port)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
955
mlxsw_sp_port_vlan_bridge_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
956
else if (mlxsw_sp_port_vlan->fid)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
957
mlxsw_sp_port_vlan_router_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
960
struct mlxsw_sp_port_vlan *
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
963
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
967
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
968
if (mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
975
mlxsw_sp_port_vlan = kzalloc_obj(*mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
976
if (!mlxsw_sp_port_vlan) {
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
981
mlxsw_sp_port_vlan->mlxsw_sp_port = mlxsw_sp_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
982
mlxsw_sp_port_vlan->vid = vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
983
list_add(&mlxsw_sp_port_vlan->list, &mlxsw_sp_port->vlans_list);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
985
return mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
992
void mlxsw_sp_port_vlan_destroy(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
994
struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
995
u16 vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
997
mlxsw_sp_port_vlan_cleanup(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
998
list_del(&mlxsw_sp_port_vlan->list);
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
999
kfree(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
348
struct mlxsw_sp_port_vlan *default_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
485
static inline struct mlxsw_sp_port_vlan *
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
489
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
491
list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list,
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
493
if (mlxsw_sp_port_vlan->vid == vid)
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
494
return mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
653
mlxsw_sp_port_vlan_bridge_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
698
struct mlxsw_sp_port_vlan *
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
700
void mlxsw_sp_port_vlan_destroy(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
755
mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
1002
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
1006
list_for_each_entry_reverse(mlxsw_sp_port_vlan,
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
1008
struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
1009
u16 vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
960
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
963
list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list,
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
965
struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
966
u16 vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
986
list_for_each_entry_continue_reverse(mlxsw_sp_port_vlan,
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
988
struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
989
u16 vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
10121
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
10123
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port,
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
10125
if (WARN_ON(!mlxsw_sp_port_vlan))
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
10128
return mlxsw_sp_port_vlan_router_join_existing(mlxsw_sp_port_vlan,
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
10136
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
10138
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port,
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
10140
if (WARN_ON(!mlxsw_sp_port_vlan))
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
10143
__mlxsw_sp_port_vlan_router_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
8848
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
8850
struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
8852
params->vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9108
__mlxsw_sp_port_vlan_router_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan,
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9112
struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9115
u16 vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9125
mlxsw_sp_rif_subport_params_init(&params, mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9145
mlxsw_sp_port_vlan->fid = fid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9160
__mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9162
struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9163
struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9165
u16 vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9170
mlxsw_sp_port_vlan->fid = NULL;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9179
mlxsw_sp_port_vlan_router_join_existing(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan,
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9183
struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port_vlan->mlxsw_sp_port->mlxsw_sp;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9190
return __mlxsw_sp_port_vlan_router_join(mlxsw_sp_port_vlan, l3_dev,
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9195
mlxsw_sp_port_vlan_router_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9197
struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port_vlan->mlxsw_sp_port->mlxsw_sp;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9200
__mlxsw_sp_port_vlan_router_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9210
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9212
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9213
if (WARN_ON(!mlxsw_sp_port_vlan))
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9218
return __mlxsw_sp_port_vlan_router_join(mlxsw_sp_port_vlan,
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
9221
__mlxsw_sp_port_vlan_router_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1345
mlxsw_sp_port_vlan_fid_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1349
struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1352
u16 vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1380
mlxsw_sp_port_vlan->fid = fid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1396
mlxsw_sp_port_vlan_fid_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1398
struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1399
struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1401
u16 vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1403
mlxsw_sp_port_vlan->fid = NULL;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1424
mlxsw_sp_port_vlan_bridge_join(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1428
struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1430
u16 vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1434
if (mlxsw_sp_port_vlan->bridge_port)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1437
err = mlxsw_sp_port_vlan_fid_join(mlxsw_sp_port_vlan, bridge_port,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1458
list_add(&mlxsw_sp_port_vlan->bridge_vlan_node,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1463
mlxsw_sp_port_vlan->bridge_port = bridge_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1472
mlxsw_sp_port_vlan_fid_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1477
mlxsw_sp_port_vlan_bridge_leave(struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1479
struct mlxsw_sp_port *mlxsw_sp_port = mlxsw_sp_port_vlan->mlxsw_sp_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1480
struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1483
u16 vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1490
bridge_port = mlxsw_sp_port_vlan->bridge_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1494
list_del(&mlxsw_sp_port_vlan->bridge_vlan_node);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1506
mlxsw_sp_port_vlan_fid_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1509
mlxsw_sp_port_vlan->bridge_port = NULL;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1519
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1528
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1529
if (mlxsw_sp_port_vlan &&
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1530
mlxsw_sp_port_vlan->bridge_port != bridge_port)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1533
if (!mlxsw_sp_port_vlan) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1534
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_create(mlxsw_sp_port,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1536
if (IS_ERR(mlxsw_sp_port_vlan))
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1537
return PTR_ERR(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1550
err = mlxsw_sp_port_vlan_bridge_join(mlxsw_sp_port_vlan, bridge_port,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1562
mlxsw_sp_port_vlan_destroy(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1860
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1870
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_bridge(mlxsw_sp_port,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1873
if (!mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1876
fid_index = mlxsw_sp_fid_index(mlxsw_sp_port_vlan->fid);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
1877
vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2183
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2194
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_bridge(mlxsw_sp_port,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2197
if (!mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2200
fid_index = mlxsw_sp_fid_index(mlxsw_sp_port_vlan->fid);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2293
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2296
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2297
if (WARN_ON(!mlxsw_sp_port_vlan))
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2300
mlxsw_sp_port_vlan_bridge_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2304
mlxsw_sp_port_vlan_destroy(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2334
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2347
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_bridge(mlxsw_sp_port,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2350
if (!mlxsw_sp_port_vlan)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2353
fid_index = mlxsw_sp_fid_index(mlxsw_sp_port_vlan->fid);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2629
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2631
list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2633
if (mlxsw_sp_port_vlan->bridge_port &&
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2634
mlxsw_sp_port_vlan->bridge_port->bridge_device->dev ==
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2648
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2654
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2655
if (WARN_ON(!mlxsw_sp_port_vlan))
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2664
if (mlxsw_sp_port_vlan->fid)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2665
mlxsw_sp_port_vlan_router_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2667
err = mlxsw_sp_port_vlan_bridge_join(mlxsw_sp_port_vlan, bridge_port,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2679
mlxsw_sp_port_vlan_bridge_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2688
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2693
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_vid(mlxsw_sp_port, vid);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2694
if (!mlxsw_sp_port_vlan || !mlxsw_sp_port_vlan->bridge_port)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
2697
mlxsw_sp_port_vlan_bridge_leave(mlxsw_sp_port_vlan);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3075
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3095
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_fid(mlxsw_sp_port, fid);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3096
if (!mlxsw_sp_port_vlan) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3101
bridge_port = mlxsw_sp_port_vlan->bridge_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3108
vid = bridge_device->vlan_enabled ? mlxsw_sp_port_vlan->vid : 0;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3109
evid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3143
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3162
mlxsw_sp_port_vlan = mlxsw_sp_port_vlan_find_by_fid(mlxsw_sp_port, fid);
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3163
if (!mlxsw_sp_port_vlan) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3168
bridge_port = mlxsw_sp_port_vlan->bridge_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3175
vid = bridge_device->vlan_enabled ? mlxsw_sp_port_vlan->vid : 0;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
3176
lag_vid = mlxsw_sp_port_vlan->vid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
568
static struct mlxsw_sp_port_vlan *
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
574
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
576
list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
578
if (!mlxsw_sp_port_vlan->bridge_port)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
580
if (mlxsw_sp_port_vlan->bridge_port->bridge_device !=
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
584
mlxsw_sp_port_vlan->vid != vid)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
586
return mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
592
static struct mlxsw_sp_port_vlan*
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
596
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
598
list_for_each_entry(mlxsw_sp_port_vlan, &mlxsw_sp_port->vlans_list,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
600
struct mlxsw_sp_fid *fid = mlxsw_sp_port_vlan->fid;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
603
return mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
670
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
672
list_for_each_entry(mlxsw_sp_port_vlan, &bridge_vlan->port_vlan_list,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
674
if (mlxsw_sp_port_vlan->mlxsw_sp_port != mlxsw_sp_port)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
724
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
726
list_for_each_entry(mlxsw_sp_port_vlan, &bridge_vlan->port_vlan_list,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
728
if (mlxsw_sp_port_vlan->mlxsw_sp_port != mlxsw_sp_port)
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
730
return mlxsw_sp_fid_flood_set(mlxsw_sp_port_vlan->fid,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
772
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
775
list_for_each_entry(mlxsw_sp_port_vlan, &bridge_vlan->port_vlan_list,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
777
u16 local_port = mlxsw_sp_port_vlan->mlxsw_sp_port->local_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
779
err = mlxsw_sp_fid_flood_set(mlxsw_sp_port_vlan->fid,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
788
list_for_each_entry_continue_reverse(mlxsw_sp_port_vlan,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
791
u16 local_port = mlxsw_sp_port_vlan->mlxsw_sp_port->local_port;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
793
mlxsw_sp_fid_flood_set(mlxsw_sp_port_vlan->fid, packet_type,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
830
struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan;
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
833
list_for_each_entry(mlxsw_sp_port_vlan, &bridge_vlan->port_vlan_list,
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c
835
if (mlxsw_sp_port_vlan->mlxsw_sp_port != mlxsw_sp_port)