Lines Matching full:primary

29  * ice_lag_set_primary - set PF LAG state as Primary
40 dev_warn(ice_pf_to_dev(pf), "%s: Attempt to be Primary, but incompatible state.\n", in ice_lag_set_primary()
176 * ice_lag_find_primary - returns pointer to primary interfaces lag struct
190 if (tmp_lag && tmp_lag->primary) { in ice_lag_find_primary()
362 const char *name, *upper, *role, *bonded, *primary; in ice_display_lag_info() local
367 primary = lag->primary ? "TRUE" : "FALSE"; in ice_display_lag_info()
375 role = "PRIMARY"; in ice_display_lag_info()
387 dev_dbg(dev, "%s %s, upper:%s, role:%s, primary:%s\n", name, bonded, in ice_display_lag_info()
388 upper, role, primary); in ice_display_lag_info()
664 * @lag: primary interface LAG struct
717 lag->bonded && lag->primary && pri_port != act_port && in ice_lag_move_new_vf_nodes()
738 if (!lag->primary) in ice_lag_move_vf_nodes()
867 * ice_lag_reclaim_vf_tc - move scheduling nodes back to primary interface
868 * @lag: primary interface lag struct
937 /* find parent in primary tree */ in ice_lag_reclaim_vf_tc()
966 * ice_lag_reclaim_vf_nodes - When interface leaving bond primary reclaims nodes
967 * @lag: primary interface lag struct
976 if (!lag->primary || !src_hw) in ice_lag_reclaim_vf_nodes()
1017 if (lag->primary) { in ice_lag_unlink()
1022 lag->primary = false; in ice_lag_unlink()
1067 * @primary_swid: primary interface's SWID
1106 /* store the primary's SWID in case it leaves bond first */ in ice_lag_set_swid()
1133 * primary interface has not finished setting its SWID to SHARED in ice_lag_set_swid()
1152 * ice_lag_primary_swid - set/clear the SHARED attrib of primary's SWID
1153 * @lag: primary interface's lag struct
1156 * Implement setting primary SWID as shared using 0x020B
1167 dev_warn(ice_pf_to_dev(lag->pf), "Failure to set primary interface shared status\n"); in ice_lag_primary_swid()
1171 * ice_lag_add_prune_list - Adds event_pf's VSI to primary's prune list
1173 * @event_pf: PF struct for VSI we are adding to primary's prune list
1212 * ice_lag_del_prune_list - Remove secondary's vsi from primary's prune list
1213 * @lag: primary interface's ice_lag struct
1294 /* If there is not already a primary interface in the LAG, in ice_lag_changeupper_event()
1295 * then mark this one as primary. in ice_lag_changeupper_event()
1298 lag->primary = true; in ice_lag_changeupper_event()
1299 /* Configure primary's SWID to be shared */ in ice_lag_changeupper_event()
1310 /* add filter for primary control packets */ in ice_lag_changeupper_event()
1313 if (!primary_lag && lag->primary) in ice_lag_changeupper_event()
1316 if (!lag->primary) { in ice_lag_changeupper_event()
1319 if (primary_lag && lag->primary) { in ice_lag_changeupper_event()
1334 * This function only operates after a primary has been set.
1344 if (!lag->primary) in ice_lag_monitor_link()
1361 * one port is leaving, then nodes need to be on primary in ice_lag_monitor_link()
1379 * This function is for the primary PF to monitor changes in which port is
1391 if (!lag->primary) in ice_lag_monitor_active()
1415 * on primary port, check if we need to move them in ice_lag_monitor_active()
1439 * nodes and filters back to primary if not already there in ice_lag_monitor_active()
1462 if (!lag->primary) in ice_lag_chk_comp()
1475 * primary interface has to be in switchdev mode in ice_lag_chk_comp()
1478 dev_info(dev, "Primary interface not in switchdev mode - VF LAG disabled\n"); in ice_lag_chk_comp()
1571 /* primary processing for primary */ in ice_lag_unregister()
1572 if (lag->primary && lag->netdev == event_netdev) in ice_lag_unregister()
1575 /* primary processing for secondary */ in ice_lag_unregister()
1576 if (lag->primary && lag->netdev != event_netdev) in ice_lag_unregister()
1580 if (!lag->primary && lag->netdev == event_netdev) in ice_lag_unregister()
1639 * @lag: primary interfaces lag struct
1700 lag_work->lag->primary) && lag_work->lag->bonded) in ice_lag_process_event()
1891 * @lag: primary interfaces lag struct
1985 * @lag: primary interfaces lag struct
1998 if (!lag->primary || !dest_hw) in ice_lag_move_vf_nodes_sync()
2133 * This function will also evaluate the VF resources if this is the primary
2148 if (lag->primary) { in ice_lag_rebuild()
2156 dev_dbg(ice_pf_to_dev(pf), "No primary interface in aggregate, can't rebuild\n"); in ice_lag_rebuild()
2164 if (lag->primary) { in ice_lag_rebuild()