Home
last modified time | relevance | path

Searched refs:sk_storage (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dudp_limit.c19 int *sk_storage; in sock() local
24 sk_storage = bpf_sk_storage_get(&sk_map, ctx, 0, in sock()
26 if (!sk_storage) in sock()
28 *sk_storage = 0xdeadbeef; in sock()
47 int *sk_storage; in sock_release() local
52 sk_storage = bpf_sk_storage_get(&sk_map, ctx, 0, 0); in sock_release()
53 if (!sk_storage || *sk_storage != 0xdeadbeef) in sock_release()
H A Dsk_storage_omem_uncharge.c22 } sk_storage SEC(".maps");
51 value = bpf_sk_storage_get(&sk_storage, sk, 0, 0); in BPF_PROG()
H A Dmap_ptr_kern.c624 struct bpf_local_storage_map *sk_storage = in check_sk_storage() local
628 VERIFY(check(&sk_storage->map, map, sizeof(__u32), sizeof(__u32), 0)); in check_sk_storage()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dudp_limit.c19 int *sk_storage; in sock() local
25 sk_storage = bpf_sk_storage_get(&sk_map, ctx, 0, in sock()
27 if (!sk_storage) in sock()
29 *sk_storage = 0xdeadbeef; in sock()
48 int *sk_storage; in sock_release() local
54 sk_storage = bpf_sk_storage_get(&sk_map, ctx, 0, 0); in sock_release()
55 if (!sk_storage || *sk_storage != 0xdeadbeef) in sock_release()
H A Dmap_ptr_kern.c613 struct bpf_local_storage_map *sk_storage = in check_sk_storage() local
617 VERIFY(check(&sk_storage->map, map, sizeof(__u32), sizeof(__u32), 0)); in check_sk_storage()
/kernel/linux/linux-5.10/net/core/
H A Dbpf_sk_storage.c21 struct bpf_local_storage *sk_storage; in sk_storage_lookup() local
24 sk_storage = rcu_dereference(sk->sk_bpf_storage); in sk_storage_lookup()
25 if (!sk_storage) in sk_storage_lookup()
29 return bpf_local_storage_lookup(sk_storage, smap, cacheit_lockit); in sk_storage_lookup()
49 struct bpf_local_storage *sk_storage; in bpf_sk_storage_free() local
54 sk_storage = rcu_dereference(sk->sk_bpf_storage); in bpf_sk_storage_free()
55 if (!sk_storage) { in bpf_sk_storage_free()
61 * could be modifying the sk_storage->list now. in bpf_sk_storage_free()
63 * sk_storage->list by the bpf_prog or by the bpf-map's syscall. in bpf_sk_storage_free()
66 * when unlinking elem from the sk_storage in bpf_sk_storage_free()
189 struct bpf_local_storage *sk_storage; bpf_sk_storage_clone() local
537 struct bpf_local_storage *sk_storage; bpf_sk_storage_diag_put_all() local
592 struct bpf_local_storage *sk_storage; bpf_sk_storage_diag_put() local
663 struct bpf_local_storage *sk_storage; __acquires() local
758 struct bpf_local_storage *sk_storage; __bpf_sk_storage_map_seq_show() local
[all...]
/kernel/linux/linux-6.6/net/core/
H A Dbpf_sk_storage.c23 struct bpf_local_storage *sk_storage; in bpf_sk_storage_lookup() local
26 sk_storage = in bpf_sk_storage_lookup()
28 if (!sk_storage) in bpf_sk_storage_lookup()
32 return bpf_local_storage_lookup(sk_storage, smap, cacheit_lockit); in bpf_sk_storage_lookup()
51 struct bpf_local_storage *sk_storage; in bpf_sk_storage_free() local
54 sk_storage = rcu_dereference(sk->sk_bpf_storage); in bpf_sk_storage_free()
55 if (!sk_storage) { in bpf_sk_storage_free()
60 bpf_local_storage_destroy(sk_storage); in bpf_sk_storage_free()
157 struct bpf_local_storage *sk_storage; in bpf_sk_storage_clone() local
164 sk_storage in bpf_sk_storage_clone()
586 struct bpf_local_storage *sk_storage; bpf_sk_storage_diag_put_all() local
641 struct bpf_local_storage *sk_storage; bpf_sk_storage_diag_put() local
712 struct bpf_local_storage *sk_storage; __acquires() local
807 struct bpf_local_storage *sk_storage; __bpf_sk_storage_map_seq_show() local
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dsk_storage_omem_uncharge.c18 map_fd = bpf_map__fd(skel->maps.sk_storage); in test_sk_storage_omem_uncharge()

Completed in 5 milliseconds