Search bucket for entry with tmp_sig and update set_id */
| 18 | |
| 19 | /* Search bucket for entry with tmp_sig and update set_id */ |
| 20 | static inline int |
| 21 | update_entry_search(uint32_t bucket_id, member_sig_t tmp_sig, |
| 22 | struct member_ht_bucket *buckets, |
| 23 | member_set_t set_id) |
| 24 | { |
| 25 | uint32_t i; |
| 26 | |
| 27 | for (i = 0; i < RTE_MEMBER_BUCKET_ENTRIES; i++) { |
| 28 | if (buckets[bucket_id].sigs[i] == tmp_sig) { |
| 29 | buckets[bucket_id].sets[i] = set_id; |
| 30 | return 1; |
| 31 | } |
| 32 | } |
| 33 | return 0; |
| 34 | } |
| 35 | |
| 36 | static inline int |
| 37 | search_bucket_single(uint32_t bucket_id, member_sig_t tmp_sig, |