| 354 | } |
| 355 | |
| 356 | static inline int |
| 357 | try_update(struct member_ht_bucket *buckets, uint32_t prim, uint32_t sec, |
| 358 | member_sig_t sig, member_set_t set_id, |
| 359 | enum rte_member_sig_compare_function cmp_fn) |
| 360 | { |
| 361 | switch (cmp_fn) { |
| 362 | #if defined(RTE_ARCH_X86) && defined(__AVX2__) |
| 363 | case RTE_MEMBER_COMPARE_AVX2: |
| 364 | if (update_entry_search_avx(prim, sig, buckets, set_id) || |
| 365 | update_entry_search_avx(sec, sig, buckets, |
| 366 | set_id)) |
| 367 | return 0; |
| 368 | break; |
| 369 | #endif |
| 370 | default: |
| 371 | if (update_entry_search(prim, sig, buckets, set_id) || |
| 372 | update_entry_search(sec, sig, buckets, |
| 373 | set_id)) |
| 374 | return 0; |
| 375 | } |
| 376 | return -1; |
| 377 | } |
| 378 | |
| 379 | static inline int |
| 380 | evict_from_bucket(void) |
no test coverage detected