Files
linux-rockchip/include/linux
Lorenz Bauer 7c32e8f8bc bpf: Add PROG_TEST_RUN support for sk_lookup programs
Allow to pass sk_lookup programs to PROG_TEST_RUN. User space
provides the full bpf_sk_lookup struct as context. Since the
context includes a socket pointer that can't be exposed
to user space we define that PROG_TEST_RUN returns the cookie
of the selected socket or zero in place of the socket pointer.

We don't support testing programs that select a reuseport socket,
since this would mean running another (unrelated) BPF program
from the sk_lookup test handler.

Signed-off-by: Lorenz Bauer <lmb@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210303101816.36774-3-lmb@cloudflare.com
2021-03-04 19:11:29 -08:00
..
2021-02-17 14:07:48 +01:00
2020-12-19 11:18:38 -08:00
2021-01-06 16:24:59 -08:00
2021-02-11 13:24:44 -08:00
2021-02-17 14:12:42 +01:00
2021-01-22 15:09:42 +01:00
2021-01-14 11:20:17 +01:00
2021-01-04 11:42:21 -05:00
2021-02-02 10:26:12 +01:00
2021-02-17 13:17:49 -08:00
2021-01-27 09:51:49 -07:00
2021-01-06 16:24:59 -08:00
2021-02-08 22:58:55 +01:00