Lines Matching refs:sk
18 struct sock *sk; member
46 static __always_inline void test_sockmap_update(void *sk) in test_sockmap_update() argument
48 if (sk) { in test_sockmap_update()
49 bpf_map_update_elem(&sockmap, &zero, sk, BPF_ANY); in test_sockmap_update()
50 bpf_map_update_elem(&sockhash, &zero, sk, BPF_ANY); in test_sockmap_update()
56 struct bpf_sock *sk = bpf_map_lookup_elem(&sockmap, &zero); in test_sockmap_lookup_and_update() local
58 if (sk) { in test_sockmap_lookup_and_update()
59 test_sockmap_update(sk); in test_sockmap_lookup_and_update()
60 bpf_sk_release(sk); in test_sockmap_lookup_and_update()
64 static __always_inline void test_sockmap_mutate(void *sk) in test_sockmap_mutate() argument
67 test_sockmap_update(sk); in test_sockmap_mutate()
80 test_sockmap_mutate(skb->sk); in test_sched_act()
88 test_sockmap_mutate(skb->sk); in test_sched_cls()
112 test_sockmap_mutate(ctx->sk); in test_trace_iter()
136 test_sockmap_mutate(ctx->sk); in test_sk_lookup()
144 test_sockmap_mutate(ctx->sk); in test_sk_reuseport()
152 test_sockmap_mutate(skb->sk); in test_socket_filter()
168 test_sockmap_update(ctx->sk); in test_sockops_update()