| 435 | } |
| 436 | |
| 437 | static inline uint32_t |
| 438 | get_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 | |
| 450 | static inline void |
| 451 | generate_complement_table(struct rte_thash_ctx *ctx, |
no outgoing calls
no test coverage detected