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

Function rule_find

dpdk/lib/lpm/rte_lpm6.c:460–470  ·  view source on GitHub ↗

Find a rule */

Source from the content-addressed store, hash-verified

458
459/* Find a rule */
460static int
461rule_find(struct rte_lpm6 *lpm, uint8_t *ip, uint8_t depth,
462 uint32_t *next_hop)
463{
464 struct rte_lpm6_rule_key rule_key;
465
466 /* init a rule key */
467 rule_key_init(&rule_key, ip, depth);
468
469 return rule_find_with_key(lpm, &rule_key, next_hop);
470}
471
472/*
473 * Checks if a rule already exists in the rules table and updates

Callers 1

rte_lpm6_is_rule_presentFunction · 0.70

Calls 2

rule_key_initFunction · 0.70
rule_find_with_keyFunction · 0.70

Tested by

no test coverage detected