Home
last modified time | relevance | path

Searched refs:old_sdata (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/kernel/bpf/
H A Dbpf_local_storage.c251 static int check_flags(const struct bpf_local_storage_data *old_sdata, in check_flags() argument
254 if (old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
258 if (!old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
335 struct bpf_local_storage_data *old_sdata = NULL; in bpf_local_storage_update() local
369 /* Hoping to find an old_sdata to do inline update in bpf_local_storage_update()
373 old_sdata = in bpf_local_storage_update()
375 err = check_flags(old_sdata, map_flags); in bpf_local_storage_update()
378 if (old_sdata && selem_linked_to_storage_lockless(SELEM(old_sdata))) { in bpf_local_storage_update()
379 copy_map_value_locked(&smap->map, old_sdata in bpf_local_storage_update()
[all...]
/kernel/linux/linux-6.6/kernel/bpf/
H A Dbpf_local_storage.c460 static int check_flags(const struct bpf_local_storage_data *old_sdata, in check_flags() argument
463 if (old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) in check_flags()
467 if (!old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) in check_flags()
555 struct bpf_local_storage_data *old_sdata = NULL; in bpf_local_storage_update() local
594 /* Hoping to find an old_sdata to do inline update in bpf_local_storage_update()
598 old_sdata = in bpf_local_storage_update()
600 err = check_flags(old_sdata, map_flags); in bpf_local_storage_update()
603 if (old_sdata && selem_linked_to_storage_lockless(SELEM(old_sdata))) { in bpf_local_storage_update()
604 copy_map_value_locked(&smap->map, old_sdata in bpf_local_storage_update()
[all...]

Completed in 2 milliseconds