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

Function rte_thash_complete_matrix

dpdk/lib/hash/rte_thash.c:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105};
106
107void
108rte_thash_complete_matrix(uint64_t *matrixes, const uint8_t *rss_key, int size)
109{
110 int i, j;
111 uint8_t *m = (uint8_t *)matrixes;
112 uint8_t left_part, right_part;
113
114 for (i = 0; i < size; i++) {
115 for (j = 0; j < 8; j++) {
116 left_part = rss_key[i] << j;
117 right_part = (uint16_t)(rss_key[(i + 1) % size]) >>
118 (8 - j);
119 m[i * 8 + j] = left_part|right_part;
120 }
121 }
122}
123
124static inline uint32_t
125get_bit_lfsr(struct thash_lfsr *lfsr)

Callers 7

rte_thash_init_ctxFunction · 0.85
generate_subkeyFunction · 0.85
run_thash_testFunction · 0.85
test_toeplitz_hash_gfniFunction · 0.85
test_big_tuple_gfniFunction · 0.85

Calls

no outgoing calls

Tested by 5

run_thash_testFunction · 0.68
test_toeplitz_hash_gfniFunction · 0.68
test_big_tuple_gfniFunction · 0.68