Lines Matching refs:max_labels
511 static struct mpls_route *mpls_rt_alloc(u8 num_nh, u8 max_alen, u8 max_labels) in mpls_rt_alloc() argument
513 u8 nh_size = MPLS_NH_SIZE(max_labels, max_alen); in mpls_rt_alloc()
528 rt->rt_via_offset = MPLS_NH_VIA_OFF(max_labels); in mpls_rt_alloc()
802 struct nlattr *newdst, u8 max_labels, in mpls_nh_build() argument
811 err = nla_get_labels(newdst, max_labels, &nh->nh_labels, in mpls_nh_build()
838 u8 *max_labels) in mpls_count_nexthops() argument
844 *max_labels = 0; in mpls_count_nexthops()
869 *max_labels = max_t(u8, *max_labels, n_labels); in mpls_count_nexthops()
886 struct mpls_route *rt, u8 max_labels, in mpls_nh_build_multi() argument
921 max_labels, extack); in mpls_nh_build_multi()
972 u8 max_labels; in mpls_route_add() local
1011 &max_labels); in mpls_route_add()
1014 max_labels = cfg->rc_output_labels; in mpls_route_add()
1023 rt = mpls_rt_alloc(nhs, max_via_alen, max_labels); in mpls_route_add()
1034 err = mpls_nh_build_multi(cfg, rt, max_labels, extack); in mpls_route_add()
1708 int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels, in nla_get_labels() argument
1728 if (nla_labels > max_labels) { in nla_get_labels()