Lines Matching refs:switchdev_work
2732 struct rocker_switchdev_event_work *switchdev_work = in rocker_switchdev_event_work() local
2734 struct rocker_port *rocker_port = switchdev_work->rocker_port; in rocker_switchdev_event_work()
2739 switch (switchdev_work->event) { in rocker_switchdev_event_work()
2741 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2752 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2762 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
2763 kfree(switchdev_work); in rocker_switchdev_event_work()
2772 struct rocker_switchdev_event_work *switchdev_work; in rocker_switchdev_event() local
2783 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in rocker_switchdev_event()
2784 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event()
2787 INIT_WORK(&switchdev_work->work, rocker_switchdev_event_work); in rocker_switchdev_event()
2788 switchdev_work->rocker_port = rocker_port; in rocker_switchdev_event()
2789 switchdev_work->event = event; in rocker_switchdev_event()
2794 memcpy(&switchdev_work->fdb_info, ptr, in rocker_switchdev_event()
2795 sizeof(switchdev_work->fdb_info)); in rocker_switchdev_event()
2796 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in rocker_switchdev_event()
2797 if (unlikely(!switchdev_work->fdb_info.addr)) { in rocker_switchdev_event()
2798 kfree(switchdev_work); in rocker_switchdev_event()
2802 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in rocker_switchdev_event()
2808 kfree(switchdev_work); in rocker_switchdev_event()
2813 &switchdev_work->work); in rocker_switchdev_event()