Lines Matching refs:nh_res_table
151 struct nh_res_table *res_table = rtnl_dereference(nhg->res_table); in nh_notifier_res_table_info_init()
157 size = struct_size(info->nh_res_table, nhs, num_nh_buckets); in nh_notifier_res_table_info_init()
158 info->nh_res_table = __vmalloc(size, GFP_KERNEL | __GFP_ZERO | in nh_notifier_res_table_info_init()
160 if (!info->nh_res_table) in nh_notifier_res_table_info_init()
163 info->nh_res_table->num_nh_buckets = num_nh_buckets; in nh_notifier_res_table_info_init()
172 __nh_notifier_single_info_init(&info->nh_res_table->nhs[i], in nh_notifier_res_table_info_init()
199 vfree(info->nh_res_table); in nh_notifier_grp_info_fini()
255 struct nh_res_table *res_table; in nh_notifier_res_bucket_idle_timer_get()
544 static struct nh_res_table *
548 struct nh_res_table *res_table; in nexthop_res_table_alloc()
621 static clock_t nh_res_table_unbalanced_time(struct nh_res_table *res_table) in nh_res_table_unbalanced_time()
630 struct nh_res_table *res_table = rtnl_dereference(nhg->res_table); in nla_put_nh_group_res()
873 nh_res_bucket_idle_point(const struct nh_res_table *res_table, in nh_res_bucket_idle_point()
887 nh_res_table_unb_point(const struct nh_res_table *res_table) in nh_res_table_unb_point()
892 static void nh_res_bucket_set_idle(const struct nh_res_table *res_table, in nh_res_bucket_set_idle()
960 static void nexthop_bucket_notify(struct nh_res_table *res_table, in nexthop_bucket_notify()
1193 struct nh_res_table *res_table = rcu_dereference(nhg->res_table); in nexthop_select_path_res()
1416 static bool nh_res_table_is_balanced(const struct nh_res_table *res_table) in nh_res_table_is_balanced()
1442 static bool nh_res_bucket_should_migrate(struct nh_res_table *res_table, in nh_res_bucket_should_migrate()
1500 static bool nh_res_bucket_migrate(struct nh_res_table *res_table, in nh_res_bucket_migrate()
1555 static void nh_res_table_upkeep(struct nh_res_table *res_table, in nh_res_table_upkeep()
1619 struct nh_res_table *res_table; in nh_res_table_upkeep_dw()
1621 res_table = container_of(dw, struct nh_res_table, upkeep_dw); in nh_res_table_upkeep_dw()
1625 static void nh_res_table_cancel_upkeep(struct nh_res_table *res_table) in nh_res_table_cancel_upkeep()
1631 struct nh_res_table *res_table) in nh_res_group_rebalance()
1666 static void nh_res_table_migrate_buckets(struct nh_res_table *res_table, in nh_res_table_migrate_buckets()
1701 struct nh_res_table *old_res_table = rtnl_dereference(oldg->res_table); in replace_nexthop_grp_res()
1823 struct nh_res_table *res_table; in remove_nexthop_group()
1917 struct nh_res_table *tmp_table = NULL; in replace_nexthop_grp()
1918 struct nh_res_table *new_res_table; in replace_nexthop_grp()
1919 struct nh_res_table *old_res_table; in replace_nexthop_grp()
2017 struct nh_res_table *res_table, in replace_nexthop_single_notify_res()
2066 struct nh_res_table *res_table; in replace_nexthop_single_notify()
2307 struct nh_res_table *res_table; in insert_nexthop()
2446 struct nh_res_table *res_table; in nexthop_create_group()
3320 struct nh_res_table *res_table; in rtm_dump_nexthop_bucket_nh()
3480 struct nh_res_table *res_table; in rtm_get_nexthop_bucket()
3646 struct nh_res_table *res_table; in nexthop_bucket_set_hw_flags()
3680 struct nh_res_table *res_table; in nexthop_res_grp_activity_update()