Searched refs:l_old (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.6/kernel/bpf/ |
D | hashtab.c | 1071 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, in check_flags() argument 1074 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags() 1078 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags() 1090 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local 1115 l_old = lookup_nulls_elem_raw(head, hash, key, key_size, in htab_map_update_elem() 1117 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem() 1120 if (l_old) { in htab_map_update_elem() 1123 l_old->key + round_up(key_size, 8), in htab_map_update_elem() 1137 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_map_update_elem() 1139 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem() [all …]
|