Lines Matching refs:nh_idx
181 struct nhop_object **nh_idx; /* nhop idx->ptr array */ member
1105 if ((fd->nh_idx != NULL) && (fd->nh_ref_table != NULL)) { in destroy_fd_instance()
1109 i, fd->nh_idx[i]); in destroy_fd_instance()
1110 nhop_free_any(fd->nh_idx[i]); in destroy_fd_instance()
1113 free(fd->nh_idx, M_RTABLE); in destroy_fd_instance()
1187 fd->nh_idx = malloc(size, M_RTABLE, M_NOWAIT | M_ZERO); in try_setup_fd_instance()
1188 if (fd->nh_idx == NULL) { in try_setup_fd_instance()
1759 return (fd->nh_idx); in fib_get_nhop_array()
1799 fd->nh_idx[idx] = nh; in fib_ref_nhop()
1801 FD_PRINTF(LOG_DEBUG2, fd, " REF nhop %u %p", idx, fd->nh_idx[idx]); in fib_ref_nhop()
1854 KASSERT((nh == fd->nh_idx[idx]), ("index table contains whong nh")); in fib_unref_nhop()
1858 FD_PRINTF(LOG_DEBUG, fd, " FREE nhop %d %p", idx, fd->nh_idx[idx]); in fib_unref_nhop()
1859 fib_schedule_release_nhop(fd, fd->nh_idx[idx]); in fib_unref_nhop()