* 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 */
| 271 | * chunk ID containing this key hash |
| 272 | */ |
| 273 | static inline uint32_t |
| 274 | efd_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 |