Lines Matching refs:lag_work
1658 struct ice_lag_work *lag_work; in ice_lag_process_event() local
1663 lag_work = container_of(work, struct ice_lag_work, lag_task); in ice_lag_process_event()
1664 pf = lag_work->lag->pf; in ice_lag_process_event()
1667 lag_work->lag->netdev_head = &lag_work->netdev_list.node; in ice_lag_process_event()
1669 switch (lag_work->event) { in ice_lag_process_event()
1671 info = &lag_work->info.changeupper_info; in ice_lag_process_event()
1672 ice_lag_chk_disabled_bond(lag_work->lag, info); in ice_lag_process_event()
1674 ice_lag_monitor_link(lag_work->lag, info); in ice_lag_process_event()
1675 ice_lag_changeupper_event(lag_work->lag, info); in ice_lag_process_event()
1676 ice_lag_link_unlink(lag_work->lag, info); in ice_lag_process_event()
1678 ice_lag_monitor_rdma(lag_work->lag, info); in ice_lag_process_event()
1682 if (!ice_lag_chk_comp(lag_work->lag, in ice_lag_process_event()
1683 &lag_work->info.bonding_info)) { in ice_lag_process_event()
1684 netdev = lag_work->info.bonding_info.info.dev; in ice_lag_process_event()
1685 ice_lag_disable_sriov_bond(lag_work->lag); in ice_lag_process_event()
1686 ice_lag_unregister(lag_work->lag, netdev); in ice_lag_process_event()
1689 ice_lag_monitor_active(lag_work->lag, in ice_lag_process_event()
1690 &lag_work->info.bonding_info); in ice_lag_process_event()
1691 ice_lag_cfg_pf_fltrs(lag_work->lag, in ice_lag_process_event()
1692 &lag_work->info.bonding_info); in ice_lag_process_event()
1694 ice_lag_info_event(lag_work->lag, &lag_work->info.bonding_info); in ice_lag_process_event()
1698 netdev = lag_work->info.bonding_info.info.dev; in ice_lag_process_event()
1699 if ((netdev == lag_work->lag->netdev || in ice_lag_process_event()
1700 lag_work->lag->primary) && lag_work->lag->bonded) in ice_lag_process_event()
1701 ice_lag_unregister(lag_work->lag, netdev); in ice_lag_process_event()
1710 list_for_each_safe(tmp, n, &lag_work->netdev_list.node) { in ice_lag_process_event()
1717 lag_work->lag->netdev_head = NULL; in ice_lag_process_event()
1721 kfree(lag_work); in ice_lag_process_event()
1736 struct ice_lag_work *lag_work; in ice_lag_event_handler() local
1757 lag_work = kzalloc(sizeof(*lag_work), GFP_KERNEL); in ice_lag_event_handler()
1758 if (!lag_work) in ice_lag_event_handler()
1761 lag_work->event_netdev = netdev; in ice_lag_event_handler()
1762 lag_work->lag = lag; in ice_lag_event_handler()
1763 lag_work->event = event; in ice_lag_event_handler()
1773 INIT_LIST_HEAD(&lag_work->netdev_list.node); in ice_lag_event_handler()
1785 list_add(&nd_list->node, &lag_work->netdev_list.node); in ice_lag_event_handler()
1792 lag_work->info.changeupper_info = in ice_lag_event_handler()
1796 lag_work->info.bonding_info = in ice_lag_event_handler()
1800 lag_work->info.notifier_info = in ice_lag_event_handler()
1805 INIT_WORK(&lag_work->lag_task, ice_lag_process_event); in ice_lag_event_handler()
1806 queue_work(ice_lag_wq, &lag_work->lag_task); in ice_lag_event_handler()