Home
last modified time | relevance | path

Searched refs:selected_sk (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/include/linux/
H A Dfilter.h1326 struct sock *selected_sk; member
1337 * SK_PASS && ctx.selected_sk != NULL: use selected_sk as lookup result
1338 * SK_PASS && ctx.selected_sk == NULL: continue to htable-based socket lookup
1344 * 1. If any program returned SK_PASS and a non-NULL ctx.selected_sk,
1345 * macro result is SK_PASS and last ctx.selected_sk is used.
1348 * 3. Otherwise result is SK_PASS and ctx.selected_sk is NULL.
1367 _ctx->selected_sk = _selected_sk; \
1371 if (_ret == SK_PASS && _ctx->selected_sk) { \
1373 _selected_sk = _ctx->selected_sk; \
1392 struct sock *selected_sk = NULL; bpf_sk_lookup_run_v4() local
1430 struct sock *selected_sk = NULL; bpf_sk_lookup_run_v6() local
[all...]
H A Dbpf.h2045 struct sock *selected_sk; member
/kernel/linux/linux-6.6/include/linux/
H A Dfilter.h1365 struct sock *selected_sk; member
1377 * SK_PASS && ctx.selected_sk != NULL: use selected_sk as lookup result
1378 * SK_PASS && ctx.selected_sk == NULL: continue to htable-based socket lookup
1384 * 1. If any program returned SK_PASS and a non-NULL ctx.selected_sk,
1385 * macro result is SK_PASS and last ctx.selected_sk is used.
1388 * 3. Otherwise result is SK_PASS and ctx.selected_sk is NULL.
1407 _ctx->selected_sk = _selected_sk; \
1411 if (_ret == SK_PASS && _ctx->selected_sk) { \
1413 _selected_sk = _ctx->selected_sk; \
1432 struct sock *selected_sk = NULL; bpf_sk_lookup_run_v4() local
1471 struct sock *selected_sk = NULL; bpf_sk_lookup_run_v6() local
[all...]
H A Dbpf.h3090 struct sock *selected_sk; member
/kernel/linux/linux-6.6/net/bpf/
H A 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()
/kernel/linux/linux-5.10/net/core/
H A Dfilter.c10026 reuse_kern->selected_sk = NULL; in bpf_init_reuseport_kern()
10044 return reuse_kern.selected_sk; in bpf_run_sk_reuseport()
10054 struct sock *selected_sk; in BPF_CALL_4() local
10056 selected_sk = map->ops->map_lookup_elem(map, key); in BPF_CALL_4()
10057 if (!selected_sk) in BPF_CALL_4()
10060 reuse = rcu_dereference(selected_sk->sk_reuseport_cb); in BPF_CALL_4()
10063 if (sk_is_refcounted(selected_sk)) in BPF_CALL_4()
10064 sock_put(selected_sk); in BPF_CALL_4()
10079 if (sk->sk_protocol != selected_sk->sk_protocol) in BPF_CALL_4()
10081 else if (sk->sk_family != selected_sk in BPF_CALL_4()
[all...]
/kernel/linux/linux-6.6/net/core/
H A 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 in BPF_CALL_4()
[all...]

Completed in 39 milliseconds