Home
last modified time | relevance | path

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

/net/bpf/
Dtest_run.c996 ctx.selected_sk = NULL; in bpf_prog_test_run_sk_lookup()
1005 if (ctx.selected_sk) { in bpf_prog_test_run_sk_lookup()
1006 if (ctx.selected_sk->sk_reuseport && !ctx.no_reuseport) { in bpf_prog_test_run_sk_lookup()
1011 user_ctx->cookie = sock_gen_cookie(ctx.selected_sk); in bpf_prog_test_run_sk_lookup()
/net/core/
Dfilter.c10372 reuse_kern->selected_sk = NULL; in bpf_init_reuseport_kern()
10392 return reuse_kern.selected_sk; in bpf_run_sk_reuseport()
10402 struct sock *selected_sk; in BPF_CALL_4() local
10404 selected_sk = map->ops->map_lookup_elem(map, key); in BPF_CALL_4()
10405 if (!selected_sk) in BPF_CALL_4()
10408 reuse = rcu_dereference(selected_sk->sk_reuseport_cb); in BPF_CALL_4()
10411 if (sk_is_refcounted(selected_sk)) in BPF_CALL_4()
10412 sock_put(selected_sk); in BPF_CALL_4()
10427 if (sk->sk_protocol != selected_sk->sk_protocol) in BPF_CALL_4()
10429 else if (sk->sk_family != selected_sk->sk_family) in BPF_CALL_4()
[all …]