Home
last modified time | relevance | path

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

/openbmc/linux/include/linux/
H A Dfilter.h1365 struct sock *selected_sk; member
1407 _ctx->selected_sk = _selected_sk; \
1413 _selected_sk = _ctx->selected_sk; \
1420 _ctx->selected_sk = _selected_sk; \
1432 struct sock *selected_sk = NULL; in bpf_sk_lookup_run_v4() local
1451 selected_sk = ctx.selected_sk; in bpf_sk_lookup_run_v4()
1454 selected_sk = ERR_PTR(-ECONNREFUSED); in bpf_sk_lookup_run_v4()
1458 *psk = selected_sk; in bpf_sk_lookup_run_v4()
1471 struct sock *selected_sk = NULL; in bpf_sk_lookup_run_v6() local
1490 selected_sk = ctx.selected_sk; in bpf_sk_lookup_run_v6()
[all …]
H A Dbpf.h3106 struct sock *selected_sk; member
/openbmc/linux/net/bpf/
H A Dtest_run.c1447 ctx.selected_sk = NULL; in bpf_prog_test_run_sk_lookup()
1456 if (ctx.selected_sk) { in bpf_prog_test_run_sk_lookup()
1457 if (ctx.selected_sk->sk_reuseport && !ctx.no_reuseport) { in bpf_prog_test_run_sk_lookup()
1462 user_ctx->cookie = sock_gen_cookie(ctx.selected_sk); in bpf_prog_test_run_sk_lookup()
/openbmc/linux/net/core/
H A Dfilter.c11145 reuse_kern->selected_sk = NULL; in bpf_init_reuseport_kern()
11165 return reuse_kern.selected_sk; in bpf_run_sk_reuseport()
11175 struct sock *selected_sk; in BPF_CALL_4() local
11177 selected_sk = map->ops->map_lookup_elem(map, key); in BPF_CALL_4()
11178 if (!selected_sk) in BPF_CALL_4()
11184 if (sk_is_refcounted(selected_sk)) in BPF_CALL_4()
11185 sock_put(selected_sk); in BPF_CALL_4()
11200 if (sk->sk_protocol != selected_sk->sk_protocol) in BPF_CALL_4()
11202 else if (sk->sk_family != selected_sk->sk_family) in BPF_CALL_4()
11209 reuse_kern->selected_sk = selected_sk; in BPF_CALL_4()
[all …]