/freebsd/sys/net/route/ |
H A D | nhop_var.h | 82 uint32_t nh_idx; /* nexthop index */ member 96 #define NH_PRIV_END_CMP (__offsetof(struct nhop_priv, nh_idx)) 100 #define NH_IS_LINKED(_nh) ((_nh)->nh_priv->nh_idx != 0)
|
H A D | nhop.c | 160 FIB_RH_LOG(LOG_DEBUG3, rh, "marking nhop %u unlinked", nh_priv->nh_idx); in nhops_destroy_rib() 289 KASSERT((nh_priv->nh_idx == 0), ("nhop index is already allocated")); in link_nhop() 308 nh_priv->nh_idx = idx; in link_nhop() 342 idx = priv_ret->nh_idx; in unlink_nhop() 343 priv_ret->nh_idx = 0; in unlink_nhop()
|
H A D | nhgrp_ctl.c | 91 uint32_t a_idx = w_a->nh->nh_priv->nh_idx; in wn_cmp_idx() 92 uint32_t b_idx = w_b->nh->nh_priv->nh_idx; in wn_cmp_idx() 496 if (wn[i].nh->nh_priv->nh_idx == last_id) { in nhgrp_alloc() 500 last_id = wn[i].nh->nh_priv->nh_idx; in nhgrp_alloc() 818 wn->nh->nh_priv->nh_idx, wn->weight); in nhgrp_print_buf() 879 ext[i].nh_idx = nhg_priv->nhg_nh_weights[i].nh->nh_priv->nh_idx; in dump_nhgrp_entry() 893 ext[i].nh_idx = nhg->nhops[i]->nh_priv->nh_idx; in dump_nhgrp_entry()
|
H A D | fib_algo.c | 182 struct nhop_object **nh_idx; /* nhop idx->ptr array */ member 1106 if ((fd->nh_idx != NULL) && (fd->nh_ref_table != NULL)) { in destroy_fd_instance() 1110 i, fd->nh_idx[i]); in destroy_fd_instance() 1111 nhop_free_any(fd->nh_idx[i]); in destroy_fd_instance() 1114 free(fd->nh_idx, M_RTABLE); in destroy_fd_instance() 1188 fd->nh_idx = malloc(size, M_RTABLE, M_NOWAIT | M_ZERO); in try_setup_fd_instance() 1189 if (fd->nh_idx == NULL) { in try_setup_fd_instance() 1760 return (fd->nh_idx); in fib_get_nhop_array() 1800 fd->nh_idx[idx] = nh; in fib_ref_nhop() 1802 FD_PRINTF(LOG_DEBUG2, fd, " REF nhop %u %p", idx, fd->nh_idx[idx]); in fib_ref_nhop() [all …]
|
H A D | nhop_ctl.c | 880 return (nh->nh_priv->nh_idx); in nhop_get_idx() 1145 snprintf(buf, bufsize, "nh#%d/%s/%s/%s", nh_priv->nh_idx, upper_str, in nhop_print_buf() 1152 snprintf(buf, bufsize, "nh#%d/%s/%s/%s", nh_priv->nh_idx, upper_str, in nhop_print_buf() 1157 snprintf(buf, bufsize, "nh#%d/%s/%s/resolve", nh_priv->nh_idx, upper_str, in nhop_print_buf() 1161 snprintf(buf, bufsize, "nh#%d/%s/%s/????", nh_priv->nh_idx, upper_str, in nhop_print_buf() 1213 pnhe->nh_idx = nh->nh_priv->nh_idx; in dump_nhop_entry()
|
H A D | nhop.h | 239 uint32_t nh_idx; /* Nexthop index */ member 274 uint32_t nh_idx; member
|
H A D | route_helpers.c | 342 uint32_t nh_idx_old = wn_old[idx_old].nh->nh_priv->nh_idx; in decompose_change_notification() 343 uint32_t nh_idx_new = wn_new[idx_new].nh->nh_priv->nh_idx; in decompose_change_notification()
|
/freebsd/usr.bin/netstat/ |
H A D | nhgrp.c | 156 if (ext_dp[sidx].nh_idx == ext_cp[i].nh_idx) in print_nhgroup_entry_sysctl() 162 xo_emit("{t:nh-index/%*lu}", wid_nhidx, ext_cp[i].nh_idx); in print_nhgroup_entry_sysctl() 165 ne = nhop_get(&global_nhop_map, ext_cp[i].nh_idx); in print_nhgroup_entry_sysctl() 305 nhop_map_update(&global_nhop_map, nh->nh_idx, gw_addr, iface_name); in update_global_map()
|
H A D | nhops.c | 250 xo_emit(buffer, nh->nh_idx); in print_nhop_entry_sysctl() 279 nhop_map_update(&global_nhop_map, nh->nh_idx, gw_addr, iface_name); in print_nhop_entry_sysctl() 380 nh_map[nh_count].idx = nh->nh_idx; in dump_nhops_sysctl()
|
/freebsd/sys/contrib/dpdk_rte_lpm/ |
H A D | dpdk_lpm.c | 92 return (rte_ext->nh_idx[nhidx]); in lookup_ptr() 95 return (rte_ext->nh_idx[rte_ext->default_idx]); in lookup_ptr() 356 ext->nh_idx = fib_get_nhop_array(dd->fd); in build_table()
|
H A D | dpdk_lpm6.c | 110 return (rte_ext->nh_idx[nhidx]); in lookup_ptr() 114 return (rte_ext->nh_idx[rte_ext->default_idx]); in lookup_ptr() 418 ext->nh_idx = fib_get_nhop_array(dd->fd); in build_table()
|
H A D | rte_lpm6.h | 27 struct nhop_object **nh_idx; /**< # -> idx mappings */ member
|
H A D | rte_lpm.h | 125 struct nhop_object **nh_idx; /**< # -> idx mappings */ member
|