Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dfilter.h1725 struct sock *selected_sk; member
1767 _ctx->selected_sk = _selected_sk; \
1771 if (_ret == SK_PASS && _ctx->selected_sk) { \
1773 _selected_sk = _ctx->selected_sk; \
1780 _ctx->selected_sk = _selected_sk; \
1792 struct sock *selected_sk = NULL; in bpf_sk_lookup_run_v4() local
1811 selected_sk = ctx.selected_sk; in bpf_sk_lookup_run_v4()
1814 selected_sk = ERR_PTR(-ECONNREFUSED); in bpf_sk_lookup_run_v4()
1818 *psk = selected_sk; in bpf_sk_lookup_run_v4()
1831 struct sock *selected_sk = NULL; in bpf_sk_lookup_run_v6() local
[all …]
H A Dbpf.h4039 struct sock *selected_sk; in bpf_tcp_sock_convert_ctx_access()
4002 struct sock *selected_sk; global() member
/linux/net/bpf/
H A Dtest_run.c1650 ctx.selected_sk = NULL; in bpf_prog_test_run_sk_lookup()
1659 if (ctx.selected_sk) { in bpf_prog_test_run_sk_lookup()
1660 if (ctx.selected_sk->sk_reuseport && !ctx.no_reuseport) { in bpf_prog_test_run_sk_lookup()
1665 user_ctx->cookie = sock_gen_cookie(ctx.selected_sk); in bpf_prog_test_run_sk_lookup()
/linux/net/core/
H A Dfilter.c11699 reuse_kern->selected_sk = NULL; in bpf_init_reuseport_kern()
11719 return reuse_kern.selected_sk; in bpf_run_sk_reuseport()
11729 struct sock *selected_sk; in BPF_CALL_4() local
11732 selected_sk = map->ops->map_lookup_elem(map, key); in BPF_CALL_4()
11733 if (!selected_sk) in BPF_CALL_4()
11736 reuse = rcu_dereference(selected_sk->sk_reuseport_cb); in BPF_CALL_4()
11752 if (sk->sk_protocol != selected_sk->sk_protocol) { in BPF_CALL_4()
11754 } else if (sk->sk_family != selected_sk->sk_family) { in BPF_CALL_4()
11763 reuse_kern->selected_sk = selected_sk; in BPF_CALL_4()
11768 if (sk_is_refcounted(selected_sk)) in BPF_CALL_4()
[all …]