Lines Matching refs:switchdev_work
1433 struct adin1110_switchdev_event_work *switchdev_work; in adin1110_switchdev_event_work() local
1437 switchdev_work = container_of(work, struct adin1110_switchdev_event_work, work); in adin1110_switchdev_event_work()
1438 port_priv = switchdev_work->port_priv; in adin1110_switchdev_event_work()
1442 switch (switchdev_work->event) { in adin1110_switchdev_event_work()
1444 ret = adin1110_fdb_add(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1447 &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1450 adin1110_fdb_del(port_priv, &switchdev_work->fdb_info); in adin1110_switchdev_event_work()
1458 kfree(switchdev_work->fdb_info.addr); in adin1110_switchdev_event_work()
1459 kfree(switchdev_work); in adin1110_switchdev_event_work()
1469 struct adin1110_switchdev_event_work *switchdev_work; in adin1110_switchdev_event() local
1475 switchdev_work = kzalloc(sizeof(*switchdev_work), GFP_ATOMIC); in adin1110_switchdev_event()
1476 if (WARN_ON(!switchdev_work)) in adin1110_switchdev_event()
1479 INIT_WORK(&switchdev_work->work, adin1110_switchdev_event_work); in adin1110_switchdev_event()
1480 switchdev_work->port_priv = port_priv; in adin1110_switchdev_event()
1481 switchdev_work->event = event; in adin1110_switchdev_event()
1486 memcpy(&switchdev_work->fdb_info, ptr, in adin1110_switchdev_event()
1487 sizeof(switchdev_work->fdb_info)); in adin1110_switchdev_event()
1488 switchdev_work->fdb_info.addr = kzalloc(ETH_ALEN, GFP_ATOMIC); in adin1110_switchdev_event()
1490 if (!switchdev_work->fdb_info.addr) in adin1110_switchdev_event()
1493 ether_addr_copy((u8 *)switchdev_work->fdb_info.addr, in adin1110_switchdev_event()
1498 kfree(switchdev_work); in adin1110_switchdev_event()
1502 queue_work(system_long_wq, &switchdev_work->work); in adin1110_switchdev_event()
1507 kfree(switchdev_work); in adin1110_switchdev_event()