Home
last modified time | relevance | path

Searched refs:switchdev_work (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/ti/
Dam65-cpsw-switchdev.c372 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 …]
Dcpsw_switchdev.c382 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/
Dsparx5_switchdev.c225 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/
Dspectrum_switchdev.c2872 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/
Dslave.c2355 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/
Drocker_main.c2730 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/
Ddpaa2-switch.c2213 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 …]