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

Function efd_get_chunk_id

dpdk/lib/efd/rte_efd.c:273–278  ·  view source on GitHub ↗

* Computes the chunk ID for a given key hash * * @param table * EFD table to reference * @param hashed_key * 32-bit key hash returned by EFD_HASH * * @return * chunk ID containing this key hash */

Source from the content-addressed store, hash-verified

271 * chunk ID containing this key hash
272 */
273static inline uint32_t
274efd_get_chunk_id(const struct rte_efd_table * const table,
275 const uint32_t hashed_key)
276{
277 return hashed_key & (table->num_chunks - 1);
278}
279
280/**
281 * Computes the bin ID for a given key hash

Callers 1

efd_compute_idsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected