Home
last modified time | relevance | path

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

/linux-6.6.21/include/linux/
Dfilter.h1362 struct sock *selected_sk; member
1404 _ctx->selected_sk = _selected_sk; \
1408 if (_ret == SK_PASS && _ctx->selected_sk) { \
1410 _selected_sk = _ctx->selected_sk; \
1417 _ctx->selected_sk = _selected_sk; \
1429 struct sock *selected_sk = NULL; in bpf_sk_lookup_run_v4() local
1448 selected_sk = ctx.selected_sk; in bpf_sk_lookup_run_v4()
1451 selected_sk = ERR_PTR(-ECONNREFUSED); in bpf_sk_lookup_run_v4()
1455 *psk = selected_sk; in bpf_sk_lookup_run_v4()
1468 struct sock *selected_sk = NULL; in bpf_sk_lookup_run_v6() local
[all …]
Dbpf.h3090 struct sock *selected_sk; member
/linux-6.6.21/net/bpf/
Dtest_run.c1441 ctx.selected_sk = NULL; in bpf_prog_test_run_sk_lookup()
1450 if (ctx.selected_sk) { in bpf_prog_test_run_sk_lookup()
1451 if (ctx.selected_sk->sk_reuseport && !ctx.no_reuseport) { in bpf_prog_test_run_sk_lookup()
1456 user_ctx->cookie = sock_gen_cookie(ctx.selected_sk); in bpf_prog_test_run_sk_lookup()
/linux-6.6.21/net/core/
Dfilter.c11111 reuse_kern->selected_sk = NULL; in bpf_init_reuseport_kern()
11131 return reuse_kern.selected_sk; in bpf_run_sk_reuseport()
11141 struct sock *selected_sk; in BPF_CALL_4() local
11143 selected_sk = map->ops->map_lookup_elem(map, key); in BPF_CALL_4()
11144 if (!selected_sk) in BPF_CALL_4()
11147 reuse = rcu_dereference(selected_sk->sk_reuseport_cb); in BPF_CALL_4()
11150 if (sk_is_refcounted(selected_sk)) in BPF_CALL_4()
11151 sock_put(selected_sk); in BPF_CALL_4()
11166 if (sk->sk_protocol != selected_sk->sk_protocol) in BPF_CALL_4()
11168 else if (sk->sk_family != selected_sk->sk_family) in BPF_CALL_4()
[all …]