Lines Matching refs:nr_labels
363 unsigned int nr_labels; /* Depth of stack, 0 = no MPLS */ member
636 if (pkt_dev->nr_labels) { in pktgen_if_show()
638 for (i = 0; i < pkt_dev->nr_labels; i++) in pktgen_if_show()
640 i == pkt_dev->nr_labels-1 ? "\n" : ", "); in pktgen_if_show()
898 pkt_dev->nr_labels = 0; in get_labels()
916 pkt_dev->nr_labels = n; in get_labels()
1656 for (n = 0; n < pkt_dev->nr_labels; n++) in pktgen_if_write()
1659 n == pkt_dev->nr_labels-1 ? "" : ","); in pktgen_if_write()
1661 if (pkt_dev->nr_labels && pkt_dev->vlan_id != 0xffff) { in pktgen_if_write()
1683 if (debug && pkt_dev->nr_labels) in pktgen_if_write()
1686 pkt_dev->nr_labels = 0; /* turn off MPLS */ in pktgen_if_write()
1740 if (debug && pkt_dev->nr_labels) in pktgen_if_write()
1743 pkt_dev->nr_labels = 0; /* turn off MPLS */ in pktgen_if_write()
2324 pkt_dev->pkt_overhead += pkt_dev->nr_labels*sizeof(u32); in set_pkt_overhead()
2484 for (i = 0; i < pkt_dev->nr_labels; i++) in mod_cur_headers()
2757 for (i = 0; i < pkt_dev->nr_labels; i++) in mpls_push()
2895 if (pkt_dev->nr_labels) in fill_packet_ipv4()
2918 mpls = skb_put(skb, pkt_dev->nr_labels * sizeof(__u32)); in fill_packet_ipv4()
2919 if (pkt_dev->nr_labels) in fill_packet_ipv4()
3023 if (pkt_dev->nr_labels) in fill_packet_ipv6()
3046 mpls = skb_put(skb, pkt_dev->nr_labels * sizeof(__u32)); in fill_packet_ipv6()
3047 if (pkt_dev->nr_labels) in fill_packet_ipv6()