Home
last modified time | relevance | path

Searched refs:nh_weight (Results 1 – 8 of 8) sorted by relevance

/Linux-v4.19/net/decnet/
Ddn_fib.c126 nh->nh_weight != onh->nh_weight || in dn_fib_nh_comp()
178 nh->nh_weight = nhp->rtnh_hops + 1; in dn_fib_get_nhs()
338 nh->nh_weight = 1; in dn_fib_create_info()
468 power += nh->nh_weight; in dn_fib_select_multipath()
469 nh->nh_power = nh->nh_weight; in dn_fib_select_multipath()
Ddn_table.c359 nhp->rtnh_hops = nh->nh_weight - 1; in dn_fib_dump_info()
/Linux-v4.19/net/ipv4/
Dfib_semantics.c272 nh->nh_weight != onh->nh_weight || in nh_comp()
508 nexthop_nh->nh_weight = rtnh->rtnh_hops + 1; in fib_get_nhs()
580 total += nh->nh_weight; in fib_rebalance()
596 w += nexthop_nh->nh_weight; in fib_rebalance()
1172 nh->nh_weight = 1; in fib_create_info()
1383 rtnh->rtnh_hops = nh->nh_weight - 1; in fib_dump_info()
/Linux-v4.19/include/net/
Ddn_fib.h23 int nh_weight; member
Dip6_fib.h133 int nh_weight; member
Dip_fib.h86 int nh_weight; member
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c2574 int nh_weight; member
2743 if (nh->ifindex == ifindex && nh->nh_weight == weight && in mlxsw_sp_nexthop6_group_has_nexthop()
2765 weight = mlxsw_sp_rt6->rt->fib6_nh.nh_weight; in mlxsw_sp_nexthop6_group_cmp()
3185 g = gcd(nh->nh_weight, g); in mlxsw_sp_nexthop_group_normalize()
3187 g = nh->nh_weight; in mlxsw_sp_nexthop_group_normalize()
3195 nh->norm_nh_weight = nh->nh_weight / g; in mlxsw_sp_nexthop_group_normalize()
3576 nh->nh_weight = fib_nh->nh_weight; in mlxsw_sp_nexthop4_init()
3578 nh->nh_weight = 1; in mlxsw_sp_nexthop4_init()
4873 nh->nh_weight = rt->fib6_nh.nh_weight; in mlxsw_sp_nexthop6_init()
/Linux-v4.19/net/ipv6/
Droute.c3071 rt->fib6_nh.nh_weight = 1; in ip6_route_info_create()
3891 total += rt->fib6_nh.nh_weight; in rt6_multipath_total_weight()
3895 total += iter->fib6_nh.nh_weight; in rt6_multipath_total_weight()
3906 *weight += rt->fib6_nh.nh_weight; in rt6_upper_bound_set()
4415 rt->fib6_nh.nh_weight = rtnh->rtnh_hops + 1; in ip6_route_multipath_add()
4650 rtnh->rtnh_hops = rt->fib6_nh.nh_weight - 1; in rt6_add_nexthop()