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

Function rule_hash

dpdk/lib/lpm/rte_lpm6.c:149–154  ·  view source on GitHub ↗

* LPM6 rule hash function * * It's used as a hash function for the rte_hash * containing rules */

Source from the content-addressed store, hash-verified

147 * containing rules
148 */
149static inline uint32_t
150rule_hash(const void *data, __rte_unused uint32_t data_len,
151 uint32_t init_val)
152{
153 return rte_jhash(data, sizeof(struct rte_lpm6_rule_key), init_val);
154}
155
156/*
157 * Init pool of free tbl8 indexes

Callers

nothing calls this directly

Calls 1

rte_jhashFunction · 0.50

Tested by

no test coverage detected