Lines Matching refs:bucket_index
294 u16 bucket_index, bool force, in nh_notifier_res_bucket_info_init() argument
312 info->nh_res_bucket->bucket_index = bucket_index; in nh_notifier_res_bucket_info_init()
326 u16 bucket_index, bool force, in __call_nexthop_res_bucket_notifiers() argument
341 err = nh_notifier_res_bucket_info_init(&info, bucket_index, force, in __call_nexthop_res_bucket_notifiers()
378 u16 bucket_index, bool force, in call_nexthop_res_bucket_notifiers() argument
386 return __call_nexthop_res_bucket_notifiers(net, nhg_id, bucket_index, in call_nexthop_res_bucket_notifiers()
915 struct nh_res_bucket *bucket, u16 bucket_index, in nh_fill_res_bucket() argument
943 if (nla_put_u16(skb, NHA_RES_BUCKET_INDEX, bucket_index) || in nh_fill_res_bucket()
962 u16 bucket_index) in nexthop_bucket_notify() argument
964 struct nh_res_bucket *bucket = &res_table->nh_buckets[bucket_index]; in nexthop_bucket_notify()
974 err = nh_fill_res_bucket(skb, nh, bucket, bucket_index, in nexthop_bucket_notify()
1218 u16 bucket_index = hash % res_table->num_nh_buckets; in nexthop_select_path_res() local
1225 bucket = &res_table->nh_buckets[bucket_index]; in nexthop_select_path_res()
1525 u16 bucket_index, bool notify, in nh_res_bucket_migrate() argument
1528 struct nh_res_bucket *bucket = &res_table->nh_buckets[bucket_index]; in nh_res_bucket_migrate()
1550 bucket_index, force, in nh_res_bucket_migrate()
1570 nexthop_bucket_notify(res_table, bucket_index); in nh_res_bucket_migrate()
3338 u16 bucket_index; member
3364 u16 bucket_index; in rtm_dump_nexthop_bucket_nh() local
3369 for (bucket_index = dd->ctx->bucket_index; in rtm_dump_nexthop_bucket_nh()
3370 bucket_index < res_table->num_nh_buckets; in rtm_dump_nexthop_bucket_nh()
3371 bucket_index++) { in rtm_dump_nexthop_bucket_nh()
3375 bucket = &res_table->nh_buckets[bucket_index]; in rtm_dump_nexthop_bucket_nh()
3384 dd->ctx->bucket_index = bucket_index; in rtm_dump_nexthop_bucket_nh()
3385 err = nh_fill_res_bucket(skb, nh, bucket, bucket_index, in rtm_dump_nexthop_bucket_nh()
3393 dd->ctx->bucket_index = 0; in rtm_dump_nexthop_bucket_nh()
3453 u16 *bucket_index, in nh_valid_get_bucket_req_res_bucket() argument
3469 *bucket_index = nla_get_u16(tb[NHA_RES_BUCKET_INDEX]); in nh_valid_get_bucket_req_res_bucket()
3474 u32 *id, u16 *bucket_index, in nh_valid_get_bucket_req() argument
3496 bucket_index, extack); in nh_valid_get_bucket_req()
3512 u16 bucket_index; in rtm_get_nexthop_bucket() local
3516 err = nh_valid_get_bucket_req(nlh, &id, &bucket_index, extack); in rtm_get_nexthop_bucket()
3526 if (bucket_index >= res_table->num_nh_buckets) { in rtm_get_nexthop_bucket()
3535 err = nh_fill_res_bucket(skb, nh, &res_table->nh_buckets[bucket_index], in rtm_get_nexthop_bucket()
3536 bucket_index, RTM_NEWNEXTHOPBUCKET, in rtm_get_nexthop_bucket()
3671 void nexthop_bucket_set_hw_flags(struct net *net, u32 id, u16 bucket_index, in nexthop_bucket_set_hw_flags() argument
3689 if (bucket_index >= nhg->res_table->num_nh_buckets) in nexthop_bucket_set_hw_flags()
3693 bucket = &res_table->nh_buckets[bucket_index]; in nexthop_bucket_set_hw_flags()