Home
last modified time | relevance | path

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

/kernel/bpf/
Dhashtab.c1054 static int check_flags(struct bpf_htab *htab, struct htab_elem *l_old, in check_flags() argument
1057 if (l_old && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
1061 if (!l_old && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
1073 struct htab_elem *l_new = NULL, *l_old; in htab_map_update_elem() local
1098 l_old = lookup_nulls_elem_raw(head, hash, key, key_size, in htab_map_update_elem()
1100 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
1103 if (l_old) { in htab_map_update_elem()
1106 l_old->key + round_up(key_size, 8), in htab_map_update_elem()
1120 l_old = lookup_elem_raw(head, hash, key, key_size); in htab_map_update_elem()
1122 ret = check_flags(htab, l_old, map_flags); in htab_map_update_elem()
[all …]