Lines Matching refs:nr_labels
362 unsigned int nr_labels; /* Depth of stack, 0 = no MPLS */ member
635 if (pkt_dev->nr_labels) { in pktgen_if_show()
637 for (i = 0; i < pkt_dev->nr_labels; i++) in pktgen_if_show()
639 i == pkt_dev->nr_labels-1 ? "\n" : ", "); in pktgen_if_show()
897 pkt_dev->nr_labels = 0; in get_labels()
915 pkt_dev->nr_labels = n; in get_labels()
1635 for (n = 0; n < pkt_dev->nr_labels; n++) in pktgen_if_write()
1638 n == pkt_dev->nr_labels-1 ? "" : ","); in pktgen_if_write()
1640 if (pkt_dev->nr_labels && pkt_dev->vlan_id != 0xffff) { in pktgen_if_write()
1662 if (debug && pkt_dev->nr_labels) in pktgen_if_write()
1665 pkt_dev->nr_labels = 0; /* turn off MPLS */ in pktgen_if_write()
1719 if (debug && pkt_dev->nr_labels) in pktgen_if_write()
1722 pkt_dev->nr_labels = 0; /* turn off MPLS */ in pktgen_if_write()
2303 pkt_dev->pkt_overhead += pkt_dev->nr_labels*sizeof(u32); in set_pkt_overhead()
2464 for (i = 0; i < pkt_dev->nr_labels; i++) in mod_cur_headers()
2741 for (i = 0; i < pkt_dev->nr_labels; i++) in mpls_push()
2876 if (pkt_dev->nr_labels) in fill_packet_ipv4()
2899 mpls = skb_put(skb, pkt_dev->nr_labels * sizeof(__u32)); in fill_packet_ipv4()
2900 if (pkt_dev->nr_labels) in fill_packet_ipv4()
3004 if (pkt_dev->nr_labels) in fill_packet_ipv6()
3027 mpls = skb_put(skb, pkt_dev->nr_labels * sizeof(__u32)); in fill_packet_ipv6()
3028 if (pkt_dev->nr_labels) in fill_packet_ipv6()