Searched refs:nhg_size (Results 1 – 4 of 4) sorted by relevance
204 size_t nhg_count, nhg_size; in dump_nhgrp_sysctl() local227 nhg_size = 16; in dump_nhgrp_sysctl()228 nhg_map = calloc(nhg_size, sizeof(struct nhops_map)); in dump_nhgrp_sysctl()234 if (nhg_count >= nhg_size) { in dump_nhgrp_sysctl()235 nhg_size *= 2; in dump_nhgrp_sysctl()236 nhg_map = realloc(nhg_map, nhg_size * sizeof(struct nhops_map)); in dump_nhgrp_sysctl()
191 get_nhgrp_alloc_size(uint32_t nhg_size, uint32_t num_nhops) in get_nhgrp_alloc_size() argument196 sz += nhg_size * sizeof(struct nhop_object *); in get_nhgrp_alloc_size()275 nhg->nhg_size = nhgrp_size; in alloc_nhgrp()290 compile_nhgrp(nhg_priv, wn, nhg->nhg_size); in alloc_nhgrp()719 sz += sizeof(struct nhgrp_nhop_external) * nhg->nhg_size; in dump_nhgrp_entry()754 nhgc->nhgc_len += sizeof(struct nhgrp_nhop_external) * nhg->nhg_size; in dump_nhgrp_entry()755 nhgc->nhgc_count = nhg->nhg_size; in dump_nhgrp_entry()758 for (int i = 0; i < nhg->nhg_size; i++) { in dump_nhgrp_entry()
61 #define _NHGRP_PRIV(_src) (&(_src)->nhops[(_src)->nhg_size])
259 uint8_t nhg_size; /* dataplain group size */ member271 nh = nhg->nhops[flowid % nhg->nhg_size]; in nhop_select()