Home
last modified time | relevance | path

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

/linux-6.12.1/include/linux/
Dfilter.h1568 struct sock *selected_sk; member
1610 _ctx->selected_sk = _selected_sk; \
1614 if (_ret == SK_PASS && _ctx->selected_sk) { \
1616 _selected_sk = _ctx->selected_sk; \
1623 _ctx->selected_sk = _selected_sk; \
1635 struct sock *selected_sk = NULL; in bpf_sk_lookup_run_v4() local
1654 selected_sk = ctx.selected_sk; in bpf_sk_lookup_run_v4()
1657 selected_sk = ERR_PTR(-ECONNREFUSED); in bpf_sk_lookup_run_v4()
1661 *psk = selected_sk; in bpf_sk_lookup_run_v4()
1674 struct sock *selected_sk = NULL; in bpf_sk_lookup_run_v6() local
[all …]
Dbpf.h3342 struct sock *selected_sk; member
/linux-6.12.1/net/bpf/
Dtest_run.c1504 ctx.selected_sk = NULL; in bpf_prog_test_run_sk_lookup()
1513 if (ctx.selected_sk) { in bpf_prog_test_run_sk_lookup()
1514 if (ctx.selected_sk->sk_reuseport && !ctx.no_reuseport) { in bpf_prog_test_run_sk_lookup()
1519 user_ctx->cookie = sock_gen_cookie(ctx.selected_sk); in bpf_prog_test_run_sk_lookup()
/linux-6.12.1/net/core/
Dfilter.c11217 reuse_kern->selected_sk = NULL; in bpf_init_reuseport_kern()
11237 return reuse_kern.selected_sk; in bpf_run_sk_reuseport()
11247 struct sock *selected_sk; in BPF_CALL_4() local
11249 selected_sk = map->ops->map_lookup_elem(map, key); in BPF_CALL_4()
11250 if (!selected_sk) in BPF_CALL_4()
11253 reuse = rcu_dereference(selected_sk->sk_reuseport_cb); in BPF_CALL_4()
11256 if (sk_is_refcounted(selected_sk)) in BPF_CALL_4()
11257 sock_put(selected_sk); in BPF_CALL_4()
11272 if (sk->sk_protocol != selected_sk->sk_protocol) in BPF_CALL_4()
11274 else if (sk->sk_family != selected_sk->sk_family) in BPF_CALL_4()
[all …]