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

Function acl_deref_ptr

dpdk/lib/acl/acl_bld.c:439–452  ·  view source on GitHub ↗

* Dereference a pointer from a node */

Source from the content-addressed store, hash-verified

437 * Dereference a pointer from a node
438 */
439static void
440acl_deref_ptr(struct acl_build_context *context,
441 struct rte_acl_node *node, int index)
442{
443 struct rte_acl_node *ref_node;
444
445 /* De-reference the node at the specified pointer */
446 if (node != NULL && node->ptrs[index].ptr != NULL) {
447 ref_node = node->ptrs[index].ptr;
448 ref_node->ref_count--;
449 if (ref_node->ref_count == 0)
450 acl_free_node(context, ref_node);
451 }
452}
453
454/*
455 * acl_exclude rte_acl_bitset from src and copy remaining pointer to dst

Callers 2

acl_free_nodeFunction · 0.85
acl_merge_trieFunction · 0.85

Calls 1

acl_free_nodeFunction · 0.85

Tested by

no test coverage detected