MCPcopy Create free account
hub / github.com/F-Stack/f-stack / acl_set_data_indexes

Function acl_set_data_indexes

dpdk/lib/acl/acl_bld.c:1485–1498  ·  view source on GitHub ↗

* Copy data_indexes for each trie into RT location. */

Source from the content-addressed store, hash-verified

1483 * Copy data_indexes for each trie into RT location.
1484 */
1485static void
1486acl_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:

Callers 1

rte_acl_buildFunction · 0.85

Calls 1

memcpyFunction · 0.50

Tested by

no test coverage detected