Lines Matching refs:nhs
841 u8 nhs = 0; in mpls_count_nexthops() local
874 if (nhs == 255) in mpls_count_nexthops()
876 nhs++; in mpls_count_nexthops()
882 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops()
893 u8 nhs = 0; in mpls_nh_build_multi() local
929 nhs++; in mpls_nh_build_multi()
932 rt->rt_nhn = nhs; in mpls_nh_build_multi()
973 u8 nhs; in mpls_route_add() local
1009 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add()
1015 nhs = 1; in mpls_route_add()
1018 if (nhs == 0) { in mpls_route_add()
1023 rt = mpls_rt_alloc(nhs, max_via_alen, max_labels); in mpls_route_add()