Lines Matching refs:t0

878 	uint32_t t0;  in cmd_port_in_action_profile()  local
904 t0 = 5; in cmd_port_in_action_profile()
906 if ((t0 < n_tokens) && (strcmp(tokens[t0], "filter") == 0)) { in cmd_port_in_action_profile()
909 if (n_tokens < t0 + 10) { in cmd_port_in_action_profile()
914 if (strcmp(tokens[t0 + 1], "match") == 0) in cmd_port_in_action_profile()
916 else if (strcmp(tokens[t0 + 1], "mismatch") == 0) in cmd_port_in_action_profile()
923 if (strcmp(tokens[t0 + 2], "offset") != 0) { in cmd_port_in_action_profile()
928 if (parser_read_uint32(&p.fltr.key_offset, tokens[t0 + 3]) != 0) { in cmd_port_in_action_profile()
933 if (strcmp(tokens[t0 + 4], "mask") != 0) { in cmd_port_in_action_profile()
939 if ((parse_hex_string(tokens[t0 + 5], p.fltr.key_mask, &size) != 0) || in cmd_port_in_action_profile()
945 if (strcmp(tokens[t0 + 6], "key") != 0) { in cmd_port_in_action_profile()
951 if ((parse_hex_string(tokens[t0 + 7], p.fltr.key, &size) != 0) || in cmd_port_in_action_profile()
957 if (strcmp(tokens[t0 + 8], "port") != 0) { in cmd_port_in_action_profile()
962 if (parser_read_uint32(&p.fltr.port_id, tokens[t0 + 9]) != 0) { in cmd_port_in_action_profile()
968 t0 += 10; in cmd_port_in_action_profile()
971 if ((t0 < n_tokens) && (strcmp(tokens[t0], "balance") == 0)) { in cmd_port_in_action_profile()
974 if (n_tokens < t0 + 22) { in cmd_port_in_action_profile()
980 if (strcmp(tokens[t0 + 1], "offset") != 0) { in cmd_port_in_action_profile()
985 if (parser_read_uint32(&p.lb.key_offset, tokens[t0 + 2]) != 0) { in cmd_port_in_action_profile()
990 if (strcmp(tokens[t0 + 3], "mask") != 0) { in cmd_port_in_action_profile()
996 if (parse_hex_string(tokens[t0 + 4], p.lb.key_mask, &p.lb.key_size) != 0) { in cmd_port_in_action_profile()
1001 if (strcmp(tokens[t0 + 5], "port") != 0) { in cmd_port_in_action_profile()
1007 if (parser_read_uint32(&p.lb.port_id[i], tokens[t0 + 6 + i]) != 0) { in cmd_port_in_action_profile()
1013 t0 += 22; in cmd_port_in_action_profile()
1016 if (t0 < n_tokens) { in cmd_port_in_action_profile()
1060 uint32_t t0; in cmd_table_action_profile() local
1107 t0 = 8; in cmd_table_action_profile()
1108 if ((t0 < n_tokens) && (strcmp(tokens[t0], "balance") == 0)) { in cmd_table_action_profile()
1109 if (n_tokens < t0 + 7) { in cmd_table_action_profile()
1114 if (strcmp(tokens[t0 + 1], "offset") != 0) { in cmd_table_action_profile()
1119 if (parser_read_uint32(&p.lb.key_offset, tokens[t0 + 2]) != 0) { in cmd_table_action_profile()
1124 if (strcmp(tokens[t0 + 3], "mask") != 0) { in cmd_table_action_profile()
1130 if (parse_hex_string(tokens[t0 + 4], p.lb.key_mask, &p.lb.key_size) != 0) { in cmd_table_action_profile()
1135 if (strcmp(tokens[t0 + 5], "outoffset") != 0) { in cmd_table_action_profile()
1140 if (parser_read_uint32(&p.lb.out_offset, tokens[t0 + 6]) != 0) { in cmd_table_action_profile()
1146 t0 += 7; in cmd_table_action_profile()
1149 if ((t0 < n_tokens) && (strcmp(tokens[t0], "meter") == 0)) { in cmd_table_action_profile()
1150 if (n_tokens < t0 + 6) { in cmd_table_action_profile()
1156 if (strcmp(tokens[t0 + 1], "srtcm") == 0) in cmd_table_action_profile()
1158 else if (strcmp(tokens[t0 + 1], "trtcm") == 0) in cmd_table_action_profile()
1166 if (strcmp(tokens[t0 + 2], "tc") != 0) { in cmd_table_action_profile()
1171 if (parser_read_uint32(&p.mtr.n_tc, tokens[t0 + 3]) != 0) { in cmd_table_action_profile()
1176 if (strcmp(tokens[t0 + 4], "stats") != 0) { in cmd_table_action_profile()
1181 if (strcmp(tokens[t0 + 5], "none") == 0) { in cmd_table_action_profile()
1184 } else if (strcmp(tokens[t0 + 5], "pkts") == 0) { in cmd_table_action_profile()
1187 } else if (strcmp(tokens[t0 + 5], "bytes") == 0) { in cmd_table_action_profile()
1190 } else if (strcmp(tokens[t0 + 5], "both") == 0) { in cmd_table_action_profile()
1200 t0 += 6; in cmd_table_action_profile()
1203 if ((t0 < n_tokens) && (strcmp(tokens[t0], "tm") == 0)) { in cmd_table_action_profile()
1204 if (n_tokens < t0 + 5) { in cmd_table_action_profile()
1210 if (strcmp(tokens[t0 + 1], "spp") != 0) { in cmd_table_action_profile()
1216 tokens[t0 + 2]) != 0) { in cmd_table_action_profile()
1222 if (strcmp(tokens[t0 + 3], "pps") != 0) { in cmd_table_action_profile()
1228 tokens[t0 + 4]) != 0) { in cmd_table_action_profile()
1235 t0 += 5; in cmd_table_action_profile()
1238 if ((t0 < n_tokens) && (strcmp(tokens[t0], "encap") == 0)) { in cmd_table_action_profile()
1241 if (n_tokens < t0 + 2) { in cmd_table_action_profile()
1247 if (strcmp(tokens[t0 + 1], "ether") == 0) in cmd_table_action_profile()
1249 else if (strcmp(tokens[t0 + 1], "vlan") == 0) in cmd_table_action_profile()
1251 else if (strcmp(tokens[t0 + 1], "qinq") == 0) in cmd_table_action_profile()
1253 else if (strcmp(tokens[t0 + 1], "mpls") == 0) in cmd_table_action_profile()
1255 else if (strcmp(tokens[t0 + 1], "pppoe") == 0) in cmd_table_action_profile()
1257 else if (strcmp(tokens[t0 + 1], "vxlan") == 0) { in cmd_table_action_profile()
1258 if (n_tokens < t0 + 2 + 5) { in cmd_table_action_profile()
1264 if (strcmp(tokens[t0 + 2], "offset") != 0) { in cmd_table_action_profile()
1271 tokens[t0 + 2 + 1]) != 0) { in cmd_table_action_profile()
1277 if (strcmp(tokens[t0 + 2 + 2], "ipv4") == 0) in cmd_table_action_profile()
1279 else if (strcmp(tokens[t0 + 2 + 2], "ipv6") == 0) in cmd_table_action_profile()
1287 if (strcmp(tokens[t0 + 2 + 3], "vlan") != 0) { in cmd_table_action_profile()
1293 if (strcmp(tokens[t0 + 2 + 4], "on") == 0) in cmd_table_action_profile()
1295 else if (strcmp(tokens[t0 + 2 + 4], "off") == 0) in cmd_table_action_profile()
1305 } else if (strcmp(tokens[t0 + 1], "qinq_pppoe") == 0) in cmd_table_action_profile()
1314 t0 += 2 + n_extra_tokens; in cmd_table_action_profile()
1317 if ((t0 < n_tokens) && (strcmp(tokens[t0], "nat") == 0)) { in cmd_table_action_profile()
1318 if (n_tokens < t0 + 4) { in cmd_table_action_profile()
1324 if (strcmp(tokens[t0 + 1], "src") == 0) in cmd_table_action_profile()
1326 else if (strcmp(tokens[t0 + 1], "dst") == 0) in cmd_table_action_profile()
1334 if (strcmp(tokens[t0 + 2], "proto") != 0) { in cmd_table_action_profile()
1339 if (strcmp(tokens[t0 + 3], "tcp") == 0) in cmd_table_action_profile()
1341 else if (strcmp(tokens[t0 + 3], "udp") == 0) in cmd_table_action_profile()
1350 t0 += 4; in cmd_table_action_profile()
1353 if ((t0 < n_tokens) && (strcmp(tokens[t0], "ttl") == 0)) { in cmd_table_action_profile()
1354 if (n_tokens < t0 + 4) { in cmd_table_action_profile()
1360 if (strcmp(tokens[t0 + 1], "drop") == 0) in cmd_table_action_profile()
1362 else if (strcmp(tokens[t0 + 1], "fwd") == 0) in cmd_table_action_profile()
1370 if (strcmp(tokens[t0 + 2], "stats") != 0) { in cmd_table_action_profile()
1375 if (strcmp(tokens[t0 + 3], "none") == 0) in cmd_table_action_profile()
1377 else if (strcmp(tokens[t0 + 3], "pkts") == 0) in cmd_table_action_profile()
1386 t0 += 4; in cmd_table_action_profile()
1389 if ((t0 < n_tokens) && (strcmp(tokens[t0], "stats") == 0)) { in cmd_table_action_profile()
1390 if (n_tokens < t0 + 2) { in cmd_table_action_profile()
1396 if (strcmp(tokens[t0 + 1], "pkts") == 0) { in cmd_table_action_profile()
1399 } else if (strcmp(tokens[t0 + 1], "bytes") == 0) { in cmd_table_action_profile()
1402 } else if (strcmp(tokens[t0 + 1], "both") == 0) { in cmd_table_action_profile()
1412 t0 += 2; in cmd_table_action_profile()
1415 if ((t0 < n_tokens) && (strcmp(tokens[t0], "time") == 0)) { in cmd_table_action_profile()
1417 t0 += 1; in cmd_table_action_profile()
1420 if ((t0 < n_tokens) && (strcmp(tokens[t0], "sym_crypto") == 0)) { in cmd_table_action_profile()
1423 if (n_tokens < t0 + 5 || in cmd_table_action_profile()
1424 strcmp(tokens[t0 + 1], "dev") || in cmd_table_action_profile()
1425 strcmp(tokens[t0 + 3], "offset")) { in cmd_table_action_profile()
1431 cryptodev = cryptodev_find(tokens[t0 + 2]); in cmd_table_action_profile()
1441 tokens[t0 + 4]) != 0) { in cmd_table_action_profile()
1452 t0 += 5; in cmd_table_action_profile()
1455 if ((t0 < n_tokens) && (strcmp(tokens[t0], "tag") == 0)) { in cmd_table_action_profile()
1457 t0 += 1; in cmd_table_action_profile()
1460 if ((t0 < n_tokens) && (strcmp(tokens[t0], "decap") == 0)) { in cmd_table_action_profile()
1462 t0 += 1; in cmd_table_action_profile()
1465 if (t0 < n_tokens) { in cmd_table_action_profile()
1558 uint32_t t0; in cmd_pipeline_port_in() local
1588 t0 = 6; in cmd_pipeline_port_in()
1590 if (strcmp(tokens[t0], "link") == 0) { in cmd_pipeline_port_in()
1591 if (n_tokens < t0 + 4) { in cmd_pipeline_port_in()
1599 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1601 if (strcmp(tokens[t0 + 2], "rxq") != 0) { in cmd_pipeline_port_in()
1606 if (parser_read_uint16(&p.rxq.queue_id, tokens[t0 + 3]) != 0) { in cmd_pipeline_port_in()
1611 t0 += 4; in cmd_pipeline_port_in()
1612 } else if (strcmp(tokens[t0], "swq") == 0) { in cmd_pipeline_port_in()
1613 if (n_tokens < t0 + 2) { in cmd_pipeline_port_in()
1621 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1623 t0 += 2; in cmd_pipeline_port_in()
1624 } else if (strcmp(tokens[t0], "tmgr") == 0) { in cmd_pipeline_port_in()
1625 if (n_tokens < t0 + 2) { in cmd_pipeline_port_in()
1633 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1635 t0 += 2; in cmd_pipeline_port_in()
1636 } else if (strcmp(tokens[t0], "tap") == 0) { in cmd_pipeline_port_in()
1637 if (n_tokens < t0 + 6) { in cmd_pipeline_port_in()
1645 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1647 if (strcmp(tokens[t0 + 2], "mempool") != 0) { in cmd_pipeline_port_in()
1653 p.tap.mempool_name = tokens[t0 + 3]; in cmd_pipeline_port_in()
1655 if (strcmp(tokens[t0 + 4], "mtu") != 0) { in cmd_pipeline_port_in()
1661 if (parser_read_uint32(&p.tap.mtu, tokens[t0 + 5]) != 0) { in cmd_pipeline_port_in()
1666 t0 += 6; in cmd_pipeline_port_in()
1667 } else if (strcmp(tokens[t0], "kni") == 0) { in cmd_pipeline_port_in()
1668 if (n_tokens < t0 + 2) { in cmd_pipeline_port_in()
1676 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1678 t0 += 2; in cmd_pipeline_port_in()
1679 } else if (strcmp(tokens[t0], "source") == 0) { in cmd_pipeline_port_in()
1680 if (n_tokens < t0 + 6) { in cmd_pipeline_port_in()
1690 if (strcmp(tokens[t0 + 1], "mempool") != 0) { in cmd_pipeline_port_in()
1696 p.source.mempool_name = tokens[t0 + 2]; in cmd_pipeline_port_in()
1698 if (strcmp(tokens[t0 + 3], "file") != 0) { in cmd_pipeline_port_in()
1704 p.source.file_name = tokens[t0 + 4]; in cmd_pipeline_port_in()
1706 if (strcmp(tokens[t0 + 5], "bpp") != 0) { in cmd_pipeline_port_in()
1712 if (parser_read_uint32(&p.source.n_bytes_per_pkt, tokens[t0 + 6]) != 0) { in cmd_pipeline_port_in()
1718 t0 += 7; in cmd_pipeline_port_in()
1719 } else if (strcmp(tokens[t0], "cryptodev") == 0) { in cmd_pipeline_port_in()
1720 if (n_tokens < t0 + 3) { in cmd_pipeline_port_in()
1728 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1729 if (parser_read_uint16(&p.rxq.queue_id, tokens[t0 + 3]) != 0) { in cmd_pipeline_port_in()
1738 t0 += 4; in cmd_pipeline_port_in()
1745 if ((n_tokens > t0) && (strcmp(tokens[t0], "action") == 0)) { in cmd_pipeline_port_in()
1746 if (n_tokens < t0 + 2) { in cmd_pipeline_port_in()
1751 p.action_profile_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1753 t0 += 2; in cmd_pipeline_port_in()
1757 if ((n_tokens > t0) && in cmd_pipeline_port_in()
1758 (strcmp(tokens[t0], "disabled") == 0)) { in cmd_pipeline_port_in()
1761 t0 += 1; in cmd_pipeline_port_in()
1764 if (n_tokens != t0) { in cmd_pipeline_port_in()
2000 uint32_t t0; in cmd_pipeline_table() local
2020 t0 = 4; in cmd_pipeline_table()
2021 if (strcmp(tokens[t0], "acl") == 0) { in cmd_pipeline_table()
2022 if (n_tokens < t0 + 6) { in cmd_pipeline_table()
2030 if (strcmp(tokens[t0 + 1], "ipv4") == 0) in cmd_pipeline_table()
2032 else if (strcmp(tokens[t0 + 1], "ipv6") == 0) in cmd_pipeline_table()
2040 if (strcmp(tokens[t0 + 2], "offset") != 0) { in cmd_pipeline_table()
2046 tokens[t0 + 3]) != 0) { in cmd_pipeline_table()
2052 if (strcmp(tokens[t0 + 4], "size") != 0) { in cmd_pipeline_table()
2058 tokens[t0 + 5]) != 0) { in cmd_pipeline_table()
2063 t0 += 6; in cmd_pipeline_table()
2064 } else if (strcmp(tokens[t0], "array") == 0) { in cmd_pipeline_table()
2065 if (n_tokens < t0 + 5) { in cmd_pipeline_table()
2073 if (strcmp(tokens[t0 + 1], "offset") != 0) { in cmd_pipeline_table()
2079 tokens[t0 + 2]) != 0) { in cmd_pipeline_table()
2084 if (strcmp(tokens[t0 + 3], "size") != 0) { in cmd_pipeline_table()
2090 tokens[t0 + 4]) != 0) { in cmd_pipeline_table()
2095 t0 += 5; in cmd_pipeline_table()
2096 } else if (strcmp(tokens[t0], "hash") == 0) { in cmd_pipeline_table()
2099 if (n_tokens < t0 + 12) { in cmd_pipeline_table()
2107 if (strcmp(tokens[t0 + 1], "ext") == 0) in cmd_pipeline_table()
2109 else if (strcmp(tokens[t0 + 1], "lru") == 0) in cmd_pipeline_table()
2117 if (strcmp(tokens[t0 + 2], "key") != 0) { in cmd_pipeline_table()
2123 tokens[t0 + 3]) != 0) || in cmd_pipeline_table()
2130 if (strcmp(tokens[t0 + 4], "mask") != 0) { in cmd_pipeline_table()
2135 if ((parse_hex_string(tokens[t0 + 5], in cmd_pipeline_table()
2143 if (strcmp(tokens[t0 + 6], "offset") != 0) { in cmd_pipeline_table()
2149 tokens[t0 + 7]) != 0) { in cmd_pipeline_table()
2154 if (strcmp(tokens[t0 + 8], "buckets") != 0) { in cmd_pipeline_table()
2160 tokens[t0 + 9]) != 0) { in cmd_pipeline_table()
2165 if (strcmp(tokens[t0 + 10], "size") != 0) { in cmd_pipeline_table()
2171 tokens[t0 + 11]) != 0) { in cmd_pipeline_table()
2176 t0 += 12; in cmd_pipeline_table()
2177 } else if (strcmp(tokens[t0], "lpm") == 0) { in cmd_pipeline_table()
2178 if (n_tokens < t0 + 6) { in cmd_pipeline_table()
2186 if (strcmp(tokens[t0 + 1], "ipv4") == 0) in cmd_pipeline_table()
2188 else if (strcmp(tokens[t0 + 1], "ipv6") == 0) in cmd_pipeline_table()
2196 if (strcmp(tokens[t0 + 2], "offset") != 0) { in cmd_pipeline_table()
2202 tokens[t0 + 3]) != 0) { in cmd_pipeline_table()
2207 if (strcmp(tokens[t0 + 4], "size") != 0) { in cmd_pipeline_table()
2213 tokens[t0 + 5]) != 0) { in cmd_pipeline_table()
2218 t0 += 6; in cmd_pipeline_table()
2219 } else if (strcmp(tokens[t0], "stub") == 0) { in cmd_pipeline_table()
2222 t0 += 1; in cmd_pipeline_table()
2229 if ((n_tokens > t0) && (strcmp(tokens[t0], "action") == 0)) { in cmd_pipeline_table()
2230 if (n_tokens < t0 + 2) { in cmd_pipeline_table()
2235 p.action_profile_name = tokens[t0 + 1]; in cmd_pipeline_table()
2237 t0 += 2; in cmd_pipeline_table()
2240 if (n_tokens > t0) { in cmd_pipeline_table()
4352 uint32_t table_id, t0, n_tokens_parsed; in cmd_pipeline_table_rule_add() local
4382 t0 = 6; in cmd_pipeline_table_rule_add()
4385 n_tokens_parsed = parse_match(tokens + t0, in cmd_pipeline_table_rule_add()
4386 n_tokens - t0, in cmd_pipeline_table_rule_add()
4392 t0 += n_tokens_parsed; in cmd_pipeline_table_rule_add()
4395 n_tokens_parsed = parse_table_action(tokens + t0, in cmd_pipeline_table_rule_add()
4396 n_tokens - t0, in cmd_pipeline_table_rule_add()
4402 t0 += n_tokens_parsed; in cmd_pipeline_table_rule_add()
4404 if (t0 != n_tokens) { in cmd_pipeline_table_rule_add()
4653 uint32_t table_id, n_tokens_parsed, t0; in cmd_pipeline_table_rule_delete() local
4683 t0 = 6; in cmd_pipeline_table_rule_delete()
4686 n_tokens_parsed = parse_match(tokens + t0, in cmd_pipeline_table_rule_delete()
4687 n_tokens - t0, in cmd_pipeline_table_rule_delete()
4693 t0 += n_tokens_parsed; in cmd_pipeline_table_rule_delete()
4695 if (n_tokens != t0) { in cmd_pipeline_table_rule_delete()
6791 uint32_t n_tokens, n_tokens_parsed, t0; in cli_rule_file_process() local
6812 t0 = 0; in cli_rule_file_process()
6824 n_tokens_parsed = parse_match(tokens + t0, in cli_rule_file_process()
6825 n_tokens - t0, in cli_rule_file_process()
6833 t0 += n_tokens_parsed; in cli_rule_file_process()
6836 n_tokens_parsed = parse_table_action(tokens + t0, in cli_rule_file_process()
6837 n_tokens - t0, in cli_rule_file_process()
6845 t0 += n_tokens_parsed; in cli_rule_file_process()
6848 if (t0 < n_tokens) { in cli_rule_file_process()