* Dereference a pointer from a node */
| 437 | * Dereference a pointer from a node |
| 438 | */ |
| 439 | static void |
| 440 | acl_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 |
no test coverage detected