Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_switchdev.c2775 switchdev_work, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
2780 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
2785 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
2793 switch (switchdev_work->event) { in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()
2823 switchdev_work) in mlxsw_sp_switchdev_bridge_nve_fdb_event()
2826 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_bridge_nve_fdb_event()
2833 if (switchdev_work->event != SWITCHDEV_FDB_ADD_TO_DEVICE && in mlxsw_sp_switchdev_bridge_nve_fdb_event()
2834 switchdev_work->event != SWITCHDEV_FDB_DEL_TO_DEVICE) in mlxsw_sp_switchdev_bridge_nve_fdb_event()
2837 if (switchdev_work->event == SWITCHDEV_FDB_ADD_TO_DEVICE && in mlxsw_sp_switchdev_bridge_nve_fdb_event()
2838 !switchdev_work->fdb_info.added_by_user) in mlxsw_sp_switchdev_bridge_nve_fdb_event()
[all …]
/Linux-v5.4/net/dsa/
Dslave.c1572 struct dsa_switchdev_event_work *switchdev_work = in dsa_slave_switchdev_event_work() local
1574 struct net_device *dev = switchdev_work->dev; in dsa_slave_switchdev_event_work()
1580 switch (switchdev_work->event) { in dsa_slave_switchdev_event_work()
1582 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
1597 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()
1610 kfree(switchdev_work->fdb_info.addr); in dsa_slave_switchdev_event_work()
1611 kfree(switchdev_work); in dsa_slave_switchdev_event_work()
1617 switchdev_work, in dsa_slave_switchdev_fdb_work_init()
1621 memcpy(&switchdev_work->fdb_info, fdb_info, in dsa_slave_switchdev_fdb_work_init()
1622 sizeof(switchdev_work->fdb_info)); in dsa_slave_switchdev_fdb_work_init()
[all …]
/Linux-v5.4/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c1190 struct ethsw_switchdev_event_work *switchdev_work = in ethsw_switchdev_event_work() local
1192 struct net_device *dev = switchdev_work->dev; in ethsw_switchdev_event_work()
1197 fdb_info = &switchdev_work->fdb_info; in ethsw_switchdev_event_work()
1199 switch (switchdev_work->event) { in ethsw_switchdev_event_work()
1226 kfree(switchdev_work->fdb_info.addr); in ethsw_switchdev_event_work()
1227 kfree(switchdev_work); in ethsw_switchdev_event_work()
1236 struct ethsw_switchdev_event_work *switchdev_work; in port_switchdev_event() local
1245 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in port_switchdev_event()
1246 if (!switchdev_work) in port_switchdev_event()
1249 INIT_WORK(&switchdev_work->work, ethsw_switchdev_event_work); in port_switchdev_event()
[all …]
/Linux-v5.4/drivers/net/ethernet/rocker/
Drocker_main.c2757 struct rocker_switchdev_event_work *switchdev_work = in rocker_switchdev_event_work() local
2759 struct rocker_port *rocker_port = switchdev_work->rocker_port; in rocker_switchdev_event_work()
2764 switch (switchdev_work->event) { in rocker_switchdev_event_work()
2766 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2777 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2787 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
2788 kfree(switchdev_work); in rocker_switchdev_event_work()
2797 struct rocker_switchdev_event_work *switchdev_work; in rocker_switchdev_event() local
2808 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in rocker_switchdev_event()
2809 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event()
[all …]