Searched refs:l_old (Results 1 – 2 of 2) sorted by relevance
/linux/tools/testing/selftests/bpf/ |
H A D | bpf_arena_htab.h | 58 hashtab_elem_t *l_old; in htab_lookup_elem() local 63 l_old = lookup_elem_raw(head, htab_hash(key), key); in htab_lookup_elem() 64 if (l_old) in htab_lookup_elem() 65 return l_old->value; in htab_lookup_elem() 71 hashtab_elem_t *l_new = NULL, *l_old; in htab_update_elem() local 76 l_old = lookup_elem_raw(head, htab_hash(key), key); in htab_update_elem() 86 if (l_old) { in htab_update_elem() 87 list_del(&l_old->hash_node); in htab_update_elem() 88 bpf_free(l_old); in htab_update_elem()
|
/linux/kernel/bpf/ |
H A D | hashtab.c | 1087 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, in check_flags() argument 1090 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags() 1094 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags() 1106 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local 1132 l_old = lookup_nulls_elem_raw(head, hash, key, key_size, in htab_map_update_elem() 1134 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem() 1137 if (l_old) { in htab_map_update_elem() 1140 l_old->key + round_up(key_size, 8), in htab_map_update_elem() 1154 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_map_update_elem() 1156 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem() [all …]
|