Lines Matching refs:t0
880 uint32_t t0; in cmd_port_in_action_profile() local
906 t0 = 5; in cmd_port_in_action_profile()
908 if ((t0 < n_tokens) && (strcmp(tokens[t0], "filter") == 0)) { in cmd_port_in_action_profile()
911 if (n_tokens < t0 + 10) { in cmd_port_in_action_profile()
916 if (strcmp(tokens[t0 + 1], "match") == 0) in cmd_port_in_action_profile()
918 else if (strcmp(tokens[t0 + 1], "mismatch") == 0) in cmd_port_in_action_profile()
925 if (strcmp(tokens[t0 + 2], "offset") != 0) { in cmd_port_in_action_profile()
930 if (parser_read_uint32(&p.fltr.key_offset, tokens[t0 + 3]) != 0) { in cmd_port_in_action_profile()
935 if (strcmp(tokens[t0 + 4], "mask") != 0) { in cmd_port_in_action_profile()
941 if ((parse_hex_string(tokens[t0 + 5], p.fltr.key_mask, &size) != 0) || in cmd_port_in_action_profile()
947 if (strcmp(tokens[t0 + 6], "key") != 0) { in cmd_port_in_action_profile()
953 if ((parse_hex_string(tokens[t0 + 7], p.fltr.key, &size) != 0) || in cmd_port_in_action_profile()
959 if (strcmp(tokens[t0 + 8], "port") != 0) { in cmd_port_in_action_profile()
964 if (parser_read_uint32(&p.fltr.port_id, tokens[t0 + 9]) != 0) { in cmd_port_in_action_profile()
970 t0 += 10; in cmd_port_in_action_profile()
973 if ((t0 < n_tokens) && (strcmp(tokens[t0], "balance") == 0)) { in cmd_port_in_action_profile()
976 if (n_tokens < t0 + 22) { in cmd_port_in_action_profile()
982 if (strcmp(tokens[t0 + 1], "offset") != 0) { in cmd_port_in_action_profile()
987 if (parser_read_uint32(&p.lb.key_offset, tokens[t0 + 2]) != 0) { in cmd_port_in_action_profile()
992 if (strcmp(tokens[t0 + 3], "mask") != 0) { in cmd_port_in_action_profile()
998 if (parse_hex_string(tokens[t0 + 4], p.lb.key_mask, &p.lb.key_size) != 0) { in cmd_port_in_action_profile()
1003 if (strcmp(tokens[t0 + 5], "port") != 0) { in cmd_port_in_action_profile()
1009 if (parser_read_uint32(&p.lb.port_id[i], tokens[t0 + 6 + i]) != 0) { in cmd_port_in_action_profile()
1015 t0 += 22; in cmd_port_in_action_profile()
1018 if (t0 < n_tokens) { in cmd_port_in_action_profile()
1062 uint32_t t0; in cmd_table_action_profile() local
1109 t0 = 8; in cmd_table_action_profile()
1110 if ((t0 < n_tokens) && (strcmp(tokens[t0], "balance") == 0)) { in cmd_table_action_profile()
1111 if (n_tokens < t0 + 7) { in cmd_table_action_profile()
1116 if (strcmp(tokens[t0 + 1], "offset") != 0) { in cmd_table_action_profile()
1121 if (parser_read_uint32(&p.lb.key_offset, tokens[t0 + 2]) != 0) { in cmd_table_action_profile()
1126 if (strcmp(tokens[t0 + 3], "mask") != 0) { in cmd_table_action_profile()
1132 if (parse_hex_string(tokens[t0 + 4], p.lb.key_mask, &p.lb.key_size) != 0) { in cmd_table_action_profile()
1137 if (strcmp(tokens[t0 + 5], "outoffset") != 0) { in cmd_table_action_profile()
1142 if (parser_read_uint32(&p.lb.out_offset, tokens[t0 + 6]) != 0) { in cmd_table_action_profile()
1148 t0 += 7; in cmd_table_action_profile()
1151 if ((t0 < n_tokens) && (strcmp(tokens[t0], "meter") == 0)) { in cmd_table_action_profile()
1152 if (n_tokens < t0 + 6) { in cmd_table_action_profile()
1158 if (strcmp(tokens[t0 + 1], "srtcm") == 0) in cmd_table_action_profile()
1160 else if (strcmp(tokens[t0 + 1], "trtcm") == 0) in cmd_table_action_profile()
1168 if (strcmp(tokens[t0 + 2], "tc") != 0) { in cmd_table_action_profile()
1173 if (parser_read_uint32(&p.mtr.n_tc, tokens[t0 + 3]) != 0) { in cmd_table_action_profile()
1178 if (strcmp(tokens[t0 + 4], "stats") != 0) { in cmd_table_action_profile()
1183 if (strcmp(tokens[t0 + 5], "none") == 0) { in cmd_table_action_profile()
1186 } else if (strcmp(tokens[t0 + 5], "pkts") == 0) { in cmd_table_action_profile()
1189 } else if (strcmp(tokens[t0 + 5], "bytes") == 0) { in cmd_table_action_profile()
1192 } else if (strcmp(tokens[t0 + 5], "both") == 0) { in cmd_table_action_profile()
1202 t0 += 6; in cmd_table_action_profile()
1205 if ((t0 < n_tokens) && (strcmp(tokens[t0], "tm") == 0)) { in cmd_table_action_profile()
1206 if (n_tokens < t0 + 5) { in cmd_table_action_profile()
1212 if (strcmp(tokens[t0 + 1], "spp") != 0) { in cmd_table_action_profile()
1218 tokens[t0 + 2]) != 0) { in cmd_table_action_profile()
1224 if (strcmp(tokens[t0 + 3], "pps") != 0) { in cmd_table_action_profile()
1230 tokens[t0 + 4]) != 0) { in cmd_table_action_profile()
1237 t0 += 5; in cmd_table_action_profile()
1240 if ((t0 < n_tokens) && (strcmp(tokens[t0], "encap") == 0)) { in cmd_table_action_profile()
1243 if (n_tokens < t0 + 2) { in cmd_table_action_profile()
1249 if (strcmp(tokens[t0 + 1], "ether") == 0) in cmd_table_action_profile()
1251 else if (strcmp(tokens[t0 + 1], "vlan") == 0) in cmd_table_action_profile()
1253 else if (strcmp(tokens[t0 + 1], "qinq") == 0) in cmd_table_action_profile()
1255 else if (strcmp(tokens[t0 + 1], "mpls") == 0) in cmd_table_action_profile()
1257 else if (strcmp(tokens[t0 + 1], "pppoe") == 0) in cmd_table_action_profile()
1259 else if (strcmp(tokens[t0 + 1], "vxlan") == 0) { in cmd_table_action_profile()
1260 if (n_tokens < t0 + 2 + 5) { in cmd_table_action_profile()
1266 if (strcmp(tokens[t0 + 2], "offset") != 0) { in cmd_table_action_profile()
1273 tokens[t0 + 2 + 1]) != 0) { in cmd_table_action_profile()
1279 if (strcmp(tokens[t0 + 2 + 2], "ipv4") == 0) in cmd_table_action_profile()
1281 else if (strcmp(tokens[t0 + 2 + 2], "ipv6") == 0) in cmd_table_action_profile()
1289 if (strcmp(tokens[t0 + 2 + 3], "vlan") != 0) { in cmd_table_action_profile()
1295 if (strcmp(tokens[t0 + 2 + 4], "on") == 0) in cmd_table_action_profile()
1297 else if (strcmp(tokens[t0 + 2 + 4], "off") == 0) in cmd_table_action_profile()
1307 } else if (strcmp(tokens[t0 + 1], "qinq_pppoe") == 0) in cmd_table_action_profile()
1316 t0 += 2 + n_extra_tokens; in cmd_table_action_profile()
1319 if ((t0 < n_tokens) && (strcmp(tokens[t0], "nat") == 0)) { in cmd_table_action_profile()
1320 if (n_tokens < t0 + 4) { in cmd_table_action_profile()
1326 if (strcmp(tokens[t0 + 1], "src") == 0) in cmd_table_action_profile()
1328 else if (strcmp(tokens[t0 + 1], "dst") == 0) in cmd_table_action_profile()
1336 if (strcmp(tokens[t0 + 2], "proto") != 0) { in cmd_table_action_profile()
1341 if (strcmp(tokens[t0 + 3], "tcp") == 0) in cmd_table_action_profile()
1343 else if (strcmp(tokens[t0 + 3], "udp") == 0) in cmd_table_action_profile()
1352 t0 += 4; in cmd_table_action_profile()
1355 if ((t0 < n_tokens) && (strcmp(tokens[t0], "ttl") == 0)) { in cmd_table_action_profile()
1356 if (n_tokens < t0 + 4) { in cmd_table_action_profile()
1362 if (strcmp(tokens[t0 + 1], "drop") == 0) in cmd_table_action_profile()
1364 else if (strcmp(tokens[t0 + 1], "fwd") == 0) in cmd_table_action_profile()
1372 if (strcmp(tokens[t0 + 2], "stats") != 0) { in cmd_table_action_profile()
1377 if (strcmp(tokens[t0 + 3], "none") == 0) in cmd_table_action_profile()
1379 else if (strcmp(tokens[t0 + 3], "pkts") == 0) in cmd_table_action_profile()
1388 t0 += 4; in cmd_table_action_profile()
1391 if ((t0 < n_tokens) && (strcmp(tokens[t0], "stats") == 0)) { in cmd_table_action_profile()
1392 if (n_tokens < t0 + 2) { in cmd_table_action_profile()
1398 if (strcmp(tokens[t0 + 1], "pkts") == 0) { in cmd_table_action_profile()
1401 } else if (strcmp(tokens[t0 + 1], "bytes") == 0) { in cmd_table_action_profile()
1404 } else if (strcmp(tokens[t0 + 1], "both") == 0) { in cmd_table_action_profile()
1414 t0 += 2; in cmd_table_action_profile()
1417 if ((t0 < n_tokens) && (strcmp(tokens[t0], "time") == 0)) { in cmd_table_action_profile()
1419 t0 += 1; in cmd_table_action_profile()
1422 if ((t0 < n_tokens) && (strcmp(tokens[t0], "sym_crypto") == 0)) { in cmd_table_action_profile()
1425 if (n_tokens < t0 + 5 || in cmd_table_action_profile()
1426 strcmp(tokens[t0 + 1], "dev") || in cmd_table_action_profile()
1427 strcmp(tokens[t0 + 3], "offset")) { in cmd_table_action_profile()
1433 cryptodev = cryptodev_find(tokens[t0 + 2]); in cmd_table_action_profile()
1443 tokens[t0 + 4]) != 0) { in cmd_table_action_profile()
1454 t0 += 5; in cmd_table_action_profile()
1457 if ((t0 < n_tokens) && (strcmp(tokens[t0], "tag") == 0)) { in cmd_table_action_profile()
1459 t0 += 1; in cmd_table_action_profile()
1462 if ((t0 < n_tokens) && (strcmp(tokens[t0], "decap") == 0)) { in cmd_table_action_profile()
1464 t0 += 1; in cmd_table_action_profile()
1467 if (t0 < n_tokens) { in cmd_table_action_profile()
1560 uint32_t t0; in cmd_pipeline_port_in() local
1590 t0 = 6; in cmd_pipeline_port_in()
1592 if (strcmp(tokens[t0], "link") == 0) { in cmd_pipeline_port_in()
1593 if (n_tokens < t0 + 4) { in cmd_pipeline_port_in()
1601 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1603 if (strcmp(tokens[t0 + 2], "rxq") != 0) { in cmd_pipeline_port_in()
1608 if (parser_read_uint16(&p.rxq.queue_id, tokens[t0 + 3]) != 0) { in cmd_pipeline_port_in()
1613 t0 += 4; in cmd_pipeline_port_in()
1614 } else if (strcmp(tokens[t0], "swq") == 0) { in cmd_pipeline_port_in()
1615 if (n_tokens < t0 + 2) { in cmd_pipeline_port_in()
1623 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1625 t0 += 2; in cmd_pipeline_port_in()
1626 } else if (strcmp(tokens[t0], "tmgr") == 0) { in cmd_pipeline_port_in()
1627 if (n_tokens < t0 + 2) { in cmd_pipeline_port_in()
1635 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1637 t0 += 2; in cmd_pipeline_port_in()
1638 } else if (strcmp(tokens[t0], "tap") == 0) { in cmd_pipeline_port_in()
1639 if (n_tokens < t0 + 6) { in cmd_pipeline_port_in()
1647 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1649 if (strcmp(tokens[t0 + 2], "mempool") != 0) { in cmd_pipeline_port_in()
1655 p.tap.mempool_name = tokens[t0 + 3]; in cmd_pipeline_port_in()
1657 if (strcmp(tokens[t0 + 4], "mtu") != 0) { in cmd_pipeline_port_in()
1663 if (parser_read_uint32(&p.tap.mtu, tokens[t0 + 5]) != 0) { in cmd_pipeline_port_in()
1668 t0 += 6; in cmd_pipeline_port_in()
1669 } else if (strcmp(tokens[t0], "kni") == 0) { in cmd_pipeline_port_in()
1670 if (n_tokens < t0 + 2) { in cmd_pipeline_port_in()
1678 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1680 t0 += 2; in cmd_pipeline_port_in()
1681 } else if (strcmp(tokens[t0], "source") == 0) { in cmd_pipeline_port_in()
1682 if (n_tokens < t0 + 6) { in cmd_pipeline_port_in()
1692 if (strcmp(tokens[t0 + 1], "mempool") != 0) { in cmd_pipeline_port_in()
1698 p.source.mempool_name = tokens[t0 + 2]; in cmd_pipeline_port_in()
1700 if (strcmp(tokens[t0 + 3], "file") != 0) { in cmd_pipeline_port_in()
1706 p.source.file_name = tokens[t0 + 4]; in cmd_pipeline_port_in()
1708 if (strcmp(tokens[t0 + 5], "bpp") != 0) { in cmd_pipeline_port_in()
1714 if (parser_read_uint32(&p.source.n_bytes_per_pkt, tokens[t0 + 6]) != 0) { in cmd_pipeline_port_in()
1720 t0 += 7; in cmd_pipeline_port_in()
1721 } else if (strcmp(tokens[t0], "cryptodev") == 0) { in cmd_pipeline_port_in()
1722 if (n_tokens < t0 + 3) { in cmd_pipeline_port_in()
1730 p.dev_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1731 if (parser_read_uint16(&p.rxq.queue_id, tokens[t0 + 3]) != 0) { in cmd_pipeline_port_in()
1740 t0 += 4; in cmd_pipeline_port_in()
1747 if ((n_tokens > t0) && (strcmp(tokens[t0], "action") == 0)) { in cmd_pipeline_port_in()
1748 if (n_tokens < t0 + 2) { in cmd_pipeline_port_in()
1753 p.action_profile_name = tokens[t0 + 1]; in cmd_pipeline_port_in()
1755 t0 += 2; in cmd_pipeline_port_in()
1759 if ((n_tokens > t0) && in cmd_pipeline_port_in()
1760 (strcmp(tokens[t0], "disabled") == 0)) { in cmd_pipeline_port_in()
1763 t0 += 1; in cmd_pipeline_port_in()
1766 if (n_tokens != t0) { in cmd_pipeline_port_in()
2002 uint32_t t0; in cmd_pipeline_table() local
2022 t0 = 4; in cmd_pipeline_table()
2023 if (strcmp(tokens[t0], "acl") == 0) { in cmd_pipeline_table()
2024 if (n_tokens < t0 + 6) { in cmd_pipeline_table()
2032 if (strcmp(tokens[t0 + 1], "ipv4") == 0) in cmd_pipeline_table()
2034 else if (strcmp(tokens[t0 + 1], "ipv6") == 0) in cmd_pipeline_table()
2042 if (strcmp(tokens[t0 + 2], "offset") != 0) { in cmd_pipeline_table()
2048 tokens[t0 + 3]) != 0) { in cmd_pipeline_table()
2054 if (strcmp(tokens[t0 + 4], "size") != 0) { in cmd_pipeline_table()
2060 tokens[t0 + 5]) != 0) { in cmd_pipeline_table()
2065 t0 += 6; in cmd_pipeline_table()
2066 } else if (strcmp(tokens[t0], "array") == 0) { in cmd_pipeline_table()
2067 if (n_tokens < t0 + 5) { in cmd_pipeline_table()
2075 if (strcmp(tokens[t0 + 1], "offset") != 0) { in cmd_pipeline_table()
2081 tokens[t0 + 2]) != 0) { in cmd_pipeline_table()
2086 if (strcmp(tokens[t0 + 3], "size") != 0) { in cmd_pipeline_table()
2092 tokens[t0 + 4]) != 0) { in cmd_pipeline_table()
2097 t0 += 5; in cmd_pipeline_table()
2098 } else if (strcmp(tokens[t0], "hash") == 0) { in cmd_pipeline_table()
2101 if (n_tokens < t0 + 12) { in cmd_pipeline_table()
2109 if (strcmp(tokens[t0 + 1], "ext") == 0) in cmd_pipeline_table()
2111 else if (strcmp(tokens[t0 + 1], "lru") == 0) in cmd_pipeline_table()
2119 if (strcmp(tokens[t0 + 2], "key") != 0) { in cmd_pipeline_table()
2125 tokens[t0 + 3]) != 0) || in cmd_pipeline_table()
2132 if (strcmp(tokens[t0 + 4], "mask") != 0) { in cmd_pipeline_table()
2137 if ((parse_hex_string(tokens[t0 + 5], in cmd_pipeline_table()
2145 if (strcmp(tokens[t0 + 6], "offset") != 0) { in cmd_pipeline_table()
2151 tokens[t0 + 7]) != 0) { in cmd_pipeline_table()
2156 if (strcmp(tokens[t0 + 8], "buckets") != 0) { in cmd_pipeline_table()
2162 tokens[t0 + 9]) != 0) { in cmd_pipeline_table()
2167 if (strcmp(tokens[t0 + 10], "size") != 0) { in cmd_pipeline_table()
2173 tokens[t0 + 11]) != 0) { in cmd_pipeline_table()
2178 t0 += 12; in cmd_pipeline_table()
2179 } else if (strcmp(tokens[t0], "lpm") == 0) { in cmd_pipeline_table()
2180 if (n_tokens < t0 + 6) { in cmd_pipeline_table()
2188 if (strcmp(tokens[t0 + 1], "ipv4") == 0) in cmd_pipeline_table()
2190 else if (strcmp(tokens[t0 + 1], "ipv6") == 0) in cmd_pipeline_table()
2198 if (strcmp(tokens[t0 + 2], "offset") != 0) { in cmd_pipeline_table()
2204 tokens[t0 + 3]) != 0) { in cmd_pipeline_table()
2209 if (strcmp(tokens[t0 + 4], "size") != 0) { in cmd_pipeline_table()
2215 tokens[t0 + 5]) != 0) { in cmd_pipeline_table()
2220 t0 += 6; in cmd_pipeline_table()
2221 } else if (strcmp(tokens[t0], "stub") == 0) { in cmd_pipeline_table()
2224 t0 += 1; in cmd_pipeline_table()
2231 if ((n_tokens > t0) && (strcmp(tokens[t0], "action") == 0)) { in cmd_pipeline_table()
2232 if (n_tokens < t0 + 2) { in cmd_pipeline_table()
2237 p.action_profile_name = tokens[t0 + 1]; in cmd_pipeline_table()
2239 t0 += 2; in cmd_pipeline_table()
2242 if (n_tokens > t0) { in cmd_pipeline_table()
4358 uint32_t table_id, t0, n_tokens_parsed; in cmd_pipeline_table_rule_add() local
4388 t0 = 6; in cmd_pipeline_table_rule_add()
4391 n_tokens_parsed = parse_match(tokens + t0, in cmd_pipeline_table_rule_add()
4392 n_tokens - t0, in cmd_pipeline_table_rule_add()
4398 t0 += n_tokens_parsed; in cmd_pipeline_table_rule_add()
4401 n_tokens_parsed = parse_table_action(tokens + t0, in cmd_pipeline_table_rule_add()
4402 n_tokens - t0, in cmd_pipeline_table_rule_add()
4408 t0 += n_tokens_parsed; in cmd_pipeline_table_rule_add()
4410 if (t0 != n_tokens) { in cmd_pipeline_table_rule_add()
4659 uint32_t table_id, n_tokens_parsed, t0; in cmd_pipeline_table_rule_delete() local
4689 t0 = 6; in cmd_pipeline_table_rule_delete()
4692 n_tokens_parsed = parse_match(tokens + t0, in cmd_pipeline_table_rule_delete()
4693 n_tokens - t0, in cmd_pipeline_table_rule_delete()
4699 t0 += n_tokens_parsed; in cmd_pipeline_table_rule_delete()
4701 if (n_tokens != t0) { in cmd_pipeline_table_rule_delete()
6800 uint32_t n_tokens, n_tokens_parsed, t0; in cli_rule_file_process() local
6821 t0 = 0; in cli_rule_file_process()
6833 n_tokens_parsed = parse_match(tokens + t0, in cli_rule_file_process()
6834 n_tokens - t0, in cli_rule_file_process()
6842 t0 += n_tokens_parsed; in cli_rule_file_process()
6845 n_tokens_parsed = parse_table_action(tokens + t0, in cli_rule_file_process()
6846 n_tokens - t0, in cli_rule_file_process()
6854 t0 += n_tokens_parsed; in cli_rule_file_process()
6857 if (t0 < n_tokens) { in cli_rule_file_process()