src/dpdk/lib/librte_efd/rte_efd.c
static inline void
efd_compute_ids(const struct rte_efd_table * const table,
		const void *key, uint32_t * const chunk_id, uint32_t * const bin_id)
{
	/* Compute the position of the entry in the hash table */
	uint32_t h = EFD_HASH(key, table);

	/* Compute the chunk_id where that entry can be found */
	*chunk_id = efd_get_chunk_id(table, h);

	/*
	 * Compute the bin within that chunk where the entry
	 * can be found (0 - 255)
	 */
	*bin_id = efd_get_bin_id(table, h);
}
/**
 * Compute the chunk_id and bin_id for a given key
 *
 * @param table
 *   EFD table to reference
 * @param key
 *   Key to hash and find location of
 * @param chunk_id
 *   Computed chunk ID
 * @param bin_id
 *   Computed bin ID
 *
 */
Compute the chunk_id and bin_id for a given key
@param table
EFD table to reference
@param key
Key to hash and find location of
@param chunk_id
Computed chunk ID
@param bin_id
Computed bin ID
Compute the chunk_id and bin_id for a given key @param table EFD table to reference @param key Key to hash and find location of @param chunk_id Computed chunk ID @param bin_id Computed bin ID
static inline void
efd_compute_ids(const struct rte_efd_table * const table,
		const void *key, uint32_t * const chunk_id, uint32_t * const bin_id)
{
	uint32_t h = EFD_HASH(key, table);
	*chunk_id = efd_get_chunk_id(table, h);
	*bin_id = efd_get_bin_id(table, h);
}
static inline void efd_compute_ids ( const struct rte_efd_table * const table , const void * key , uint32_t * const chunk_id , uint32_t * const bin_id ) { uint32_t h = EFD_HASH ( key , table ) ; * chunk_id = efd_get_chunk_id ( table , h ) ; * bin_id = efd_get_bin_id ( table , h ) ; }
Compute the chunk_id and bin_id for a given key
 @param table
   EFD table to reference
 @param key
   Key to hash and find location of
 @param chunk_id
   Computed chunk ID
 @param bin_id
   Computed bin ID
Compute the chunk_id and bin_id for a given key @param table EFD table to reference @param key Key to hash and find location of @param chunk_id Computed chunk ID @param bin_id Computed bin ID
/* Compute the position of the entry in the hash table */ /* Compute the chunk_id where that entry can be found */ /*
	 * Compute the bin within that chunk where the entry
	 * can be found (0 - 255)
	 */