Searched refs:max_labels (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/net/mpls/ |
D | af_mpls.c | 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() 800 struct nlattr *newdst, u8 max_labels, in mpls_nh_build() argument 809 err = nla_get_labels(newdst, max_labels, &nh->nh_labels, in mpls_nh_build() 836 u8 *max_labels) in mpls_count_nexthops() argument 842 *max_labels = 0; in mpls_count_nexthops() 867 *max_labels = max_t(u8, *max_labels, n_labels); in mpls_count_nexthops() 884 struct mpls_route *rt, u8 max_labels, in mpls_nh_build_multi() argument 919 max_labels, extack); in mpls_nh_build_multi() [all …]
|
D | internal.h | 206 int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels,
|