Searched refs:num_nh (Results 1 - 5 of 5) sorted by relevance

/linux-master/include/net/
H A Dnexthop.h130 u16 num_nh; member in struct:nh_group
139 struct nh_grp_entry nh_entries[] __counted_by(num_nh);
200 u16 num_nh; member in struct:nh_notifier_grp_info
203 struct nh_notifier_grp_entry_info nh_entries[] __counted_by(num_nh);
226 u16 num_nh; member in struct:nh_notifier_grp_hw_stats_info
228 struct nh_notifier_grp_hw_stats_entry_info stats[] __counted_by(num_nh);
327 rc = nh_grp->num_nh;
339 if (nhsel >= nhg->num_nh)
352 for (i = 0; i < nhg->num_nh; i++) {
374 if (nh_grp->num_nh >
[all...]
/linux-master/net/ipv4/
H A Dnexthop.c136 u16 num_nh = nhg->num_nh; local
140 info->nh_grp = kzalloc(struct_size(info->nh_grp, nh_entries, num_nh),
145 info->nh_grp->num_nh = num_nh;
149 for (i = 0; i < num_nh; i++) {
488 for (i = 0; i < nhg->num_nh; ++i) {
548 static struct nh_group *nexthop_grp_alloc(u16 num_nh) argument
552 nhg = kzalloc(struct_size(nhg, nh_entries, num_nh), GFP_KERNEL);
554 nhg->num_nh
2075 int i, num_nh = nhg->num_nh; local
2663 u16 num_nh = nla_len(grps_attr) / sizeof(*entry); local
[all...]
/linux-master/net/mpls/
H A Daf_mpls.c511 static struct mpls_route *mpls_rt_alloc(u8 num_nh, u8 max_alen, u8 max_labels) argument
517 size = sizeof(*rt) + num_nh * nh_size;
525 rt->rt_nhn = num_nh;
526 rt->rt_nhn_alive = num_nh;
/linux-master/drivers/net/netdevsim/
H A Dfib.c1134 for (i = 0; i < info->nh_grp->num_nh; i++)
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c4952 for (i = 0; i < nh_grp->num_nh; i++) {
5188 nhs = info->nh_grp->num_nh;
5655 for (nhi = 0; nhi < info->num_nh; nhi++) {
5682 for (nhi = 0; nhi < info->num_nh; nhi++)
5685 if (WARN_ON_ONCE(nhi == info->num_nh)) {

Completed in 159 milliseconds