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

Function acl_build_reset

dpdk/lib/acl/acl_bld.c:775–781  ·  view source on GitHub ↗

* Reset current runtime fields before next build: * - free allocated RT memory. * - reset all RT related fields to zero. */

Source from the content-addressed store, hash-verified

773 * - reset all RT related fields to zero.
774 */
775static void
776acl_build_reset(struct rte_acl_ctx *ctx)
777{
778 rte_free(ctx->mem);
779 memset(&ctx->num_categories, 0,
780 sizeof(*ctx) - offsetof(struct rte_acl_ctx, num_categories));
781}
782
783static void
784acl_gen_full_range(struct acl_build_context *context, struct rte_acl_node *root,

Callers 1

rte_acl_buildFunction · 0.85

Calls 2

rte_freeFunction · 0.85
memsetFunction · 0.85

Tested by

no test coverage detected