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

Function efd_get_bin_id

dpdk/lib/efd/rte_efd.c:290–295  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

288 * @return bin ID containing this key hash
289 */
290static inline uint32_t
291efd_get_bin_id(const struct rte_efd_table * const table,
292 const uint32_t hashed_key)
293{
294 return (hashed_key >> table->num_chunks_shift) & (EFD_CHUNK_NUM_BINS - 1);
295}
296
297/**
298 * Looks up the current permutation choice for a particular bin in the online table

Callers 1

efd_compute_idsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected