Searched refs:switchdev_work (Results 1 – 5 of 5) sorted by relevance
423 struct cpsw_switchdev_event_work *switchdev_work = in cpsw_switchdev_event_work() local425 struct cpsw_priv *priv = switchdev_work->priv; in cpsw_switchdev_event_work()431 switch (switchdev_work->event) { in cpsw_switchdev_event_work()433 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()449 fdb = &switchdev_work->fdb_info; in cpsw_switchdev_event_work()468 kfree(switchdev_work->fdb_info.addr); in cpsw_switchdev_event_work()469 kfree(switchdev_work); in cpsw_switchdev_event_work()479 struct cpsw_switchdev_event_work *switchdev_work; in cpsw_switchdev_event() local493 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in cpsw_switchdev_event()494 if (WARN_ON(!switchdev_work)) in cpsw_switchdev_event()[all …]
2746 switchdev_work, in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()2751 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()2756 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()2764 switch (switchdev_work->event) { in mlxsw_sp_switchdev_bridge_vxlan_fdb_event()2794 switchdev_work) in mlxsw_sp_switchdev_bridge_nve_fdb_event()2797 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_bridge_nve_fdb_event()2804 if (switchdev_work->event != SWITCHDEV_FDB_ADD_TO_DEVICE && in mlxsw_sp_switchdev_bridge_nve_fdb_event()2805 switchdev_work->event != SWITCHDEV_FDB_DEL_TO_DEVICE) in mlxsw_sp_switchdev_bridge_nve_fdb_event()2808 if (switchdev_work->event == SWITCHDEV_FDB_ADD_TO_DEVICE && in mlxsw_sp_switchdev_bridge_nve_fdb_event()2809 !switchdev_work->fdb_info.added_by_user) in mlxsw_sp_switchdev_bridge_nve_fdb_event()[all …]
1305 struct ethsw_switchdev_event_work *switchdev_work = in dpaa2_switch_event_work() local1307 struct net_device *dev = switchdev_work->dev; in dpaa2_switch_event_work()1312 fdb_info = &switchdev_work->fdb_info; in dpaa2_switch_event_work()1314 switch (switchdev_work->event) { in dpaa2_switch_event_work()1341 kfree(switchdev_work->fdb_info.addr); in dpaa2_switch_event_work()1342 kfree(switchdev_work); in dpaa2_switch_event_work()1352 struct ethsw_switchdev_event_work *switchdev_work; in dpaa2_switch_port_event() local1362 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in dpaa2_switch_port_event()1363 if (!switchdev_work) in dpaa2_switch_port_event()1366 INIT_WORK(&switchdev_work->work, dpaa2_switch_event_work); in dpaa2_switch_port_event()[all …]
2017 struct dsa_switchdev_event_work *switchdev_work = in dsa_slave_switchdev_event_work() local2019 struct net_device *dev = switchdev_work->dev; in dsa_slave_switchdev_event_work()2025 switch (switchdev_work->event) { in dsa_slave_switchdev_event_work()2027 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()2042 fdb_info = &switchdev_work->fdb_info; in dsa_slave_switchdev_event_work()2055 kfree(switchdev_work->fdb_info.addr); in dsa_slave_switchdev_event_work()2056 kfree(switchdev_work); in dsa_slave_switchdev_event_work()2062 switchdev_work, in dsa_slave_switchdev_fdb_work_init()2066 memcpy(&switchdev_work->fdb_info, fdb_info, in dsa_slave_switchdev_fdb_work_init()2067 sizeof(switchdev_work->fdb_info)); in dsa_slave_switchdev_fdb_work_init()[all …]
2757 struct rocker_switchdev_event_work *switchdev_work = in rocker_switchdev_event_work() local2759 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() local2808 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in rocker_switchdev_event()2809 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event()[all …]