Home
last modified time | relevance | path

Searched refs:l_old (Results 1 – 2 of 2) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Dbpf_arena_htab.h57 hashtab_elem_t *l_old; in htab_lookup_elem()
62 l_old = lookup_elem_raw(head, htab_hash(key), key); in htab_lookup_elem()
63 if (l_old) in htab_lookup_elem()
64 return l_old->value; in htab_lookup_elem()
70 hashtab_elem_t *l_new = NULL, *l_old; in htab_update_elem()
75 l_old = lookup_elem_raw(head, htab_hash(key), key); in htab_update_elem()
85 if (l_old) { in htab_update_elem()
86 list_del(&l_old->hash_node); in htab_update_elem()
87 bpf_free(l_old); in htab_update_elem()
58 hashtab_elem_t *l_old; htab_lookup_elem() local
71 hashtab_elem_t *l_new = NULL, *l_old; htab_update_elem() local
/linux/kernel/bpf/
H A Dhashtab.c1180 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, in check_flags() argument
1183 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
1187 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
1199 struct htab_elem *l_new, *l_old; in htab_map_update_elem() local
1223 l_old = lookup_nulls_elem_raw(head, hash, key, key_size, in htab_map_update_elem()
1225 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1228 if (l_old) { in htab_map_update_elem()
1231 htab_elem_value(l_old, key_size), in htab_map_update_elem()
1245 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_map_update_elem()
1247 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
[all …]