Searched refs:nhg_size (Results 1 – 4 of 4) sorted by relevance
201 size_t nhg_count, nhg_size; in dump_nhgrp_sysctl() local224 nhg_size = 16; in dump_nhgrp_sysctl()225 nhg_map = calloc(nhg_size, sizeof(struct nhops_map)); in dump_nhgrp_sysctl()231 if (nhg_count >= nhg_size) { in dump_nhgrp_sysctl()232 nhg_size *= 2; in dump_nhgrp_sysctl()233 nhg_map = realloc(nhg_map, nhg_size * sizeof(struct nhops_map)); in dump_nhgrp_sysctl()
214 get_nhgrp_alloc_size(uint32_t nhg_size, uint32_t num_nhops) in get_nhgrp_alloc_size() argument219 sz += nhg_size * sizeof(struct nhop_object *); in get_nhgrp_alloc_size()301 nhg->nhg_size = nhgrp_size; in alloc_nhgrp()318 compile_nhgrp(nhg_priv, wn, nhg->nhg_size); in alloc_nhgrp()853 sz += sizeof(struct nhgrp_nhop_external) * nhg->nhg_size; in dump_nhgrp_entry()888 nhgc->nhgc_len += sizeof(struct nhgrp_nhop_external) * nhg->nhg_size; in dump_nhgrp_entry()889 nhgc->nhgc_count = nhg->nhg_size; in dump_nhgrp_entry()892 for (int i = 0; i < nhg->nhg_size; i++) { in dump_nhgrp_entry()
61 #define _NHGRP_PRIV(_src) (&(_src)->nhops[(_src)->nhg_size])
272 uint8_t nhg_size; /* dataplain group size */ member284 nh = nhg->nhops[flowid % nhg->nhg_size]; in nhop_select()