Lines Matching refs:nhs
840 u8 nhs = 0; in mpls_count_nexthops() local
873 if (nhs == 255) in mpls_count_nexthops()
875 nhs++; in mpls_count_nexthops()
881 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops()
892 u8 nhs = 0; in mpls_nh_build_multi() local
928 nhs++; in mpls_nh_build_multi()
931 rt->rt_nhn = nhs; in mpls_nh_build_multi()
972 u8 nhs; in mpls_route_add() local
1008 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add()
1014 nhs = 1; in mpls_route_add()
1017 if (nhs == 0) { in mpls_route_add()
1022 rt = mpls_rt_alloc(nhs, max_via_alen, max_labels); in mpls_route_add()