* Copy data_indexes for each trie into RT location. */
| 1483 | * Copy data_indexes for each trie into RT location. |
| 1484 | */ |
| 1485 | static void |
| 1486 | acl_set_data_indexes(struct rte_acl_ctx *ctx) |
| 1487 | { |
| 1488 | uint32_t i, n, ofs; |
| 1489 | |
| 1490 | ofs = 0; |
| 1491 | for (i = 0; i != ctx->num_tries; i++) { |
| 1492 | n = ctx->trie[i].num_data_indexes; |
| 1493 | memcpy(ctx->data_indexes + ofs, ctx->trie[i].data_index, |
| 1494 | n * sizeof(ctx->data_indexes[0])); |
| 1495 | ctx->trie[i].data_index = ctx->data_indexes + ofs; |
| 1496 | ofs += ACL_MAX_INDEXES; |
| 1497 | } |
| 1498 | } |
| 1499 | |
| 1500 | /* |
| 1501 | * Internal routine, performs 'build' phase of trie generation: |
no test coverage detected