Lines Matching refs:nh_labels
109 return nh->nh_labels * sizeof(struct mpls_shim_hdr); in mpls_nh_header_size()
446 for (i = nh->nh_labels - 1; i >= 0; i--) { in mpls_forward()
778 nh->nh_labels = cfg->rc_output_labels; in mpls_nh_build_from_cfg()
779 for (i = 0; i < nh->nh_labels; i++) in mpls_nh_build_from_cfg()
810 err = nla_get_labels(newdst, max_labels, &nh->nh_labels, in mpls_nh_build()
2019 if (nh->nh_labels && in mpls_dump_route()
2020 nla_put_labels(skb, RTA_NEWDST, nh->nh_labels, in mpls_dump_route()
2063 if (nh->nh_labels && nla_put_labels(skb, RTA_NEWDST, in mpls_dump_route()
2064 nh->nh_labels, in mpls_dump_route()
2244 if (nh->nh_labels) /* RTA_NEWDST */ in lfib_nlmsg_size()
2245 payload += nla_total_size(nh->nh_labels * 4); in lfib_nlmsg_size()
2257 if (nh->nh_labels) in lfib_nlmsg_size()
2258 nhsize += nla_total_size(nh->nh_labels * 4); in lfib_nlmsg_size()
2488 if (nh->nh_labels && in mpls_getroute()
2489 nla_put_labels(skb, RTA_NEWDST, nh->nh_labels, in mpls_getroute()