Files
linux/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
..
2020-12-09 19:26:02 -06:00
2020-12-02 09:46:55 -07: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
2020-12-10 12:42:59 -06:00
2020-11-16 16:31:41 +01:00
2020-11-16 15:20:01 +01:00
2020-11-16 08:14:30 -07:00
2021-02-11 13:24:44 -08:00
2020-12-02 22:10:35 -08:00
2020-11-23 14:16:55 +00:00
2020-12-08 14:14:48 +00:00
2020-11-24 16:47:48 +01:00
2020-12-15 16:19:31 +01:00
2020-12-15 16:19:31 +01: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
2020-12-07 10:29:57 +01:00
2020-12-04 12:23:25 +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
2020-12-15 15:11:08 -06:00
2020-12-03 11:20:52 +01:00
2020-12-15 12:13:39 -08:00
2020-12-07 17:12:49 -07:00
2020-11-06 10:05:18 -08:00
2020-12-10 16:17:15 +01:00
2020-11-24 16:47:49 +01:00
2020-12-10 10:45:36 +01:00
2021-01-27 09:51:49 -07:00
2020-10-30 21:57:04 +01:00
2021-01-06 16:24:59 -08:00
2020-12-04 16:54:35 +01:00
2020-11-09 18:39:36 +01:00
2021-02-08 22:58:55 +01:00