Lines Matching defs:t0
818 uint32_t t0;
844 t0 = 5;
846 if ((t0 < n_tokens) && (strcmp(tokens[t0], "filter") == 0)) {
849 if (n_tokens < t0 + 10) {
854 if (strcmp(tokens[t0 + 1], "match") == 0)
856 else if (strcmp(tokens[t0 + 1], "mismatch") == 0)
863 if (strcmp(tokens[t0 + 2], "offset") != 0) {
868 if (parser_read_uint32(&p.fltr.key_offset, tokens[t0 + 3]) != 0) {
873 if (strcmp(tokens[t0 + 4], "mask") != 0) {
879 if ((parse_hex_string(tokens[t0 + 5], p.fltr.key_mask, &size) != 0) ||
885 if (strcmp(tokens[t0 + 6], "key") != 0) {
891 if ((parse_hex_string(tokens[t0 + 7], p.fltr.key, &size) != 0) ||
897 if (strcmp(tokens[t0 + 8], "port") != 0) {
902 if (parser_read_uint32(&p.fltr.port_id, tokens[t0 + 9]) != 0) {
908 t0 += 10;
911 if ((t0 < n_tokens) && (strcmp(tokens[t0], "balance") == 0)) {
914 if (n_tokens < t0 + 22) {
920 if (strcmp(tokens[t0 + 1], "offset") != 0) {
925 if (parser_read_uint32(&p.lb.key_offset, tokens[t0 + 2]) != 0) {
930 if (strcmp(tokens[t0 + 3], "mask") != 0) {
936 if (parse_hex_string(tokens[t0 + 4], p.lb.key_mask, &p.lb.key_size) != 0) {
941 if (strcmp(tokens[t0 + 5], "port") != 0) {
947 if (parser_read_uint32(&p.lb.port_id[i], tokens[t0 + 6 + i]) != 0) {
953 t0 += 22;
956 if (t0 < n_tokens) {
1000 uint32_t t0;
1047 t0 = 8;
1048 if ((t0 < n_tokens) && (strcmp(tokens[t0], "balance") == 0)) {
1049 if (n_tokens < t0 + 7) {
1054 if (strcmp(tokens[t0 + 1], "offset") != 0) {
1059 if (parser_read_uint32(&p.lb.key_offset, tokens[t0 + 2]) != 0) {
1064 if (strcmp(tokens[t0 + 3], "mask") != 0) {
1070 if (parse_hex_string(tokens[t0 + 4], p.lb.key_mask, &p.lb.key_size) != 0) {
1075 if (strcmp(tokens[t0 + 5], "outoffset") != 0) {
1080 if (parser_read_uint32(&p.lb.out_offset, tokens[t0 + 6]) != 0) {
1086 t0 += 7;
1089 if ((t0 < n_tokens) && (strcmp(tokens[t0], "meter") == 0)) {
1090 if (n_tokens < t0 + 6) {
1096 if (strcmp(tokens[t0 + 1], "srtcm") == 0)
1098 else if (strcmp(tokens[t0 + 1], "trtcm") == 0)
1106 if (strcmp(tokens[t0 + 2], "tc") != 0) {
1111 if (parser_read_uint32(&p.mtr.n_tc, tokens[t0 + 3]) != 0) {
1116 if (strcmp(tokens[t0 + 4], "stats") != 0) {
1121 if (strcmp(tokens[t0 + 5], "none") == 0) {
1124 } else if (strcmp(tokens[t0 + 5], "pkts") == 0) {
1127 } else if (strcmp(tokens[t0 + 5], "bytes") == 0) {
1130 } else if (strcmp(tokens[t0 + 5], "both") == 0) {
1140 t0 += 6;
1143 if ((t0 < n_tokens) && (strcmp(tokens[t0], "tm") == 0)) {
1144 if (n_tokens < t0 + 5) {
1150 if (strcmp(tokens[t0 + 1], "spp") != 0) {
1156 tokens[t0 + 2]) != 0) {
1162 if (strcmp(tokens[t0 + 3], "pps") != 0) {
1168 tokens[t0 + 4]) != 0) {
1175 t0 += 5;
1178 if ((t0 < n_tokens) && (strcmp(tokens[t0], "encap") == 0)) {
1181 if (n_tokens < t0 + 2) {
1187 if (strcmp(tokens[t0 + 1], "ether") == 0)
1189 else if (strcmp(tokens[t0 + 1], "vlan") == 0)
1191 else if (strcmp(tokens[t0 + 1], "qinq") == 0)
1193 else if (strcmp(tokens[t0 + 1], "mpls") == 0)
1195 else if (strcmp(tokens[t0 + 1], "pppoe") == 0)
1197 else if (strcmp(tokens[t0 + 1], "vxlan") == 0) {
1198 if (n_tokens < t0 + 2 + 5) {
1204 if (strcmp(tokens[t0 + 2], "offset") != 0) {
1211 tokens[t0 + 2 + 1]) != 0) {
1217 if (strcmp(tokens[t0 + 2 + 2], "ipv4") == 0)
1219 else if (strcmp(tokens[t0 + 2 + 2], "ipv6") == 0)
1227 if (strcmp(tokens[t0 + 2 + 3], "vlan") != 0) {
1233 if (strcmp(tokens[t0 + 2 + 4], "on") == 0)
1235 else if (strcmp(tokens[t0 + 2 + 4], "off") == 0)
1245 } else if (strcmp(tokens[t0 + 1], "qinq_pppoe") == 0)
1254 t0 += 2 + n_extra_tokens;
1257 if ((t0 < n_tokens) && (strcmp(tokens[t0], "nat") == 0)) {
1258 if (n_tokens < t0 + 4) {
1264 if (strcmp(tokens[t0 + 1], "src") == 0)
1266 else if (strcmp(tokens[t0 + 1], "dst") == 0)
1274 if (strcmp(tokens[t0 + 2], "proto") != 0) {
1279 if (strcmp(tokens[t0 + 3], "tcp") == 0)
1281 else if (strcmp(tokens[t0 + 3], "udp") == 0)
1290 t0 += 4;
1293 if ((t0 < n_tokens) && (strcmp(tokens[t0], "ttl") == 0)) {
1294 if (n_tokens < t0 + 4) {
1300 if (strcmp(tokens[t0 + 1], "drop") == 0)
1302 else if (strcmp(tokens[t0 + 1], "fwd") == 0)
1310 if (strcmp(tokens[t0 + 2], "stats") != 0) {
1315 if (strcmp(tokens[t0 + 3], "none") == 0)
1317 else if (strcmp(tokens[t0 + 3], "pkts") == 0)
1326 t0 += 4;
1329 if ((t0 < n_tokens) && (strcmp(tokens[t0], "stats") == 0)) {
1330 if (n_tokens < t0 + 2) {
1336 if (strcmp(tokens[t0 + 1], "pkts") == 0) {
1339 } else if (strcmp(tokens[t0 + 1], "bytes") == 0) {
1342 } else if (strcmp(tokens[t0 + 1], "both") == 0) {
1352 t0 += 2;
1355 if ((t0 < n_tokens) && (strcmp(tokens[t0], "time") == 0)) {
1357 t0 += 1;
1360 if ((t0 < n_tokens) && (strcmp(tokens[t0], "sym_crypto") == 0)) {
1363 if (n_tokens < t0 + 5 ||
1364 strcmp(tokens[t0 + 1], "dev") ||
1365 strcmp(tokens[t0 + 3], "offset")) {
1371 cryptodev = cryptodev_find(tokens[t0 + 2]);
1381 tokens[t0 + 4]) != 0) {
1392 t0 += 5;
1395 if ((t0 < n_tokens) && (strcmp(tokens[t0], "tag") == 0)) {
1397 t0 += 1;
1400 if ((t0 < n_tokens) && (strcmp(tokens[t0], "decap") == 0)) {
1402 t0 += 1;
1405 if (t0 < n_tokens) {
1497 uint32_t t0;
1527 t0 = 6;
1529 if (strcmp(tokens[t0], "link") == 0) {
1530 if (n_tokens < t0 + 4) {
1538 p.dev_name = tokens[t0 + 1];
1540 if (strcmp(tokens[t0 + 2], "rxq") != 0) {
1545 if (parser_read_uint16(&p.rxq.queue_id, tokens[t0 + 3]) != 0) {
1550 t0 += 4;
1551 } else if (strcmp(tokens[t0], "swq") == 0) {
1552 if (n_tokens < t0 + 2) {
1560 p.dev_name = tokens[t0 + 1];
1562 t0 += 2;
1563 } else if (strcmp(tokens[t0], "tmgr") == 0) {
1564 if (n_tokens < t0 + 2) {
1572 p.dev_name = tokens[t0 + 1];
1574 t0 += 2;
1575 } else if (strcmp(tokens[t0], "tap") == 0) {
1576 if (n_tokens < t0 + 6) {
1584 p.dev_name = tokens[t0 + 1];
1586 if (strcmp(tokens[t0 + 2], "mempool") != 0) {
1592 p.tap.mempool_name = tokens[t0 + 3];
1594 if (strcmp(tokens[t0 + 4], "mtu") != 0) {
1600 if (parser_read_uint32(&p.tap.mtu, tokens[t0 + 5]) != 0) {
1605 t0 += 6;
1606 } else if (strcmp(tokens[t0], "source") == 0) {
1607 if (n_tokens < t0 + 6) {
1617 if (strcmp(tokens[t0 + 1], "mempool") != 0) {
1623 p.source.mempool_name = tokens[t0 + 2];
1625 if (strcmp(tokens[t0 + 3], "file") != 0) {
1631 p.source.file_name = tokens[t0 + 4];
1633 if (strcmp(tokens[t0 + 5], "bpp") != 0) {
1639 if (parser_read_uint32(&p.source.n_bytes_per_pkt, tokens[t0 + 6]) != 0) {
1645 t0 += 7;
1646 } else if (strcmp(tokens[t0], "cryptodev") == 0) {
1647 if (n_tokens < t0 + 3) {
1655 p.dev_name = tokens[t0 + 1];
1656 if (parser_read_uint16(&p.rxq.queue_id, tokens[t0 + 3]) != 0) {
1665 t0 += 4;
1672 if ((n_tokens > t0) && (strcmp(tokens[t0], "action") == 0)) {
1673 if (n_tokens < t0 + 2) {
1678 p.action_profile_name = tokens[t0 + 1];
1680 t0 += 2;
1684 if ((n_tokens > t0) &&
1685 (strcmp(tokens[t0], "disabled") == 0)) {
1688 t0 += 1;
1691 if (n_tokens != t0) {
1916 uint32_t t0;
1936 t0 = 4;
1937 if (strcmp(tokens[t0], "acl") == 0) {
1938 if (n_tokens < t0 + 6) {
1946 if (strcmp(tokens[t0 + 1], "ipv4") == 0)
1948 else if (strcmp(tokens[t0 + 1], "ipv6") == 0)
1956 if (strcmp(tokens[t0 + 2], "offset") != 0) {
1962 tokens[t0 + 3]) != 0) {
1968 if (strcmp(tokens[t0 + 4], "size") != 0) {
1974 tokens[t0 + 5]) != 0) {
1979 t0 += 6;
1980 } else if (strcmp(tokens[t0], "array") == 0) {
1981 if (n_tokens < t0 + 5) {
1989 if (strcmp(tokens[t0 + 1], "offset") != 0) {
1995 tokens[t0 + 2]) != 0) {
2000 if (strcmp(tokens[t0 + 3], "size") != 0) {
2006 tokens[t0 + 4]) != 0) {
2011 t0 += 5;
2012 } else if (strcmp(tokens[t0], "hash") == 0) {
2015 if (n_tokens < t0 + 12) {
2023 if (strcmp(tokens[t0 + 1], "ext") == 0)
2025 else if (strcmp(tokens[t0 + 1], "lru") == 0)
2033 if (strcmp(tokens[t0 + 2], "key") != 0) {
2039 tokens[t0 + 3]) != 0) ||
2046 if (strcmp(tokens[t0 + 4], "mask") != 0) {
2051 if ((parse_hex_string(tokens[t0 + 5],
2059 if (strcmp(tokens[t0 + 6], "offset") != 0) {
2065 tokens[t0 + 7]) != 0) {
2070 if (strcmp(tokens[t0 + 8], "buckets") != 0) {
2076 tokens[t0 + 9]) != 0) {
2081 if (strcmp(tokens[t0 + 10], "size") != 0) {
2087 tokens[t0 + 11]) != 0) {
2092 t0 += 12;
2093 } else if (strcmp(tokens[t0], "lpm") == 0) {
2094 if (n_tokens < t0 + 6) {
2102 if (strcmp(tokens[t0 + 1], "ipv4") == 0)
2104 else if (strcmp(tokens[t0 + 1], "ipv6") == 0)
2112 if (strcmp(tokens[t0 + 2], "offset") != 0) {
2118 tokens[t0 + 3]) != 0) {
2123 if (strcmp(tokens[t0 + 4], "size") != 0) {
2129 tokens[t0 + 5]) != 0) {
2134 t0 += 6;
2135 } else if (strcmp(tokens[t0], "stub") == 0) {
2138 t0 += 1;
2145 if ((n_tokens > t0) && (strcmp(tokens[t0], "action") == 0)) {
2146 if (n_tokens < t0 + 2) {
2151 p.action_profile_name = tokens[t0 + 1];
2153 t0 += 2;
2156 if (n_tokens > t0) {
4268 uint32_t table_id, t0, n_tokens_parsed;
4298 t0 = 6;
4301 n_tokens_parsed = parse_match(tokens + t0,
4302 n_tokens - t0,
4308 t0 += n_tokens_parsed;
4311 n_tokens_parsed = parse_table_action(tokens + t0,
4312 n_tokens - t0,
4318 t0 += n_tokens_parsed;
4320 if (t0 != n_tokens) {
4569 uint32_t table_id, n_tokens_parsed, t0;
4599 t0 = 6;
4602 n_tokens_parsed = parse_match(tokens + t0,
4603 n_tokens - t0,
4609 t0 += n_tokens_parsed;
4611 if (n_tokens != t0) {
6687 uint32_t n_tokens, n_tokens_parsed, t0;
6708 t0 = 0;
6720 n_tokens_parsed = parse_match(tokens + t0,
6721 n_tokens - t0,
6729 t0 += n_tokens_parsed;
6732 n_tokens_parsed = parse_table_action(tokens + t0,
6733 n_tokens - t0,
6741 t0 += n_tokens_parsed;
6744 if (t0 < n_tokens) {