Lines Matching refs:switchdev_work
2238 struct ethsw_switchdev_event_work *switchdev_work = in dpaa2_switch_event_work() local
2240 struct net_device *dev = switchdev_work->dev; in dpaa2_switch_event_work()
2245 fdb_info = &switchdev_work->fdb_info; in dpaa2_switch_event_work()
2247 switch (switchdev_work->event) { in dpaa2_switch_event_work()
2274 kfree(switchdev_work->fdb_info.addr); in dpaa2_switch_event_work()
2275 kfree(switchdev_work); in dpaa2_switch_event_work()
2285 struct ethsw_switchdev_event_work *switchdev_work; in dpaa2_switch_port_event() local
2295 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in dpaa2_switch_port_event()
2296 if (!switchdev_work) in dpaa2_switch_port_event()
2299 INIT_WORK(&switchdev_work->work, dpaa2_switch_event_work); in dpaa2_switch_port_event()
2300 switchdev_work->dev = dev; in dpaa2_switch_port_event()
2301 switchdev_work->event = event; in dpaa2_switch_port_event()
2306 memcpy(&switchdev_work->fdb_info, ptr, in dpaa2_switch_port_event()
2307 sizeof(switchdev_work->fdb_info)); in dpaa2_switch_port_event()
2308 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in dpaa2_switch_port_event()
2309 if (!switchdev_work->fdb_info.addr) in dpaa2_switch_port_event()
2312 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in dpaa2_switch_port_event()
2319 kfree(switchdev_work); in dpaa2_switch_port_event()
2323 queue_work(ethsw->workqueue, &switchdev_work->work); in dpaa2_switch_port_event()
2328 kfree(switchdev_work); in dpaa2_switch_port_event()