Searched refs:switchdev_work (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.15/drivers/net/ethernet/ti/ |
D | am65-cpsw-switchdev.c | 372 struct am65_cpsw_switchdev_event_work *switchdev_work = in am65_cpsw_switchdev_event_work() local 374 struct am65_cpsw_port *port = switchdev_work->port; in am65_cpsw_switchdev_event_work() 380 switch (switchdev_work->event) { in am65_cpsw_switchdev_event_work() 382 fdb = &switchdev_work->fdb_info; in am65_cpsw_switchdev_event_work() 398 fdb = &switchdev_work->fdb_info; in am65_cpsw_switchdev_event_work() 417 kfree(switchdev_work->fdb_info.addr); in am65_cpsw_switchdev_event_work() 418 kfree(switchdev_work); in am65_cpsw_switchdev_event_work() 427 struct am65_cpsw_switchdev_event_work *switchdev_work; in am65_cpsw_switchdev_event() local 442 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in am65_cpsw_switchdev_event() 443 if (WARN_ON(!switchdev_work)) in am65_cpsw_switchdev_event() [all …]
|
D | cpsw_switchdev.c | 382 struct cpsw_switchdev_event_work *switchdev_work = in cpsw_switchdev_event_work() local 384 struct cpsw_priv *priv = switchdev_work->priv; in cpsw_switchdev_event_work() 390 switch (switchdev_work->event) { in cpsw_switchdev_event_work() 392 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work() 408 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work() 427 kfree(switchdev_work->fdb_info.addr); in cpsw_switchdev_event_work() 428 kfree(switchdev_work); in cpsw_switchdev_event_work() 438 struct cpsw_switchdev_event_work *switchdev_work; in cpsw_switchdev_event() local 452 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in cpsw_switchdev_event() 453 if (WARN_ON(!switchdev_work)) in cpsw_switchdev_event() [all …]
|
/Linux-v5.15/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_switchdev.c | 225 struct sparx5_switchdev_event_work *switchdev_work = in sparx5_switchdev_bridge_fdb_event_work() local 227 struct net_device *dev = switchdev_work->dev; in sparx5_switchdev_bridge_fdb_event_work() 239 fdb_info = &switchdev_work->fdb_info; in sparx5_switchdev_bridge_fdb_event_work() 241 switch (switchdev_work->event) { in sparx5_switchdev_bridge_fdb_event_work() 257 kfree(switchdev_work->fdb_info.addr); in sparx5_switchdev_bridge_fdb_event_work() 258 kfree(switchdev_work); in sparx5_switchdev_bridge_fdb_event_work() 271 struct sparx5_switchdev_event_work *switchdev_work; in sparx5_switchdev_event() local 285 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in sparx5_switchdev_event() 286 if (!switchdev_work) in sparx5_switchdev_event() 289 switchdev_work->dev = dev; in sparx5_switchdev_event() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_switchdev.c | 2872 switchdev_work, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2877 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2882 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2890 switch (switchdev_work->event) { in mlxsw_sp_switchdev_bridge_vxlan_fdb_event() 2920 switchdev_work) in mlxsw_sp_switchdev_bridge_nve_fdb_event() 2923 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_bridge_nve_fdb_event() 2930 if (switchdev_work->event != SWITCHDEV_FDB_ADD_TO_DEVICE && in mlxsw_sp_switchdev_bridge_nve_fdb_event() 2931 switchdev_work->event != SWITCHDEV_FDB_DEL_TO_DEVICE) in mlxsw_sp_switchdev_bridge_nve_fdb_event() 2934 if (switchdev_work->event == SWITCHDEV_FDB_ADD_TO_DEVICE && in mlxsw_sp_switchdev_bridge_nve_fdb_event() 2935 (!switchdev_work->fdb_info.added_by_user || in mlxsw_sp_switchdev_bridge_nve_fdb_event() [all …]
|
/Linux-v5.15/net/dsa/ |
D | slave.c | 2355 dsa_fdb_offload_notify(struct dsa_switchdev_event_work *switchdev_work) in dsa_fdb_offload_notify() argument 2358 struct dsa_switch *ds = switchdev_work->ds; in dsa_fdb_offload_notify() 2361 if (!dsa_is_user_port(ds, switchdev_work->port)) in dsa_fdb_offload_notify() 2364 info.addr = switchdev_work->addr; in dsa_fdb_offload_notify() 2365 info.vid = switchdev_work->vid; in dsa_fdb_offload_notify() 2367 dp = dsa_to_port(ds, switchdev_work->port); in dsa_fdb_offload_notify() 2374 struct dsa_switchdev_event_work *switchdev_work = in dsa_slave_switchdev_event_work() local 2376 struct dsa_switch *ds = switchdev_work->ds; in dsa_slave_switchdev_event_work() 2380 dp = dsa_to_port(ds, switchdev_work->port); in dsa_slave_switchdev_event_work() 2383 switch (switchdev_work->event) { in dsa_slave_switchdev_event_work() [all …]
|
/Linux-v5.15/drivers/net/ethernet/rocker/ |
D | rocker_main.c | 2730 struct rocker_switchdev_event_work *switchdev_work = in rocker_switchdev_event_work() local 2732 struct rocker_port *rocker_port = switchdev_work->rocker_port; in rocker_switchdev_event_work() 2737 switch (switchdev_work->event) { in rocker_switchdev_event_work() 2739 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work() 2750 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work() 2760 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work() 2761 kfree(switchdev_work); in rocker_switchdev_event_work() 2770 struct rocker_switchdev_event_work *switchdev_work; in rocker_switchdev_event() local 2781 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in rocker_switchdev_event() 2782 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event() [all …]
|
/Linux-v5.15/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-switch.c | 2213 struct ethsw_switchdev_event_work *switchdev_work = in dpaa2_switch_event_work() local 2215 struct net_device *dev = switchdev_work->dev; in dpaa2_switch_event_work() 2220 fdb_info = &switchdev_work->fdb_info; in dpaa2_switch_event_work() 2222 switch (switchdev_work->event) { in dpaa2_switch_event_work() 2249 kfree(switchdev_work->fdb_info.addr); in dpaa2_switch_event_work() 2250 kfree(switchdev_work); in dpaa2_switch_event_work() 2260 struct ethsw_switchdev_event_work *switchdev_work; in dpaa2_switch_port_event() local 2270 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in dpaa2_switch_port_event() 2271 if (!switchdev_work) in dpaa2_switch_port_event() 2274 INIT_WORK(&switchdev_work->work, dpaa2_switch_event_work); in dpaa2_switch_port_event() [all …]
|