Home
last modified time | relevance | path

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

/drivers/net/ethernet/ti/
Dcpsw_switchdev.c378 struct cpsw_switchdev_event_work *switchdev_work = in cpsw_switchdev_event_work() local
380 struct cpsw_priv *priv = switchdev_work->priv; in cpsw_switchdev_event_work()
386 switch (switchdev_work->event) { in cpsw_switchdev_event_work()
388 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()
404 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()
423 kfree(switchdev_work->fdb_info.addr); in cpsw_switchdev_event_work()
424 kfree(switchdev_work); in cpsw_switchdev_event_work()
434 struct cpsw_switchdev_event_work *switchdev_work; in cpsw_switchdev_event() local
448 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in cpsw_switchdev_event()
449 if (WARN_ON(!switchdev_work)) in cpsw_switchdev_event()
[all …]
Dam65-cpsw-switchdev.c368 struct am65_cpsw_switchdev_event_work *switchdev_work = in am65_cpsw_switchdev_event_work() local
370 struct am65_cpsw_port *port = switchdev_work->port; in am65_cpsw_switchdev_event_work()
376 switch (switchdev_work->event) { in am65_cpsw_switchdev_event_work()
378 fdb = &switchdev_work->fdb_info; in am65_cpsw_switchdev_event_work()
394 fdb = &switchdev_work->fdb_info; in am65_cpsw_switchdev_event_work()
413 kfree(switchdev_work->fdb_info.addr); in am65_cpsw_switchdev_event_work()
414 kfree(switchdev_work); in am65_cpsw_switchdev_event_work()
423 struct am65_cpsw_switchdev_event_work *switchdev_work; in am65_cpsw_switchdev_event() local
438 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in am65_cpsw_switchdev_event()
439 if (WARN_ON(!switchdev_work)) in am65_cpsw_switchdev_event()
[all …]
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_switchdev.c301 struct sparx5_switchdev_event_work *switchdev_work = in sparx5_switchdev_bridge_fdb_event_work() local
303 struct net_device *dev = switchdev_work->dev; in sparx5_switchdev_bridge_fdb_event_work()
313 sparx5 = switchdev_work->sparx5; in sparx5_switchdev_bridge_fdb_event_work()
316 sparx5 = switchdev_work->sparx5; in sparx5_switchdev_bridge_fdb_event_work()
320 fdb_info = &switchdev_work->fdb_info; in sparx5_switchdev_bridge_fdb_event_work()
330 switch (switchdev_work->event) { in sparx5_switchdev_bridge_fdb_event_work()
345 kfree(switchdev_work->fdb_info.addr); in sparx5_switchdev_bridge_fdb_event_work()
346 kfree(switchdev_work); in sparx5_switchdev_bridge_fdb_event_work()
359 struct sparx5_switchdev_event_work *switchdev_work; in sparx5_switchdev_event() local
376 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in sparx5_switchdev_event()
[all …]
/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c3236 switchdev_work, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3241 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3246 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3254 switch (switchdev_work->event) { in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3284 switchdev_work) in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3287 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3294 if (switchdev_work->event != SWITCHDEV_FDB_ADD_TO_DEVICE && in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3295 switchdev_work->event != SWITCHDEV_FDB_DEL_TO_DEVICE) in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3298 if (switchdev_work->event == SWITCHDEV_FDB_ADD_TO_DEVICE && in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3299 (!switchdev_work->fdb_info.added_by_user || in mlxsw_sp_switchdev_bridge_nve_fdb_event()
[all …]
/drivers/net/ethernet/adi/
Dadin1110.c1428 struct adin1110_switchdev_event_work *switchdev_work; in adin1110_switchdev_event_work() local
1432 switchdev_work = container_of(work, struct adin1110_switchdev_event_work, work); in adin1110_switchdev_event_work()
1433 port_priv = switchdev_work->port_priv; in adin1110_switchdev_event_work()
1437 switch (switchdev_work->event) { in adin1110_switchdev_event_work()
1439 ret = adin1110_fdb_add(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1442 &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1445 adin1110_fdb_del(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1453 kfree(switchdev_work->fdb_info.addr); in adin1110_switchdev_event_work()
1454 kfree(switchdev_work); in adin1110_switchdev_event_work()
1464 struct adin1110_switchdev_event_work *switchdev_work; in adin1110_switchdev_event() local
[all …]
/drivers/net/ethernet/rocker/
Drocker_main.c2718 struct rocker_switchdev_event_work *switchdev_work = in rocker_switchdev_event_work() local
2720 struct rocker_port *rocker_port = switchdev_work->rocker_port; in rocker_switchdev_event_work()
2725 switch (switchdev_work->event) { in rocker_switchdev_event_work()
2727 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2738 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2748 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
2749 kfree(switchdev_work); in rocker_switchdev_event_work()
2758 struct rocker_switchdev_event_work *switchdev_work; in rocker_switchdev_event() local
2769 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in rocker_switchdev_event()
2770 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event()
[all …]
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.c2211 struct ethsw_switchdev_event_work *switchdev_work = in dpaa2_switch_event_work() local
2213 struct net_device *dev = switchdev_work->dev; in dpaa2_switch_event_work()
2218 fdb_info = &switchdev_work->fdb_info; in dpaa2_switch_event_work()
2220 switch (switchdev_work->event) { in dpaa2_switch_event_work()
2247 kfree(switchdev_work->fdb_info.addr); in dpaa2_switch_event_work()
2248 kfree(switchdev_work); in dpaa2_switch_event_work()
2258 struct ethsw_switchdev_event_work *switchdev_work; in dpaa2_switch_port_event() local
2268 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in dpaa2_switch_port_event()
2269 if (!switchdev_work) in dpaa2_switch_port_event()
2272 INIT_WORK(&switchdev_work->work, dpaa2_switch_event_work); in dpaa2_switch_port_event()
[all …]