old_sdata 312 net/core/bpf_sk_storage.c static int check_flags(const struct bpf_sk_storage_data *old_sdata, old_sdata 315 net/core/bpf_sk_storage.c if (old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_NOEXIST) old_sdata 319 net/core/bpf_sk_storage.c if (!old_sdata && (map_flags & ~BPF_F_LOCK) == BPF_EXIST) old_sdata 392 net/core/bpf_sk_storage.c struct bpf_sk_storage_data *old_sdata = NULL; old_sdata 431 net/core/bpf_sk_storage.c old_sdata = __sk_storage_lookup(sk_storage, smap, false); old_sdata 432 net/core/bpf_sk_storage.c err = check_flags(old_sdata, map_flags); old_sdata 435 net/core/bpf_sk_storage.c if (old_sdata && selem_linked_to_sk(SELEM(old_sdata))) { old_sdata 436 net/core/bpf_sk_storage.c copy_map_value_locked(map, old_sdata->data, old_sdata 438 net/core/bpf_sk_storage.c return old_sdata; old_sdata 455 net/core/bpf_sk_storage.c old_sdata = __sk_storage_lookup(sk_storage, smap, false); old_sdata 456 net/core/bpf_sk_storage.c err = check_flags(old_sdata, map_flags); old_sdata 460 net/core/bpf_sk_storage.c if (old_sdata && (map_flags & BPF_F_LOCK)) { old_sdata 461 net/core/bpf_sk_storage.c copy_map_value_locked(map, old_sdata->data, value, false); old_sdata 462 net/core/bpf_sk_storage.c selem = SELEM(old_sdata); old_sdata 474 net/core/bpf_sk_storage.c selem = selem_alloc(smap, sk, value, !old_sdata); old_sdata 487 net/core/bpf_sk_storage.c if (old_sdata) { old_sdata 488 net/core/bpf_sk_storage.c selem_unlink_map(SELEM(old_sdata)); old_sdata 489 net/core/bpf_sk_storage.c __selem_unlink_sk(sk_storage, SELEM(old_sdata), false);