Home
last modified time | relevance | path

Searched refs:bpf_sk_assign (Results 1 – 6 of 6) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sk_lookup.c121 err = bpf_sk_assign(ctx, sk, 0); in redir_port()
144 err = bpf_sk_assign(ctx, sk, 0); in redir_ip4()
170 err = bpf_sk_assign(ctx, sk, 0); in redir_ip6()
185 err = bpf_sk_assign(ctx, sk, 0); in select_sock_a()
200 err = bpf_sk_assign(ctx, sk, BPF_SK_LOOKUP_F_NO_REUSEPORT); in select_sock_a_no_reuseport()
226 err = bpf_sk_assign(ctx, sk, 0); in sk_assign_eexist()
234 err = bpf_sk_assign(ctx, sk, 0); in sk_assign_eexist()
259 err = bpf_sk_assign(ctx, sk, 0); in sk_assign_replace_flag()
267 err = bpf_sk_assign(ctx, sk, BPF_SK_LOOKUP_F_REPLACE); in sk_assign_replace_flag()
289 err = bpf_sk_assign(ctx, NULL, 0); in sk_assign_null()
[all …]
H A Dtest_btf_skc_cls_ingress.c139 if (bpf_sk_assign(skb, req_sk, 0)) { in handle_ip6_tcp()
157 if (bpf_sk_assign(skb, tp, 0)) { in cls_ingress()
169 if (bpf_sk_assign(skb, bpf_skc, 0))
H A Dtest_sk_assign.c127 ret = bpf_sk_assign(skb, sk, 0); in handle_udp()
166 ret = bpf_sk_assign(skb, sk, 0); in handle_tcp()
H A Dtest_assign_reuse.c75 ret = bpf_sk_assign(skb, sk, 0); in assign_sk()
/linux/Documentation/bpf/
H A Dprog_sk_lookup.rst12 incoming packet by calling the ``bpf_sk_assign()`` BPF helper function.
59 calling ``bpf_sk_assign()`` BPF helper. Typically, the program looks up a socket
61 ``struct bpf_sock *`` to ``bpf_sk_assign()`` helper to record the
87 * the socket that has been selected with ``bpf_sk_assign()``.
92 for ``bpf_sk_assign()`` for details.
/linux/net/core/
H A Dfilter.c7508 BPF_CALL_3(bpf_sk_assign, struct sk_buff *, skb, struct sock *, sk, u64, flags) in BPF_CALL_3() argument
7530 .func = bpf_sk_assign,