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

Function get_subvalue

dpdk/lib/hash/rte_thash.c:437–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437static inline uint32_t
438get_subvalue(struct rte_thash_ctx *ctx, uint32_t offset)
439{
440 uint32_t *tmp, val;
441
442 tmp = (uint32_t *)(&ctx->hash_key[offset >> 3]);
443 val = rte_be_to_cpu_32(*tmp);
444 val >>= (TOEPLITZ_HASH_LEN - ((offset & (CHAR_BIT - 1)) +
445 ctx->reta_sz_log));
446
447 return val & ((1 << ctx->reta_sz_log) - 1);
448}
449
450static inline void
451generate_complement_table(struct rte_thash_ctx *ctx,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected