Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/ti/icssm/
H A Dicssm_switchdev.c98 struct icssm_sw_event_work *switchdev_work = in icssm_sw_event_work() local
100 struct prueth_emac *emac = switchdev_work->emac; in icssm_sw_event_work()
111 switch (switchdev_work->event) { in icssm_sw_event_work()
113 fdb = &switchdev_work->fdb_info; in icssm_sw_event_work()
128 fdb = &switchdev_work->fdb_info; in icssm_sw_event_work()
145 netdev_put(emac->ndev, &switchdev_work->ndev_tracker); in icssm_sw_event_work()
146 kfree(switchdev_work->fdb_info.addr); in icssm_sw_event_work()
147 kfree(switchdev_work); in icssm_sw_event_work()
157 struct icssm_sw_event_work *switchdev_work; in icssm_prueth_sw_switchdev_event() local
170 switchdev_work = kzalloc_obj(*switchdev_work, GFP_ATOMIC); in icssm_prueth_sw_switchdev_event()
[all …]
/linux/drivers/net/ethernet/ti/icssg/
H A Dicssg_switchdev.c127 struct prueth_switchdev_event_work *switchdev_work = in prueth_switchdev_event_work() local
129 struct prueth_emac *emac = switchdev_work->emac; in prueth_switchdev_event_work()
135 switch (switchdev_work->event) { in prueth_switchdev_event_work()
137 fdb = &switchdev_work->fdb_info; in prueth_switchdev_event_work()
154 fdb = &switchdev_work->fdb_info; in prueth_switchdev_event_work()
172 kfree(switchdev_work->fdb_info.addr); in prueth_switchdev_event_work()
173 kfree(switchdev_work); in prueth_switchdev_event_work()
181 struct prueth_switchdev_event_work *switchdev_work; in prueth_switchdev_event() local
196 switchdev_work = kzalloc_obj(*switchdev_work, GFP_ATOMIC); in prueth_switchdev_event()
197 if (WARN_ON(!switchdev_work)) in prueth_switchdev_event()
[all …]
/linux/drivers/net/ethernet/ti/
H A 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_obj(*switchdev_work, GFP_ATOMIC); in cpsw_switchdev_event()
449 if (WARN_ON(!switchdev_work)) in cpsw_switchdev_event()
[all …]
H A 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_obj(*switchdev_work, GFP_ATOMIC); in am65_cpsw_switchdev_event()
439 if (WARN_ON(!switchdev_work)) in am65_cpsw_switchdev_event()
[all …]
/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_switchdev.c325 struct sparx5_switchdev_event_work *switchdev_work = in sparx5_switchdev_bridge_fdb_event_work() local
327 struct net_device *dev = switchdev_work->dev; in sparx5_switchdev_bridge_fdb_event_work()
337 sparx5 = switchdev_work->sparx5; in sparx5_switchdev_bridge_fdb_event_work()
340 sparx5 = switchdev_work->sparx5; in sparx5_switchdev_bridge_fdb_event_work()
344 fdb_info = &switchdev_work->fdb_info; in sparx5_switchdev_bridge_fdb_event_work()
354 switch (switchdev_work->event) { in sparx5_switchdev_bridge_fdb_event_work()
370 kfree(switchdev_work->fdb_info.addr); in sparx5_switchdev_bridge_fdb_event_work()
371 kfree(switchdev_work); in sparx5_switchdev_bridge_fdb_event_work()
384 struct sparx5_switchdev_event_work *switchdev_work; in sparx5_switchdev_event() local
401 switchdev_work = kzalloc_obj(*switchdev_work, GFP_ATOMIC); in sparx5_switchdev_event()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_switchdev.c3415 switchdev_work, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3420 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3425 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3433 switch (switchdev_work->event) { in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
3463 switchdev_work) in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3466 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3473 if (switchdev_work->event != SWITCHDEV_FDB_ADD_TO_DEVICE && in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3474 switchdev_work->event != SWITCHDEV_FDB_DEL_TO_DEVICE) in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3477 if (switchdev_work->event == SWITCHDEV_FDB_ADD_TO_DEVICE && in mlxsw_sp_switchdev_bridge_nve_fdb_event()
3478 (!switchdev_work->fdb_info.added_by_user || in mlxsw_sp_switchdev_bridge_nve_fdb_event()
[all …]
/linux/drivers/net/ethernet/adi/
H A Dadin1110.c1453 struct adin1110_switchdev_event_work *switchdev_work; in adin1110_switchdev_event_work() local
1457 switchdev_work = container_of(work, struct adin1110_switchdev_event_work, work); in adin1110_switchdev_event_work()
1458 port_priv = switchdev_work->port_priv; in adin1110_switchdev_event_work()
1462 switch (switchdev_work->event) { in adin1110_switchdev_event_work()
1464 ret = adin1110_fdb_add(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1467 &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1470 adin1110_fdb_del(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1478 kfree(switchdev_work->fdb_info.addr); in adin1110_switchdev_event_work()
1479 kfree(switchdev_work); in adin1110_switchdev_event_work()
1489 struct adin1110_switchdev_event_work *switchdev_work; in adin1110_switchdev_event() local
[all …]
/linux/drivers/net/ethernet/rocker/
H A Drocker_main.c2713 struct rocker_switchdev_event_work *switchdev_work = in rocker_switchdev_event_work() local
2715 struct rocker_port *rocker_port = switchdev_work->rocker_port; in rocker_switchdev_event_work()
2720 switch (switchdev_work->event) { in rocker_switchdev_event_work()
2722 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2733 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2743 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
2744 kfree(switchdev_work); in rocker_switchdev_event_work()
2753 struct rocker_switchdev_event_work *switchdev_work; in rocker_switchdev_event() local
2764 switchdev_work = kzalloc_obj(*switchdev_work, GFP_ATOMIC); in rocker_switchdev_event()
2765 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event()
[all …]
/linux/net/dsa/
H A Duser.c3618 dsa_fdb_offload_notify(struct dsa_switchdev_event_work *switchdev_work) in dsa_fdb_offload_notify() argument
3622 info.addr = switchdev_work->addr; in dsa_fdb_offload_notify()
3623 info.vid = switchdev_work->vid; in dsa_fdb_offload_notify()
3626 switchdev_work->orig_dev, &info.info, NULL); in dsa_fdb_offload_notify()
3631 struct dsa_switchdev_event_work *switchdev_work = in dsa_user_switchdev_event_work() local
3633 const unsigned char *addr = switchdev_work->addr; in dsa_user_switchdev_event_work()
3634 struct net_device *dev = switchdev_work->dev; in dsa_user_switchdev_event_work()
3635 u16 vid = switchdev_work->vid; in dsa_user_switchdev_event_work()
3643 switch (switchdev_work->event) { in dsa_user_switchdev_event_work()
3645 if (switchdev_work->host_addr) in dsa_user_switchdev_event_work()
[all …]
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c2280 struct ethsw_switchdev_event_work *switchdev_work = in dpaa2_switch_event_work() local
2282 struct net_device *dev = switchdev_work->dev; in dpaa2_switch_event_work()
2287 fdb_info = &switchdev_work->fdb_info; in dpaa2_switch_event_work()
2289 switch (switchdev_work->event) { in dpaa2_switch_event_work()
2316 kfree(switchdev_work->fdb_info.addr); in dpaa2_switch_event_work()
2317 kfree(switchdev_work); in dpaa2_switch_event_work()
2327 struct ethsw_switchdev_event_work *switchdev_work; in dpaa2_switch_port_event() local
2337 switchdev_work = kzalloc_obj(*switchdev_work, GFP_ATOMIC); in dpaa2_switch_port_event()
2338 if (!switchdev_work) in dpaa2_switch_port_event()
2341 INIT_WORK(&switchdev_work->work, dpaa2_switch_event_work); in dpaa2_switch_port_event()
[all …]