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

Function calc_tuple_hash

dpdk/app/test/test_thash.c:807–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807static uint32_t
808calc_tuple_hash(const uint8_t tuple[TUPLE_SZ], const uint8_t *key)
809{
810 uint32_t i, hash;
811 uint32_t tmp[TUPLE_SZ / sizeof(uint32_t)];
812
813 for (i = 0; i < RTE_DIM(tmp); i++)
814 tmp[i] = rte_be_to_cpu_32(
815 *(const uint32_t *)&tuple[i * sizeof(uint32_t)]);
816
817 hash = rte_softrss(tmp, RTE_DIM(tmp), key);
818 return hash;
819}
820
821static int
822check_adj_tuple(const uint8_t tuple[TUPLE_SZ], const uint8_t *key,

Callers 2

check_adj_tupleFunction · 0.85
test_adjust_tuple_mbFunction · 0.85

Calls 1

rte_softrssFunction · 0.85

Tested by

no test coverage detected