Searched refs:nh_idx (Results 1 - 13 of 13) sorted by relevance

/freebsd-current/sys/net/route/
H A Dnhop_var.h82 uint32_t nh_idx; /* nexthop index */ member in struct:nhop_priv
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 Dnhop.c160 FIB_RH_LOG(LOG_DEBUG3, rh, "marking nhop %u unlinked", nh_priv->nh_idx);
289 KASSERT((nh_priv->nh_idx == 0), ("nhop index is already allocated"));
308 nh_priv->nh_idx = idx;
342 idx = priv_ret->nh_idx;
343 priv_ret->nh_idx = 0;
H A Dnhgrp_ctl.c91 uint32_t a_idx = w_a->nh->nh_priv->nh_idx;
92 uint32_t b_idx = w_b->nh->nh_priv->nh_idx;
496 if (wn[i].nh->nh_priv->nh_idx == last_id) {
500 last_id = wn[i].nh->nh_priv->nh_idx;
818 wn->nh->nh_priv->nh_idx, wn->weight);
879 ext[i].nh_idx = nhg_priv->nhg_nh_weights[i].nh->nh_priv->nh_idx;
893 ext[i].nh_idx = nhg->nhops[i]->nh_priv->nh_idx;
H A Dnhop.h239 uint32_t nh_idx; /* Nexthop index */ member in struct:nhop_external
274 uint32_t nh_idx; member in struct:nhgrp_nhop_external
H A Dfib_algo.c182 struct nhop_object **nh_idx; /* nhop idx->ptr array */ member in struct:fib_data
1106 if ((fd->nh_idx != NULL) && (fd->nh_ref_table != NULL)) {
1110 i, fd->nh_idx[i]);
1111 nhop_free_any(fd->nh_idx[i]);
1114 free(fd->nh_idx, M_RTABLE);
1188 fd->nh_idx = malloc(size, M_RTABLE, M_NOWAIT | M_ZERO);
1189 if (fd->nh_idx == NULL) {
1760 return (fd->nh_idx);
1800 fd->nh_idx[idx] = nh;
1802 FD_PRINTF(LOG_DEBUG2, fd, " REF nhop %u %p", idx, fd->nh_idx[id
[all...]
H A Dnhop_ctl.c880 return (nh->nh_priv->nh_idx);
1145 snprintf(buf, bufsize, "nh#%d/%s/%s/%s", nh_priv->nh_idx, upper_str,
1152 snprintf(buf, bufsize, "nh#%d/%s/%s/%s", nh_priv->nh_idx, upper_str,
1157 snprintf(buf, bufsize, "nh#%d/%s/%s/resolve", nh_priv->nh_idx, upper_str,
1161 snprintf(buf, bufsize, "nh#%d/%s/%s/????", nh_priv->nh_idx, upper_str,
1213 pnhe->nh_idx = nh->nh_priv->nh_idx;
H A Droute_helpers.c342 uint32_t nh_idx_old = wn_old[idx_old].nh->nh_priv->nh_idx;
343 uint32_t nh_idx_new = wn_new[idx_new].nh->nh_priv->nh_idx;
/freebsd-current/sys/contrib/dpdk_rte_lpm/
H A Drte_lpm6.h27 struct nhop_object **nh_idx; /**< # -> idx mappings */ member in struct:rte_lpm6_external
H A Ddpdk_lpm6.c110 return (rte_ext->nh_idx[nhidx]);
114 return (rte_ext->nh_idx[rte_ext->default_idx]);
418 ext->nh_idx = fib_get_nhop_array(dd->fd);
H A Ddpdk_lpm.c92 return (rte_ext->nh_idx[nhidx]);
95 return (rte_ext->nh_idx[rte_ext->default_idx]);
356 ext->nh_idx = fib_get_nhop_array(dd->fd);
H A Drte_lpm.h125 struct nhop_object **nh_idx; /**< # -> idx mappings */ member in struct:rte_lpm_external
/freebsd-current/usr.bin/netstat/
H A Dnhgrp.c157 if (ext_dp[sidx].nh_idx == ext_cp[i].nh_idx)
163 xo_emit("{t:nh-index/%*lu}", wid_nhidx, ext_cp[i].nh_idx);
166 ne = nhop_get(&global_nhop_map, ext_cp[i].nh_idx);
306 nhop_map_update(&global_nhop_map, nh->nh_idx, gw_addr, iface_name);
H A Dnhops.c250 //xo_emit("{t:index/%-lu} ", wid_nhidx, nh->nh_idx);
251 xo_emit(buffer, nh->nh_idx);
280 nhop_map_update(&global_nhop_map, nh->nh_idx, gw_addr, iface_name);
381 nh_map[nh_count].idx = nh->nh_idx;

Completed in 308 milliseconds