Lines Matching refs:nh_res_table

152 	struct nh_res_table *res_table = rtnl_dereference(nhg->res_table);  in nh_notifier_res_table_info_init()
158 size = struct_size(info->nh_res_table, nhs, num_nh_buckets); in nh_notifier_res_table_info_init()
159 info->nh_res_table = __vmalloc(size, GFP_KERNEL | __GFP_ZERO | in nh_notifier_res_table_info_init()
161 if (!info->nh_res_table) in nh_notifier_res_table_info_init()
164 info->nh_res_table->num_nh_buckets = num_nh_buckets; in nh_notifier_res_table_info_init()
173 __nh_notifier_single_info_init(&info->nh_res_table->nhs[i], in nh_notifier_res_table_info_init()
200 vfree(info->nh_res_table); in nh_notifier_grp_info_fini()
256 struct nh_res_table *res_table; in nh_notifier_res_bucket_idle_timer_get()
545 static struct nh_res_table *
549 struct nh_res_table *res_table; in nexthop_res_table_alloc()
622 static clock_t nh_res_table_unbalanced_time(struct nh_res_table *res_table) in nh_res_table_unbalanced_time()
631 struct nh_res_table *res_table = rtnl_dereference(nhg->res_table); in nla_put_nh_group_res()
874 nh_res_bucket_idle_point(const struct nh_res_table *res_table, in nh_res_bucket_idle_point()
888 nh_res_table_unb_point(const struct nh_res_table *res_table) in nh_res_table_unb_point()
893 static void nh_res_bucket_set_idle(const struct nh_res_table *res_table, in nh_res_bucket_set_idle()
961 static void nexthop_bucket_notify(struct nh_res_table *res_table, in nexthop_bucket_notify()
1194 struct nh_res_table *res_table = rcu_dereference(nhg->res_table); in nexthop_select_path_res()
1417 static bool nh_res_table_is_balanced(const struct nh_res_table *res_table) in nh_res_table_is_balanced()
1443 static bool nh_res_bucket_should_migrate(struct nh_res_table *res_table, in nh_res_bucket_should_migrate()
1501 static bool nh_res_bucket_migrate(struct nh_res_table *res_table, in nh_res_bucket_migrate()
1556 static void nh_res_table_upkeep(struct nh_res_table *res_table, in nh_res_table_upkeep()
1620 struct nh_res_table *res_table; in nh_res_table_upkeep_dw()
1622 res_table = container_of(dw, struct nh_res_table, upkeep_dw); in nh_res_table_upkeep_dw()
1626 static void nh_res_table_cancel_upkeep(struct nh_res_table *res_table) in nh_res_table_cancel_upkeep()
1632 struct nh_res_table *res_table) in nh_res_group_rebalance()
1667 static void nh_res_table_migrate_buckets(struct nh_res_table *res_table, in nh_res_table_migrate_buckets()
1702 struct nh_res_table *old_res_table = rtnl_dereference(oldg->res_table); in replace_nexthop_grp_res()
1824 struct nh_res_table *res_table; in remove_nexthop_group()
1936 struct nh_res_table *tmp_table = NULL; in replace_nexthop_grp()
1937 struct nh_res_table *new_res_table; in replace_nexthop_grp()
1938 struct nh_res_table *old_res_table; in replace_nexthop_grp()
2037 struct nh_res_table *res_table, in replace_nexthop_single_notify_res()
2086 struct nh_res_table *res_table; in replace_nexthop_single_notify()
2327 struct nh_res_table *res_table; in insert_nexthop()
2467 struct nh_res_table *res_table; in nexthop_create_group()
3345 struct nh_res_table *res_table; in rtm_dump_nexthop_bucket_nh()
3505 struct nh_res_table *res_table; in rtm_get_nexthop_bucket()
3671 struct nh_res_table *res_table; in nexthop_bucket_set_hw_flags()
3705 struct nh_res_table *res_table; in nexthop_res_grp_activity_update()