Lines Matching refs:t0

570 	uint32_t port_id = 0, t0;  in cmd_pipeline_port_in()  local
598 t0 = 5; in cmd_pipeline_port_in()
600 if (strcmp(tokens[t0], "link") == 0) { in cmd_pipeline_port_in()
604 if (n_tokens < t0 + 6) { in cmd_pipeline_port_in()
610 link = link_find(obj, tokens[t0 + 1]); in cmd_pipeline_port_in()
618 if (strcmp(tokens[t0 + 2], "rxq") != 0) { in cmd_pipeline_port_in()
623 if (parser_read_uint16(&params.queue_id, tokens[t0 + 3]) != 0) { in cmd_pipeline_port_in()
629 if (strcmp(tokens[t0 + 4], "bsz") != 0) { in cmd_pipeline_port_in()
634 if (parser_read_uint32(&params.burst_size, tokens[t0 + 5])) { in cmd_pipeline_port_in()
640 t0 += 6; in cmd_pipeline_port_in()
646 } else if (strcmp(tokens[t0], "ring") == 0) { in cmd_pipeline_port_in()
650 if (n_tokens < t0 + 4) { in cmd_pipeline_port_in()
656 ring = ring_find(obj, tokens[t0 + 1]); in cmd_pipeline_port_in()
664 if (strcmp(tokens[t0 + 2], "bsz") != 0) { in cmd_pipeline_port_in()
669 if (parser_read_uint32(&params.burst_size, tokens[t0 + 3])) { in cmd_pipeline_port_in()
675 t0 += 4; in cmd_pipeline_port_in()
681 } else if (strcmp(tokens[t0], "source") == 0) { in cmd_pipeline_port_in()
685 if (n_tokens < t0 + 5) { in cmd_pipeline_port_in()
691 mp = mempool_find(obj, tokens[t0 + 1]); in cmd_pipeline_port_in()
699 params.file_name = tokens[t0 + 2]; in cmd_pipeline_port_in()
701 if (strcmp(tokens[t0 + 3], "loop") != 0) { in cmd_pipeline_port_in()
706 if (parser_read_uint64(&params.n_loops, tokens[t0 + 4])) { in cmd_pipeline_port_in()
712 t0 += 5; in cmd_pipeline_port_in()
718 } else if (strcmp(tokens[t0], "tap") == 0) { in cmd_pipeline_port_in()
723 if (n_tokens < t0 + 8) { in cmd_pipeline_port_in()
729 tap = tap_find(obj, tokens[t0 + 1]); in cmd_pipeline_port_in()
737 if (strcmp(tokens[t0 + 2], "mempool") != 0) { in cmd_pipeline_port_in()
743 mp = mempool_find(obj, tokens[t0 + 3]); in cmd_pipeline_port_in()
751 if (strcmp(tokens[t0 + 4], "mtu") != 0) { in cmd_pipeline_port_in()
757 if (parser_read_uint32(&params.mtu, tokens[t0 + 5]) != 0) { in cmd_pipeline_port_in()
762 if (strcmp(tokens[t0 + 6], "bsz") != 0) { in cmd_pipeline_port_in()
767 if (parser_read_uint32(&params.burst_size, tokens[t0 + 7])) { in cmd_pipeline_port_in()
773 t0 += 8; in cmd_pipeline_port_in()
790 if (n_tokens != t0) { in cmd_pipeline_port_in()
812 uint32_t port_id = 0, t0; in cmd_pipeline_port_out() local
840 t0 = 5; in cmd_pipeline_port_out()
842 if (strcmp(tokens[t0], "link") == 0) { in cmd_pipeline_port_out()
846 if (n_tokens < t0 + 6) { in cmd_pipeline_port_out()
852 link = link_find(obj, tokens[t0 + 1]); in cmd_pipeline_port_out()
860 if (strcmp(tokens[t0 + 2], "txq") != 0) { in cmd_pipeline_port_out()
865 if (parser_read_uint16(&params.queue_id, tokens[t0 + 3]) != 0) { in cmd_pipeline_port_out()
871 if (strcmp(tokens[t0 + 4], "bsz") != 0) { in cmd_pipeline_port_out()
876 if (parser_read_uint32(&params.burst_size, tokens[t0 + 5])) { in cmd_pipeline_port_out()
882 t0 += 6; in cmd_pipeline_port_out()
888 } else if (strcmp(tokens[t0], "ring") == 0) { in cmd_pipeline_port_out()
892 if (n_tokens < t0 + 4) { in cmd_pipeline_port_out()
898 ring = ring_find(obj, tokens[t0 + 1]); in cmd_pipeline_port_out()
906 if (strcmp(tokens[t0 + 2], "bsz") != 0) { in cmd_pipeline_port_out()
911 if (parser_read_uint32(&params.burst_size, tokens[t0 + 3])) { in cmd_pipeline_port_out()
917 t0 += 4; in cmd_pipeline_port_out()
923 } else if (strcmp(tokens[t0], "sink") == 0) { in cmd_pipeline_port_out()
926 params.file_name = strcmp(tokens[t0 + 1], "none") ? in cmd_pipeline_port_out()
927 tokens[t0 + 1] : NULL; in cmd_pipeline_port_out()
929 t0 += 2; in cmd_pipeline_port_out()
935 } else if (strcmp(tokens[t0], "tap") == 0) { in cmd_pipeline_port_out()
939 if (n_tokens < t0 + 4) { in cmd_pipeline_port_out()
945 tap = tap_find(obj, tokens[t0 + 1]); in cmd_pipeline_port_out()
953 if (strcmp(tokens[t0 + 2], "bsz") != 0) { in cmd_pipeline_port_out()
958 if (parser_read_uint32(&params.burst_size, tokens[t0 + 3])) { in cmd_pipeline_port_out()
964 t0 += 4; in cmd_pipeline_port_out()
980 if (n_tokens != t0) { in cmd_pipeline_port_out()