src/dpdk/lib/librte_member/rte_member_ht.c
static inline int
update_entry_search(uint32_t bucket_id, member_sig_t tmp_sig,
		struct member_ht_bucket *buckets,
		member_set_t set_id)
{
	uint32_t i;

	for (i = 0; i < RTE_MEMBER_BUCKET_ENTRIES; i++) {
		if (buckets[bucket_id].sigs[i] == tmp_sig) {
			buckets[bucket_id].sets[i] = set_id;
			return 1;
		}
	}
	return 0;
}
/* Search bucket for entry with tmp_sig and update set_id */
Search bucket for entry with tmp_sig and update set_id
Search bucket for entry with tmp_sig and update set_id
static inline int
update_entry_search(uint32_t bucket_id, member_sig_t tmp_sig,
		struct member_ht_bucket *buckets,
		member_set_t set_id)
{
	uint32_t i;
	for (i = 0; i < RTE_MEMBER_BUCKET_ENTRIES; i++) {
		if (buckets[bucket_id].sigs[i] == tmp_sig) {
			buckets[bucket_id].sets[i] = set_id;
			return 1;
		}
	}
	return 0;
}
static inline int update_entry_search ( uint32_t bucket_id , member_sig_t tmp_sig , struct member_ht_bucket * buckets , member_set_t set_id ) { uint32_t i ; for ( i = 0 ; i < RTE_MEMBER_BUCKET_ENTRIES ; i ++ ) { if ( buckets [ bucket_id ] . sigs [ i ] == tmp_sig ) { buckets [ bucket_id ] . sets [ i ] = set_id ; return 1 ; } } return 0 ; }
Search bucket for entry with tmp_sig and update set_id
Search bucket for entry with tmp_sig and update set_id