Lines Matching refs:acx

282 test_classify_alg(struct rte_acl_ctx *acx, struct ipv4_7tuple test_data[],  in test_classify_alg()  argument
290 ret = rte_acl_set_ctx_classify(acx, alg); in test_classify_alg()
299 ret = rte_acl_classify(acx, data, results, in test_classify_alg()
334 return rte_acl_set_ctx_classify(acx, RTE_ACL_CLASSIFY_DEFAULT); in test_classify_alg()
341 test_classify_run(struct rte_acl_ctx *acx, struct ipv4_7tuple test_data[], in test_classify_run() argument
367 ret = test_classify_alg(acx, test_data, data, dim, alg[i]); in test_classify_run()
381 test_classify_buid(struct rte_acl_ctx *acx, in test_classify_buid() argument
387 ret = rte_acl_ipv4vlan_add_rules(acx, rules, num); in test_classify_buid()
395 ret = rte_acl_ipv4vlan_build(acx, ipv4_7tuple_layout, in test_classify_buid()
413 struct rte_acl_ctx *acx; in test_classify() local
416 acx = rte_acl_create(&acl_param); in test_classify()
417 if (acx == NULL) { in test_classify()
426 rte_acl_reset(acx); in test_classify()
428 rte_acl_reset_rules(acx); in test_classify()
430 ret = test_classify_buid(acx, acl_test_rules, in test_classify()
439 ret = test_classify_run(acx, acl_test_data, in test_classify()
448 rte_acl_reset_rules(acx); in test_classify()
449 ret = test_classify_run(acx, acl_test_data, in test_classify()
458 rte_acl_free(acx); in test_classify()
545 struct rte_acl_ctx *acx; in test_build_ports_range() local
550 acx = rte_acl_create(&acl_param); in test_build_ports_range()
551 if (acx == NULL) { in test_build_ports_range()
564 rte_acl_reset(acx); in test_build_ports_range()
565 ret = test_classify_buid(acx, test_rules, i + 1); in test_build_ports_range()
572 ret = rte_acl_classify(acx, data, results, in test_build_ports_range()
594 rte_acl_free(acx); in test_build_ports_range()
787 convert_rules(struct rte_acl_ctx *acx, in convert_rules() argument
798 rc = rte_acl_add_rules(acx, (struct rte_acl_rule *)&r, 1); in convert_rules()
896 build_convert_rules(struct rte_acl_ctx *acx, in build_convert_rules() argument
905 return rte_acl_build(acx, &cfg); in build_convert_rules()
914 struct rte_acl_ctx *acx; in test_convert_rules() local
921 acx = rte_acl_create(&acl_param); in test_convert_rules()
922 if (acx == NULL) { in test_convert_rules()
927 rc = convert_rules(acx, convert, acl_test_rules, in test_convert_rules()
934 rc = build_convert_rules(acx, config, mem_sizes[i]); in test_convert_rules()
941 rc = test_classify_run(acx, acl_test_data, in test_convert_rules()
948 rte_acl_free(acx); in test_convert_rules()
1018 struct rte_acl_ctx *acx; in test_invalid_layout() local
1041 acx = rte_acl_create(&acl_param); in test_invalid_layout()
1042 if (acx == NULL) { in test_invalid_layout()
1051 ret = rte_acl_ipv4vlan_add_rules(acx, invalid_layout_rules, in test_invalid_layout()
1056 rte_acl_free(acx); in test_invalid_layout()
1062 ret = rte_acl_ipv4vlan_build(acx, layout, 1); in test_invalid_layout()
1065 rte_acl_free(acx); in test_invalid_layout()
1078 ret = rte_acl_classify_alg(acx, data, results, in test_invalid_layout()
1082 rte_acl_free(acx); in test_invalid_layout()
1097 ret = rte_acl_classify_alg(acx, data, results, RTE_DIM(results), 1, in test_invalid_layout()
1102 rte_acl_free(acx); in test_invalid_layout()
1116 rte_acl_free(acx); in test_invalid_layout()
1127 rte_acl_free(acx); in test_invalid_layout()
1139 struct rte_acl_ctx *acx, *acx2, *tmp; in test_create_find_add() local
1153 acx = rte_acl_create(&param); in test_create_find_add()
1154 if (acx == NULL) { in test_create_find_add()
1161 if (acx2 == NULL || acx2 == acx) { in test_create_find_add()
1163 rte_acl_free(acx); in test_create_find_add()
1170 if (tmp != acx) { in test_create_find_add()
1192 if (tmp != acx) { in test_create_find_add()
1215 rte_acl_free(acx); in test_create_find_add()
1222 acx = rte_acl_create(&param); in test_create_find_add()
1223 if (acx == NULL) { in test_create_find_add()
1239 ret = rte_acl_ipv4vlan_add_rules(acx, rules, LEN); in test_create_find_add()
1247 ret = rte_acl_ipv4vlan_add_rules(acx, rules, 1); in test_create_find_add()
1255 ret = rte_acl_ipv4vlan_build(acx, layout, RTE_ACL_MAX_CATEGORIES); in test_create_find_add()
1261 rte_acl_free(acx); in test_create_find_add()
1266 rte_acl_free(acx); in test_create_find_add()
1277 struct rte_acl_ctx *acx; in test_invalid_rules() local
1282 acx = rte_acl_create(&acl_param); in test_invalid_rules()
1283 if (acx == NULL) { in test_invalid_rules()
1299 ret = rte_acl_ipv4vlan_add_rules(acx, &rule, 1); in test_invalid_rules()
1312 ret = rte_acl_ipv4vlan_add_rules(acx, &rule, 1); in test_invalid_rules()
1327 ret = rte_acl_ipv4vlan_add_rules(acx, &rule, 1); in test_invalid_rules()
1338 ret = rte_acl_ipv4vlan_add_rules(acx, &rule, 1); in test_invalid_rules()
1345 rte_acl_free(acx); in test_invalid_rules()
1350 rte_acl_free(acx); in test_invalid_rules()
1367 struct rte_acl_ctx *acx; in test_invalid_parameters() local
1379 acx = rte_acl_create(NULL); in test_invalid_parameters()
1380 if (acx != NULL) { in test_invalid_parameters()
1383 rte_acl_free(acx); in test_invalid_parameters()
1391 acx = rte_acl_create(&param); in test_invalid_parameters()
1392 if (acx == NULL) { in test_invalid_parameters()
1397 rte_acl_free(acx); in test_invalid_parameters()
1403 acx = rte_acl_create(&param); in test_invalid_parameters()
1404 if (acx == NULL) { in test_invalid_parameters()
1409 rte_acl_free(acx); in test_invalid_parameters()
1416 acx = rte_acl_create(&param); in test_invalid_parameters()
1417 if (acx != NULL) { in test_invalid_parameters()
1420 rte_acl_free(acx); in test_invalid_parameters()
1429 acx = rte_acl_create(&param); in test_invalid_parameters()
1430 if (acx != NULL) { in test_invalid_parameters()
1433 rte_acl_free(acx); in test_invalid_parameters()
1441 acx = rte_acl_find_existing(NULL); in test_invalid_parameters()
1442 if (acx != NULL) { in test_invalid_parameters()
1444 rte_acl_free(acx); in test_invalid_parameters()
1454 acx = rte_acl_create(&param); in test_invalid_parameters()
1455 if (acx == NULL) { in test_invalid_parameters()
1467 rte_acl_free(acx); in test_invalid_parameters()
1472 result = rte_acl_ipv4vlan_add_rules(acx, NULL, 1); in test_invalid_parameters()
1476 rte_acl_free(acx); in test_invalid_parameters()
1481 result = rte_acl_ipv4vlan_add_rules(acx, &rule, 0); in test_invalid_parameters()
1485 rte_acl_free(acx); in test_invalid_parameters()
1490 rte_acl_free(acx); in test_invalid_parameters()
1499 acx = rte_acl_create(&param); in test_invalid_parameters()
1500 if (acx == NULL) { in test_invalid_parameters()
1510 rte_acl_free(acx); in test_invalid_parameters()
1515 result = rte_acl_ipv4vlan_build(acx, NULL, 1); in test_invalid_parameters()
1519 rte_acl_free(acx); in test_invalid_parameters()
1524 result = rte_acl_ipv4vlan_build(acx, layout, 0); in test_invalid_parameters()
1528 rte_acl_free(acx); in test_invalid_parameters()
1535 result = rte_acl_classify(acx, NULL, NULL, 0, 0); in test_invalid_parameters()
1539 rte_acl_free(acx); in test_invalid_parameters()
1544 result = rte_acl_classify(acx, NULL, NULL, 0, 3); in test_invalid_parameters()
1548 rte_acl_free(acx); in test_invalid_parameters()
1555 result = rte_acl_classify_alg(acx, NULL, NULL, 0, 0, in test_invalid_parameters()
1560 rte_acl_free(acx); in test_invalid_parameters()
1565 result = rte_acl_classify(acx, NULL, NULL, 0, 3); in test_invalid_parameters()
1569 rte_acl_free(acx); in test_invalid_parameters()
1574 rte_acl_free(acx); in test_invalid_parameters()
1595 struct rte_acl_ctx *acx; in test_misc() local
1600 acx = rte_acl_create(&param); in test_misc()
1601 if (acx == NULL) { in test_misc()
1609 rte_acl_dump(acx); in test_misc()
1611 rte_acl_free(acx); in test_misc()
1670 struct rte_acl_ctx *acx; in test_u32_range() local
1674 acx = rte_acl_create(&acl_param); in test_u32_range()
1675 if (acx == NULL) { in test_u32_range()
1683 rc = rte_acl_add_rules(acx, (struct rte_acl_rule *)&r, 1); in test_u32_range()
1688 rte_acl_free(acx); in test_u32_range()
1693 rc = build_convert_rules(acx, convert_config_2, 0); in test_u32_range()
1697 rte_acl_free(acx); in test_u32_range()
1717 rc = test_classify_run(acx, test_data, k); in test_u32_range()
1725 rte_acl_free(acx); in test_u32_range()