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

Function acl_gen_range_low

dpdk/lib/acl/acl_bld.c:810–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

808}
809
810static void
811acl_gen_range_low(struct acl_build_context *context, struct rte_acl_node *root,
812 struct rte_acl_node *end, const uint8_t *lo, int size, int level)
813{
814 struct rte_acl_node *node;
815 uint32_t n;
816
817 n = size - 1;
818 if (n == 0) {
819 acl_add_ptr_range(context, root, end, lo[0], UINT8_MAX);
820 return;
821 }
822
823 node = acl_alloc_node(context, level++);
824 acl_add_ptr_range(context, root, node, lo[n], lo[n]);
825
826 /* generate lower-bound sub-trie */
827 acl_gen_range_low(context, node, end, lo, n, level);
828
829 /* generate middle sub-trie */
830 if (n > 1 && lo[n - 1] != UINT8_MAX)
831 acl_gen_range_mdl(context, node, end, lo[n - 1] + 1, UINT8_MAX,
832 n, level);
833}
834
835static void
836acl_gen_range_high(struct acl_build_context *context, struct rte_acl_node *root,

Callers 1

acl_gen_range_trieFunction · 0.85

Calls 3

acl_add_ptr_rangeFunction · 0.85
acl_alloc_nodeFunction · 0.85
acl_gen_range_mdlFunction · 0.85

Tested by

no test coverage detected