Lines Matching refs:switchdev_work

2294 	struct mlxsw_sp_switchdev_event_work *switchdev_work =  in mlxsw_sp_switchdev_event_work()  local
2296 struct net_device *dev = switchdev_work->dev; in mlxsw_sp_switchdev_event_work()
2306 switch (switchdev_work->event) { in mlxsw_sp_switchdev_event_work()
2308 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_event_work()
2319 fdb_info = &switchdev_work->fdb_info; in mlxsw_sp_switchdev_event_work()
2336 kfree(switchdev_work->fdb_info.addr); in mlxsw_sp_switchdev_event_work()
2337 kfree(switchdev_work); in mlxsw_sp_switchdev_event_work()
2346 struct mlxsw_sp_switchdev_event_work *switchdev_work; in mlxsw_sp_switchdev_event() local
2352 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in mlxsw_sp_switchdev_event()
2353 if (!switchdev_work) in mlxsw_sp_switchdev_event()
2356 INIT_WORK(&switchdev_work->work, mlxsw_sp_switchdev_event_work); in mlxsw_sp_switchdev_event()
2357 switchdev_work->dev = dev; in mlxsw_sp_switchdev_event()
2358 switchdev_work->event = event; in mlxsw_sp_switchdev_event()
2365 memcpy(&switchdev_work->fdb_info, ptr, in mlxsw_sp_switchdev_event()
2366 sizeof(switchdev_work->fdb_info)); in mlxsw_sp_switchdev_event()
2367 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in mlxsw_sp_switchdev_event()
2368 if (!switchdev_work->fdb_info.addr) in mlxsw_sp_switchdev_event()
2370 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in mlxsw_sp_switchdev_event()
2379 kfree(switchdev_work); in mlxsw_sp_switchdev_event()
2383 mlxsw_core_schedule_work(&switchdev_work->work); in mlxsw_sp_switchdev_event()
2388 kfree(switchdev_work); in mlxsw_sp_switchdev_event()