Lines Matching refs:newg
1717 struct nh_group *newg) in replace_nexthop_grp_res() argument
1730 nh_res_table_migrate_buckets(old_res_table, newg); in replace_nexthop_grp_res()
1731 nh_res_group_rebalance(newg, old_res_table); in replace_nexthop_grp_res()
1763 struct nh_group *nhg, *newg; in remove_nh_grp_entry() local
1769 newg = nhg->spare; in remove_nh_grp_entry()
1777 newg->has_v4 = false; in remove_nh_grp_entry()
1778 newg->is_multipath = nhg->is_multipath; in remove_nh_grp_entry()
1779 newg->hash_threshold = nhg->hash_threshold; in remove_nh_grp_entry()
1780 newg->resilient = nhg->resilient; in remove_nh_grp_entry()
1781 newg->fdb_nh = nhg->fdb_nh; in remove_nh_grp_entry()
1782 newg->num_nh = nhg->num_nh; in remove_nh_grp_entry()
1786 new_nhges = newg->nh_entries; in remove_nh_grp_entry()
1792 newg->num_nh--; in remove_nh_grp_entry()
1798 newg->has_v4 = true; in remove_nh_grp_entry()
1808 if (newg->hash_threshold) in remove_nh_grp_entry()
1809 nh_hthr_group_rebalance(newg); in remove_nh_grp_entry()
1810 else if (newg->resilient) in remove_nh_grp_entry()
1811 replace_nexthop_grp_res(nhg, newg); in remove_nh_grp_entry()
1813 rcu_assign_pointer(nhp->nh_grp, newg); in remove_nh_grp_entry()
1821 if (newg->hash_threshold) { in remove_nh_grp_entry()
1962 struct nh_group *oldg, *newg; in replace_nexthop_grp() local
1971 newg = rtnl_dereference(new->nh_grp); in replace_nexthop_grp()
1973 if (newg->hash_threshold != oldg->hash_threshold) { in replace_nexthop_grp()
1978 if (newg->hash_threshold) { in replace_nexthop_grp()
1983 } else if (newg->resilient) { in replace_nexthop_grp()
1984 new_res_table = rtnl_dereference(newg->res_table); in replace_nexthop_grp()
2013 replace_nexthop_grp_res(oldg, newg); in replace_nexthop_grp()
2016 rcu_assign_pointer(newg->res_table, old_res_table); in replace_nexthop_grp()
2017 rcu_assign_pointer(newg->spare->res_table, old_res_table); in replace_nexthop_grp()
2021 for (i = 0; i < newg->num_nh; i++) in replace_nexthop_grp()
2022 newg->nh_entries[i].nh_parent = old; in replace_nexthop_grp()
2024 rcu_assign_pointer(old->nh_grp, newg); in replace_nexthop_grp()
2029 if (newg->resilient) { in replace_nexthop_grp()