Lines Matching refs:newg
1955 struct nh_group *newg) in replace_nexthop_grp_res() argument
1968 nh_res_table_migrate_buckets(old_res_table, newg); in replace_nexthop_grp_res()
1969 nh_res_group_rebalance(newg, old_res_table); in replace_nexthop_grp_res()
2001 struct nh_group *nhg, *newg; in remove_nh_grp_entry() local
2007 newg = nhg->spare; in remove_nh_grp_entry()
2015 newg->has_v4 = false; in remove_nh_grp_entry()
2016 newg->is_multipath = nhg->is_multipath; in remove_nh_grp_entry()
2017 newg->hash_threshold = nhg->hash_threshold; in remove_nh_grp_entry()
2018 newg->resilient = nhg->resilient; in remove_nh_grp_entry()
2019 newg->fdb_nh = nhg->fdb_nh; in remove_nh_grp_entry()
2020 newg->num_nh = nhg->num_nh; in remove_nh_grp_entry()
2024 new_nhges = newg->nh_entries; in remove_nh_grp_entry()
2030 newg->num_nh--; in remove_nh_grp_entry()
2036 newg->has_v4 = true; in remove_nh_grp_entry()
2047 if (newg->hash_threshold) in remove_nh_grp_entry()
2048 nh_hthr_group_rebalance(newg); in remove_nh_grp_entry()
2049 else if (newg->resilient) in remove_nh_grp_entry()
2050 replace_nexthop_grp_res(nhg, newg); in remove_nh_grp_entry()
2052 rcu_assign_pointer(nhp->nh_grp, newg); in remove_nh_grp_entry()
2061 if (newg->hash_threshold) { in remove_nh_grp_entry()
2202 struct nh_group *oldg, *newg; in replace_nexthop_grp() local
2211 newg = rtnl_dereference(new->nh_grp); in replace_nexthop_grp()
2213 if (newg->hash_threshold != oldg->hash_threshold) { in replace_nexthop_grp()
2218 if (newg->hash_threshold) { in replace_nexthop_grp()
2223 } else if (newg->resilient) { in replace_nexthop_grp()
2224 new_res_table = rtnl_dereference(newg->res_table); in replace_nexthop_grp()
2253 replace_nexthop_grp_res(oldg, newg); in replace_nexthop_grp()
2256 rcu_assign_pointer(newg->res_table, old_res_table); in replace_nexthop_grp()
2257 rcu_assign_pointer(newg->spare->res_table, old_res_table); in replace_nexthop_grp()
2261 for (i = 0; i < newg->num_nh; i++) in replace_nexthop_grp()
2262 newg->nh_entries[i].nh_parent = old; in replace_nexthop_grp()
2264 rcu_assign_pointer(old->nh_grp, newg); in replace_nexthop_grp()
2269 if (newg->resilient) { in replace_nexthop_grp()