Lines Matching refs:switchdev_work
2718 struct rocker_switchdev_event_work *switchdev_work = in rocker_switchdev_event_work() local
2720 struct rocker_port *rocker_port = switchdev_work->rocker_port; in rocker_switchdev_event_work()
2725 switch (switchdev_work->event) { in rocker_switchdev_event_work()
2727 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2738 fdb_info = &switchdev_work->fdb_info; in rocker_switchdev_event_work()
2748 kfree(switchdev_work->fdb_info.addr); in rocker_switchdev_event_work()
2749 kfree(switchdev_work); in rocker_switchdev_event_work()
2758 struct rocker_switchdev_event_work *switchdev_work; in rocker_switchdev_event() local
2769 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in rocker_switchdev_event()
2770 if (WARN_ON(!switchdev_work)) in rocker_switchdev_event()
2773 INIT_WORK(&switchdev_work->work, rocker_switchdev_event_work); in rocker_switchdev_event()
2774 switchdev_work->rocker_port = rocker_port; in rocker_switchdev_event()
2775 switchdev_work->event = event; in rocker_switchdev_event()
2780 memcpy(&switchdev_work->fdb_info, ptr, in rocker_switchdev_event()
2781 sizeof(switchdev_work->fdb_info)); in rocker_switchdev_event()
2782 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in rocker_switchdev_event()
2783 if (unlikely(!switchdev_work->fdb_info.addr)) { in rocker_switchdev_event()
2784 kfree(switchdev_work); in rocker_switchdev_event()
2788 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in rocker_switchdev_event()
2794 kfree(switchdev_work); in rocker_switchdev_event()
2799 &switchdev_work->work); in rocker_switchdev_event()