Lines Matching refs:switchdev_work
2730 struct rocker_switchdev_event_work *switchdev_work = in rocker_switchdev_event_work() local
2732 struct rocker_port *rocker_port = switchdev_work->rocker_port; in rocker_switchdev_event_work()
2737 switch (switchdev_work->event) { in rocker_switchdev_event_work()
2739 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2750 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2760 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
2761 kfree(switchdev_work); in rocker_switchdev_event_work()
2770 struct rocker_switchdev_event_work *switchdev_work; in rocker_switchdev_event() local
2781 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in rocker_switchdev_event()
2782 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event()
2785 INIT_WORK(&switchdev_work->work, rocker_switchdev_event_work); in rocker_switchdev_event()
2786 switchdev_work->rocker_port = rocker_port; in rocker_switchdev_event()
2787 switchdev_work->event = event; in rocker_switchdev_event()
2792 memcpy(&switchdev_work->fdb_info, ptr, in rocker_switchdev_event()
2793 sizeof(switchdev_work->fdb_info)); in rocker_switchdev_event()
2794 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in rocker_switchdev_event()
2795 if (unlikely(!switchdev_work->fdb_info.addr)) { in rocker_switchdev_event()
2796 kfree(switchdev_work); in rocker_switchdev_event()
2800 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in rocker_switchdev_event()
2806 kfree(switchdev_work); in rocker_switchdev_event()
2811 &switchdev_work->work); in rocker_switchdev_event()