Home
last modified time | relevance | path

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

/Linux-v5.4/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.c360 nhp->rtnh_hops = nh->nh_weight - 1; in dn_fib_dump_info()
/Linux-v5.4/include/net/
Ddn_fib.h23 int nh_weight; member
Dip_fib.h445 struct fib_config *cfg, int nh_weight,
518 int nh_weight, u8 rt_family);
/Linux-v5.4/net/ipv4/
Dfib_semantics.c603 struct fib_config *cfg, int nh_weight, in fib_nh_init() argument
630 nh->fib_nh_weight = nh_weight; in fib_nh_init()
1657 int nh_weight, u8 rt_family) in fib_add_nexthop() argument
1667 rtnh->rtnh_hops = nh_weight - 1; in fib_add_nexthop()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c2687 int nh_weight; member
2856 if (nh->ifindex == ifindex && nh->nh_weight == weight && in mlxsw_sp_nexthop6_group_has_nexthop()
3299 g = gcd(nh->nh_weight, g); in mlxsw_sp_nexthop_group_normalize()
3301 g = nh->nh_weight; in mlxsw_sp_nexthop_group_normalize()
3309 nh->norm_nh_weight = nh->nh_weight / g; in mlxsw_sp_nexthop_group_normalize()
3756 nh->nh_weight = fib_nh->fib_nh_weight; in mlxsw_sp_nexthop4_init()
3758 nh->nh_weight = 1; in mlxsw_sp_nexthop4_init()
5101 nh->nh_weight = rt->fib6_nh->fib_nh_weight; in mlxsw_sp_nexthop6_init()