Searched refs:l_old (Results 1 – 1 of 1) sorted by relevance
| /Linux-v5.15/kernel/bpf/ |
| D | hashtab.c | 1004 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, in check_flags() argument 1007 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags() 1011 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags() 1023 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local 1048 l_old = lookup_nulls_elem_raw(head, hash, key, key_size, in htab_map_update_elem() 1050 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem() 1053 if (l_old) { in htab_map_update_elem() 1056 l_old->key + round_up(key_size, 8), in htab_map_update_elem() 1070 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_map_update_elem() 1072 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem() [all …]
|