Home
last modified time | relevance | path

Searched refs:nh_idx (Results 1 – 14 of 14) sorted by relevance

/f-stack/freebsd/net/route/
H A Dnhop.c157 DPRINTF("Marking nhop %u unlinked", nh_priv->nh_idx); in nhops_destroy_rib()
292 KASSERT((nh_priv->nh_idx == 0), ("nhop index is already allocated")); in link_nhop()
311 nh_priv->nh_idx = idx; in link_nhop()
343 idx = priv_ret->nh_idx; in unlink_nhop()
344 priv_ret->nh_idx = 0; in unlink_nhop()
H A Dnhop_var.h83 uint32_t nh_idx; /* nexthop index */ member
94 #define NH_PRIV_END_CMP (__offsetof(struct nhop_priv, nh_idx))
H A Droute_helpers.c267 nh_idx_old = wn_old[idx_old].nh->nh_priv->nh_idx; in decompose_change_notification()
268 nh_idx_new = wn_new[idx_new].nh->nh_priv->nh_idx; in decompose_change_notification()
290 (wn_old[idx_old + 1].nh->nh_priv->nh_idx > nh_idx_new)) { in decompose_change_notification()
311 (wn_new[idx_new + 1].nh->nh_priv->nh_idx > nh_idx_old)) { in decompose_change_notification()
H A Dfib_algo.c151 struct nhop_object **nh_idx; /* nhop idx->ptr array */ member
835 if ((fd->nh_idx != NULL) && (fd->nh_ref_table != NULL)) { in destroy_fd_instance()
839 i, fd->nh_idx[i]); in destroy_fd_instance()
840 nhop_free_any(fd->nh_idx[i]); in destroy_fd_instance()
843 free(fd->nh_idx, M_RTABLE); in destroy_fd_instance()
912 fd->nh_idx = malloc(size, M_RTABLE, M_NOWAIT | M_ZERO); in try_setup_fd_instance()
913 if (fd->nh_idx == NULL) { in try_setup_fd_instance()
1395 return (fd->nh_idx); in fib_get_nhop_array()
1437 fd->nh_idx[idx] = nh; in fib_ref_nhop()
1439 FD_PRINTF(LOG_DEBUG2, fd, " REF nhop %u %p", idx, fd->nh_idx[idx]); in fib_ref_nhop()
[all …]
H A Dnhop.h190 uint32_t nh_idx; /* Nexthop index */ member
225 uint32_t nh_idx; member
H A Dnhgrp_ctl.c454 if (wn[i].nh->nh_priv->nh_idx == last_id) { in get_nhgrp()
458 last_id = wn[i].nh->nh_priv->nh_idx; in get_nhgrp()
745 ext[i].nh_idx = nhg_priv->nhg_nh_weights[i].nh->nh_priv->nh_idx; in dump_nhgrp_entry()
759 ext[i].nh_idx = nhg->nhops[i]->nh_priv->nh_idx; in dump_nhgrp_entry()
H A Dnhop_ctl.c726 return (nh->nh_priv->nh_idx); in nhop_get_idx()
830 pnhe->nh_idx = nh->nh_priv->nh_idx; in dump_nhop_entry()
/f-stack/tools/netstat/
H A Dnhgrp.c159 if (ext_dp[sidx].nh_idx == ext_cp[i].nh_idx) in print_nhgroup_entry_sysctl()
165 xo_emit("{t:nh-index/%*lu}", wid_nhidx, ext_cp[i].nh_idx); in print_nhgroup_entry_sysctl()
168 ne = nhop_get(&global_nhop_map, ext_cp[i].nh_idx); in print_nhgroup_entry_sysctl()
308 nhop_map_update(&global_nhop_map, nh->nh_idx, gw_addr, iface_name); in update_global_map()
H A Dnhops.c260 xo_emit(buffer, nh->nh_idx); in print_nhop_entry_sysctl()
289 nhop_map_update(&global_nhop_map, nh->nh_idx, gw_addr, iface_name); in print_nhop_entry_sysctl()
388 nh_map[nh_count].idx = nh->nh_idx; in dump_nhops_sysctl()
/f-stack/tools/compat/include/net/route/
H A Dnhop.h190 uint32_t nh_idx; /* Nexthop index */ member
225 uint32_t nh_idx; member
/f-stack/freebsd/contrib/dpdk_rte_lpm/
H A Ddpdk_lpm.c92 return (rte_ext->nh_idx[nhidx]); in lookup_ptr()
95 return (rte_ext->nh_idx[rte_ext->default_idx]); in lookup_ptr()
352 ext->nh_idx = fib_get_nhop_array(dd->fd); in build_table()
H A Drte_lpm6.h27 struct nhop_object **nh_idx; /**< # -> idx mappings */ member
H A Ddpdk_lpm6.c110 return (rte_ext->nh_idx[nhidx]); in lookup_ptr()
114 return (rte_ext->nh_idx[rte_ext->default_idx]); in lookup_ptr()
416 ext->nh_idx = fib_get_nhop_array(dd->fd); in build_table()
H A Drte_lpm.h125 struct nhop_object **nh_idx; /**< # -> idx mappings */ member