| /f-stack/freebsd/net/route/ |
| H A D | nhgrp_ctl.c | 140 xmin = wn[0].weight; in calc_min_mpath_slots_fast() 142 total += wn[i].weight; in calc_min_mpath_slots_fast() 143 if ((wn[i].weight - last < xmin) && (wn[i].weight != last)) in calc_min_mpath_slots_fast() 144 xmin = wn[i].weight - last; in calc_min_mpath_slots_fast() 145 last = wn[i].weight; in calc_min_mpath_slots_fast() 151 if ((wn[i].weight % xmin) != 0) in calc_min_mpath_slots_fast() 451 sort_weightened_nhops(wn, num_nhops); in get_nhgrp() 649 struct weightened_nhop wn[2] = {}; in nhgrp_get_addition_group() local 660 wn[0].nh = rnd_add->rnd_nhop; in nhgrp_get_addition_group() 661 wn[0].weight = rnd_add->rnd_weight; in nhgrp_get_addition_group() [all …]
|
| H A D | route_helpers.c | 350 struct weightened_nhop *wn; in rib_decompose_notification() local 361 wn = nhgrp_get_nhops((struct nhgrp_object *)rc->rc_nh_new, &num_nhops); in rib_decompose_notification() 363 rc_new.rc_nh_new = wn[i].nh; in rib_decompose_notification() 364 rc_new.rc_nh_weight = wn[i].weight; in rib_decompose_notification() 371 wn = nhgrp_get_nhops((struct nhgrp_object *)rc->rc_nh_old, &num_nhops); in rib_decompose_notification() 373 rc_new.rc_nh_old = wn[i].nh; in rib_decompose_notification() 374 rc_new.rc_nh_weight = wn[i].weight; in rib_decompose_notification()
|
| H A D | route_ctl.c | 143 struct weightened_nhop *wn; in destroy_rtentry() local 145 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in destroy_rtentry() 146 nh = wn[0].nh; in destroy_rtentry() 974 struct weightened_nhop *wn = NULL, *wn_new; in change_mpath_route() local 980 if (check_info_match_nhop(info, NULL, wn[i].nh)) { in change_mpath_route() 981 nh_orig = wn[i].nh; in change_mpath_route() 1002 if (wn[i].nh == nh_orig) { in change_mpath_route() 1003 wn[i].nh = nh_new; in change_mpath_route() 1346 struct weightened_nhop *wn; in rib_walk_del() local 1350 wn = nhgrp_get_nhops(nhg, &num_nhops); in rib_walk_del() [all …]
|
| H A D | route_var.h | 296 int nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn,
|
| /f-stack/dpdk/drivers/bus/fslmc/qbman/ |
| H A D | qbman_sys.h | 419 wn << SWP_CFG_WN_SHIFT | in qbman_set_swp_cfg() 458 uint8_t wn = CENA_WRITE_ENABLE; in qbman_swp_sys_init() local 460 uint8_t wn = CINH_WRITE_ENABLE; in qbman_swp_sys_init() local 501 reg = qbman_set_swp_cfg(dqrr_size, wn, in qbman_swp_sys_init() 506 reg = qbman_set_swp_cfg(dqrr_size, wn, in qbman_swp_sys_init() 509 reg = qbman_set_swp_cfg(dqrr_size, wn, in qbman_swp_sys_init() 546 uint8_t wn = CENA_WRITE_ENABLE; in qbman_swp_sys_update() local 548 uint8_t wn = CINH_WRITE_ENABLE; in qbman_swp_sys_update() local 552 wn = CINH_WRITE_ENABLE; in qbman_swp_sys_update() 578 reg = qbman_set_swp_cfg(dqrr_size, wn, in qbman_swp_sys_update() [all …]
|
| /f-stack/freebsd/netinet/ |
| H A D | in_fib.c | 199 struct weightened_nhop *wn; in check_urpf() local 201 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in check_urpf() 203 if (check_urpf_nhop(wn[i].nh, flags, src_if) != 0) in check_urpf()
|
| /f-stack/freebsd/netinet6/ |
| H A D | in6_fib.c | 208 struct weightened_nhop *wn; in check_urpf() local 210 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in check_urpf() 212 if (check_urpf_nhop(wn[i].nh, flags, src_if) != 0) in check_urpf()
|
| /f-stack/freebsd/net/ |
| H A D | rtsock.c | 707 struct weightened_nhop *wn; in select_nhop() local 709 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in select_nhop() 711 return (wn[0].nh); in select_nhop() 713 if (match_nhop_gw(wn[i].nh, gw)) in select_nhop() 714 return (wn[i].nh); in select_nhop() 2130 struct weightened_nhop *wn; in sysctl_dumpentry() local 2132 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in sysctl_dumpentry() 2134 error = sysctl_dumpnhop(rt, wn[i].nh, wn[i].weight, w); in sysctl_dumpentry()
|
| /f-stack/lib/ |
| H A D | ff_route.c | 609 struct weightened_nhop *wn; in select_nhop() local 611 wn = nhgrp_get_nhops((struct nhgrp_object *)nh, &num_nhops); in select_nhop() 613 return (wn[0].nh); in select_nhop() 615 if (match_nhop_gw(wn[i].nh, gw)) in select_nhop() 616 return (wn[i].nh); in select_nhop()
|
| /f-stack/dpdk/app/test/ |
| H A D | test_mbuf.c | 1033 unsigned i, n, tref, wn; in test_refcnt_iter() local 1070 for (wn = 0; wn != REFCNT_MAX_TIMEOUT; wn++) { in test_refcnt_iter() 1082 "%u of %u mbufs left free\n", lcore, iter, wn, i, n); in test_refcnt_iter()
|