Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/net/
H A Dip_fib.h480 struct fib_config *cfg, int nh_weight,
557 int nh_weight, u8 rt_family, u32 nh_tclassid);
/kernel/linux/linux-6.6/include/net/
H A Dip_fib.h530 struct fib_config *cfg, int nh_weight,
607 int nh_weight, u8 rt_family, u32 nh_tclassid);
/kernel/linux/linux-5.10/net/ipv4/
H A Dfib_semantics.c622 struct fib_config *cfg, int nh_weight, in fib_nh_init()
649 nh->fib_nh_weight = nh_weight; in fib_nh_init()
1727 int nh_weight, u8 rt_family, u32 nh_tclassid) in fib_add_nexthop()
1737 rtnh->rtnh_hops = nh_weight - 1; in fib_add_nexthop()
621 fib_nh_init(struct net *net, struct fib_nh *nh, struct fib_config *cfg, int nh_weight, struct netlink_ext_ack *extack) fib_nh_init() argument
1726 fib_add_nexthop(struct sk_buff *skb, const struct fib_nh_common *nhc, int nh_weight, u8 rt_family, u32 nh_tclassid) fib_add_nexthop() argument
/kernel/linux/linux-6.6/net/ipv4/
H A Dfib_semantics.c623 struct fib_config *cfg, int nh_weight, in fib_nh_init()
650 nh->fib_nh_weight = nh_weight; in fib_nh_init()
1708 int nh_weight, u8 rt_family, u32 nh_tclassid) in fib_add_nexthop()
1718 rtnh->rtnh_hops = nh_weight - 1; in fib_add_nexthop()
622 fib_nh_init(struct net *net, struct fib_nh *nh, struct fib_config *cfg, int nh_weight, struct netlink_ext_ack *extack) fib_nh_init() argument
1707 fib_add_nexthop(struct sk_buff *skb, const struct fib_nh_common *nhc, int nh_weight, u8 rt_family, u32 nh_tclassid) fib_add_nexthop() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c2762 int nh_weight; member
2931 if (nh->ifindex == ifindex && nh->nh_weight == weight && in mlxsw_sp_nexthop6_group_has_nexthop()
3354 g = gcd(nh->nh_weight, g); in mlxsw_sp_nexthop_group_normalize()
3356 g = nh->nh_weight; in mlxsw_sp_nexthop_group_normalize()
3364 nh->norm_nh_weight = nh->nh_weight / g; in mlxsw_sp_nexthop_group_normalize()
3884 nh->nh_weight = fib_nh->fib_nh_weight; in mlxsw_sp_nexthop4_init()
3886 nh->nh_weight = 1; in mlxsw_sp_nexthop4_init()
5140 nh->nh_weight = rt->fib6_nh->fib_nh_weight; in mlxsw_sp_nexthop6_init()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c3063 int nh_weight; member
3373 if (nh->ifindex == ifindex && nh->nh_weight == weight && in mlxsw_sp_nexthop6_group_has_nexthop()
3881 g = gcd(nh->nh_weight, g); in mlxsw_sp_nexthop_group_normalize()
3883 g = nh->nh_weight; in mlxsw_sp_nexthop_group_normalize()
3891 nh->norm_nh_weight = nh->nh_weight / g; in mlxsw_sp_nexthop_group_normalize()
4499 nh->nh_weight = fib_nh->fib_nh_weight; in mlxsw_sp_nexthop4_init()
4501 nh->nh_weight = 1; in mlxsw_sp_nexthop4_init()
4993 nh->nh_weight = weight; in mlxsw_sp_nexthop_obj_init()
6731 nh->nh_weight = rt->fib6_nh->fib_nh_weight; in mlxsw_sp_nexthop6_init()

Completed in 34 milliseconds