MCPcopy Create free account
hub / github.com/F-Stack/f-stack / update_entry_search

Function update_entry_search

dpdk/lib/member/rte_member_ht.c:20–34  ·  view source on GitHub ↗

Search bucket for entry with tmp_sig and update set_id */

Source from the content-addressed store, hash-verified

18
19/* Search bucket for entry with tmp_sig and update set_id */
20static inline int
21update_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
36static inline int
37search_bucket_single(uint32_t bucket_id, member_sig_t tmp_sig,

Callers 1

try_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected