| 1417 | } |
| 1418 | |
| 1419 | static void |
| 1420 | acl_build_log(const struct acl_build_context *ctx) |
| 1421 | { |
| 1422 | uint32_t n; |
| 1423 | |
| 1424 | RTE_LOG(DEBUG, ACL, "Build phase for ACL \"%s\":\n" |
| 1425 | "node limit for tree split: %u\n" |
| 1426 | "nodes created: %u\n" |
| 1427 | "memory consumed: %zu\n", |
| 1428 | ctx->acx->name, |
| 1429 | ctx->node_max, |
| 1430 | ctx->num_nodes, |
| 1431 | ctx->pool.alloc); |
| 1432 | |
| 1433 | for (n = 0; n < RTE_DIM(ctx->tries); n++) { |
| 1434 | if (ctx->tries[n].count != 0) |
| 1435 | RTE_LOG(DEBUG, ACL, |
| 1436 | "trie %u: number of rules: %u, indexes: %u\n", |
| 1437 | n, ctx->tries[n].count, |
| 1438 | ctx->tries[n].num_data_indexes); |
| 1439 | } |
| 1440 | } |
| 1441 | |
| 1442 | static int |
| 1443 | acl_build_rules(struct acl_build_context *bcx) |