Lines Matching refs:max_labels
508 static struct mpls_route *mpls_rt_alloc(u8 num_nh, u8 max_alen, u8 max_labels) in mpls_rt_alloc() argument
510 u8 nh_size = MPLS_NH_SIZE(max_labels, max_alen); in mpls_rt_alloc()
525 rt->rt_via_offset = MPLS_NH_VIA_OFF(max_labels); in mpls_rt_alloc()
799 struct nlattr *newdst, u8 max_labels, in mpls_nh_build() argument
808 err = nla_get_labels(newdst, max_labels, &nh->nh_labels, in mpls_nh_build()
835 u8 *max_labels) in mpls_count_nexthops() argument
841 *max_labels = 0; in mpls_count_nexthops()
866 *max_labels = max_t(u8, *max_labels, n_labels); in mpls_count_nexthops()
883 struct mpls_route *rt, u8 max_labels, in mpls_nh_build_multi() argument
918 max_labels, extack); in mpls_nh_build_multi()
969 u8 max_labels; in mpls_route_add() local
1008 &max_labels); in mpls_route_add()
1011 max_labels = cfg->rc_output_labels; in mpls_route_add()
1021 rt = mpls_rt_alloc(nhs, max_via_alen, max_labels); in mpls_route_add()
1032 err = mpls_nh_build_multi(cfg, rt, max_labels, extack); in mpls_route_add()
1725 int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels, in nla_get_labels() argument
1745 if (nla_labels > max_labels) { in nla_get_labels()