Searched refs:l_old (Results 1 – 2 of 2) sorted by relevance
/Linux-v4.19/kernel/bpf/ |
D | hashtab.c | 796 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, in check_flags() argument 799 if (l_old && map_flags == BPF_NOEXIST) in check_flags() 803 if (!l_old && map_flags == BPF_EXIST) in check_flags() 815 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local 838 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_map_update_elem() 840 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem() 845 l_old); in htab_map_update_elem() 856 if (l_old) { in htab_map_update_elem() 857 hlist_nulls_del_rcu(&l_old->hash_node); in htab_map_update_elem() 859 free_htab_elem(htab, l_old); in htab_map_update_elem() [all …]
|
D | sockmap.c | 2383 struct htab_elem *l_new = NULL, *l_old; in sock_hash_ctx_update_elem() local 2420 l_old = lookup_elem_raw(head, hash, key, key_size); in sock_hash_ctx_update_elem() 2421 if (l_old && map_flags == BPF_NOEXIST) { in sock_hash_ctx_update_elem() 2425 if (!l_old && map_flags == BPF_EXIST) { in sock_hash_ctx_update_elem() 2430 l_new = alloc_sock_hash_elem(htab, key, key_size, hash, sock, l_old); in sock_hash_ctx_update_elem() 2446 if (l_old) { in sock_hash_ctx_update_elem() 2447 psock = smap_psock_sk(l_old->sk); in sock_hash_ctx_update_elem() 2449 hlist_del_rcu(&l_old->hash_node); in sock_hash_ctx_update_elem() 2450 smap_list_hash_remove(psock, l_old); in sock_hash_ctx_update_elem() 2451 smap_release_sock(psock, l_old->sk); in sock_hash_ctx_update_elem() [all …]
|