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

Function rule_key_init

dpdk/lib/lpm/rte_lpm6.c:213–218  ·  view source on GitHub ↗

* Init a rule key. * note that ip must be already masked */

Source from the content-addressed store, hash-verified

211 * note that ip must be already masked
212 */
213static inline void
214rule_key_init(struct rte_lpm6_rule_key *key, uint8_t *ip, uint8_t depth)
215{
216 ip6_copy_addr(key->ip, ip);
217 key->depth = depth;
218}
219
220/*
221 * Rebuild the entire LPM tree by reinserting all rules

Callers 4

rule_findFunction · 0.70
rule_addFunction · 0.70
rule_deleteFunction · 0.70
rule_find_less_specificFunction · 0.70

Calls 1

ip6_copy_addrFunction · 0.70

Tested by

no test coverage detected