Home
last modified time | relevance | path

Searched refs:nh_idx_ptr (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/net/route/
H A Dnhgrp.c215 void *nh_ptr, *nh_idx_ptr; in consider_resize() local
225 nh_idx_ptr = NULL; in consider_resize()
228 nh_idx_ptr = malloc(alloc_size, M_NHOP, M_NOWAIT | M_ZERO); in consider_resize()
231 if (nh_ptr == NULL && nh_idx_ptr == NULL) { in consider_resize()
237 nh_ptr, new_nh_buckets, nh_idx_ptr, new_idx_items); in consider_resize()
245 if (nh_idx_ptr != NULL) { in consider_resize()
246 if (bitmask_copy(&ctl->gr_idx_head, nh_idx_ptr, new_idx_items) == 0) in consider_resize()
247 bitmask_swap(&ctl->gr_idx_head, nh_idx_ptr, new_idx_items, &old_idx_ptr); in consider_resize()
H A Dnhop.c239 void *nh_ptr, *nh_idx_ptr; in consider_resize() local
249 nh_idx_ptr = NULL; in consider_resize()
252 nh_idx_ptr = malloc(alloc_size, M_NHOP, M_NOWAIT | M_ZERO); in consider_resize()
255 if (nh_ptr == NULL && nh_idx_ptr == NULL) { in consider_resize()
261 new_nh_buckets, nh_idx_ptr, new_idx_items); in consider_resize()
269 if (nh_idx_ptr != NULL) { in consider_resize()
270 if (bitmask_copy(&ctl->nh_idx_head, nh_idx_ptr, new_idx_items) == 0) in consider_resize()
271 bitmask_swap(&ctl->nh_idx_head, nh_idx_ptr, new_idx_items, &old_idx_ptr); in consider_resize()