Lines Matching refs:nh_labels
109 return nh->nh_labels * sizeof(struct mpls_shim_hdr); in mpls_nh_header_size()
444 for (i = nh->nh_labels - 1; i >= 0; i--) { in mpls_forward()
776 nh->nh_labels = cfg->rc_output_labels; in mpls_nh_build_from_cfg()
777 for (i = 0; i < nh->nh_labels; i++) in mpls_nh_build_from_cfg()
808 err = nla_get_labels(newdst, max_labels, &nh->nh_labels, in mpls_nh_build()
2024 if (nh->nh_labels && in mpls_dump_route()
2025 nla_put_labels(skb, RTA_NEWDST, nh->nh_labels, in mpls_dump_route()
2068 if (nh->nh_labels && nla_put_labels(skb, RTA_NEWDST, in mpls_dump_route()
2069 nh->nh_labels, in mpls_dump_route()
2253 if (nh->nh_labels) /* RTA_NEWDST */ in lfib_nlmsg_size()
2254 payload += nla_total_size(nh->nh_labels * 4); in lfib_nlmsg_size()
2266 if (nh->nh_labels) in lfib_nlmsg_size()
2267 nhsize += nla_total_size(nh->nh_labels * 4); in lfib_nlmsg_size()
2497 if (nh->nh_labels && in mpls_getroute()
2498 nla_put_labels(skb, RTA_NEWDST, nh->nh_labels, in mpls_getroute()