Lines Matching refs:nhs
838 u8 nhs = 0; in mpls_count_nexthops() local
871 if (nhs == 255) in mpls_count_nexthops()
873 nhs++; in mpls_count_nexthops()
879 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops()
890 u8 nhs = 0; in mpls_nh_build_multi() local
926 nhs++; in mpls_nh_build_multi()
929 rt->rt_nhn = nhs; in mpls_nh_build_multi()
970 u8 nhs; in mpls_route_add() local
1006 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add()
1012 nhs = 1; in mpls_route_add()
1015 if (nhs == 0) { in mpls_route_add()
1021 rt = mpls_rt_alloc(nhs, max_via_alen, max_labels); in mpls_route_add()