* 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 */
| 288 | * @return bin ID containing this key hash |
| 289 | */ |
| 290 | static inline uint32_t |
| 291 | efd_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 |