Lines Matching refs:switchdev_work
2737 struct rocker_switchdev_event_work *switchdev_work = in rocker_switchdev_event_work() local
2739 struct rocker_port *rocker_port = switchdev_work->rocker_port; in rocker_switchdev_event_work()
2744 switch (switchdev_work->event) { in rocker_switchdev_event_work()
2746 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2757 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2767 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
2768 kfree(switchdev_work); in rocker_switchdev_event_work()
2777 struct rocker_switchdev_event_work *switchdev_work; in rocker_switchdev_event() local
2785 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in rocker_switchdev_event()
2786 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event()
2789 INIT_WORK(&switchdev_work->work, rocker_switchdev_event_work); in rocker_switchdev_event()
2790 switchdev_work->rocker_port = rocker_port; in rocker_switchdev_event()
2791 switchdev_work->event = event; in rocker_switchdev_event()
2796 memcpy(&switchdev_work->fdb_info, ptr, in rocker_switchdev_event()
2797 sizeof(switchdev_work->fdb_info)); in rocker_switchdev_event()
2798 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in rocker_switchdev_event()
2799 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in rocker_switchdev_event()
2805 kfree(switchdev_work); in rocker_switchdev_event()
2810 &switchdev_work->work); in rocker_switchdev_event()