Geliang Tang
3bc48b56e3
selftests/bpf: Test bpf_skc_to_mptcp_sock
...
This patch extends the MPTCP test base, to test the new helper
bpf_skc_to_mptcp_sock().
Define struct mptcp_sock in bpf_tcp_helpers.h, use bpf_skc_to_mptcp_sock
to get the msk socket in progs/mptcp_sock.c and store the infos in
socket_storage_map.
Get the infos from socket_storage_map in prog_tests/mptcp.c. Add a new
function verify_msk() to verify the infos of MPTCP socket, and rename
verify_sk() to verify_tsk() to verify TCP socket only.
v2: Add CONFIG_MPTCP check for clearer error messages
v4:
- use ASSERT_* instead of CHECK_FAIL (Andrii)
- drop bpf_mptcp_helpers.h (Andrii)
v5:
- some 'ASSERT_*' were replaced in the next commit by mistake.
- Drop CONFIG_MPTCP (Martin)
- Use ASSERT_EQ (Andrii)
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Link: https://lore.kernel.org/bpf/20220519233016.105670-5-mathew.j.martineau@linux.intel.com
2022-05-20 15:34:39 -07:00
..
2020-03-25 11:50:48 +01:00
2022-03-03 16:54:10 +01:00
2022-04-10 20:08:20 -07:00
2021-02-08 17:55:01 -08:00
2022-02-28 16:28:40 +01:00
2022-04-28 23:46:04 +02:00
2020-06-28 10:06:53 -07:00
2022-03-16 15:07:49 -07:00
2021-11-25 23:37:38 +01:00
2022-05-10 21:58:40 -07:00
2022-01-18 15:45:06 -08:00
2021-10-08 15:17:00 -07:00
2022-05-10 11:20:45 -07:00
2021-11-30 10:56:28 -08:00
2022-04-18 21:22:13 -07:00
2022-02-02 22:31:18 -08:00
2021-12-14 14:38:05 -08:00
2022-04-11 17:18:09 +02:00
2021-12-02 15:23:40 -08:00
2021-12-08 23:05:26 -08:00
2022-03-01 13:41:48 +01:00
2021-10-25 20:39:42 -07:00
2021-01-12 17:23:47 -08:00
2021-08-16 18:38:52 -07:00
2021-12-16 21:41:18 +01:00
2021-11-11 16:54:06 -08:00
2022-03-05 18:39:51 -08:00
2021-11-11 17:41:11 -08:00
2022-04-19 14:02:49 -07:00
2021-10-08 15:17:00 -07:00
2022-03-15 17:03:10 +01:00
2022-03-15 17:03:10 +01:00
2022-03-15 17:03:10 +01:00
2022-01-19 12:51:30 -08:00
2021-10-08 15:17:00 -07:00
2021-05-25 17:32:35 -07:00
2021-10-08 15:10:43 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-12-14 14:38:05 -08:00
2022-05-13 15:15:21 +02:00
2020-08-13 16:45:41 -07:00
2022-02-04 11:29:01 -08:00
2022-02-04 11:29:01 -08:00
2021-01-08 13:39:24 -08:00
2022-05-09 17:15:32 +02:00
2022-05-13 15:15:21 +02:00
2022-03-05 09:38:15 -08:00
2022-01-19 01:27:03 +01:00
2022-03-30 19:31:30 -07:00
2020-05-01 10:36:32 -07:00
2020-07-01 09:06:12 +02:00
2021-11-08 22:17:55 +01:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-10-28 16:30:07 -07:00
2022-05-11 18:22:21 -07:00
2022-02-02 22:31:18 -08:00
2022-03-08 17:39:29 -08:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:24 -08:00
2022-02-02 22:31:18 -08:00
2022-05-13 15:15:21 +02:00
2021-10-25 21:43:05 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-03-28 20:00:11 -07:00
2022-01-25 17:59:07 -08:00
2022-01-12 17:01:38 -08:00
2022-03-15 17:03:10 +01:00
2022-02-02 22:31:18 -08:00
2020-11-05 20:04:46 -08:00
2021-05-25 17:32:35 -07:00
2022-04-19 13:48:20 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-05-11 12:58:12 -07:00
2022-04-06 10:32:12 -07:00
2022-02-08 21:17:34 +01:00
2020-10-02 14:59:25 -07:00
2022-02-02 22:31:18 -08:00
2021-11-25 23:05:23 +01:00
2021-12-17 23:11:13 +01:00
2021-05-25 17:32:35 -07:00
2022-04-26 15:41:46 -07:00
2021-04-23 14:05:27 -07:00
2021-04-23 14:05:27 -07:00
2021-11-07 08:34:23 -08:00
2022-03-03 16:54:10 +01:00
2022-04-28 20:03:29 -07:00
2022-05-13 15:15:21 +02:00
2020-11-05 19:55:57 -08:00
2022-05-13 15:15:21 +02:00
2022-02-02 22:31:18 -08:00
2022-05-20 15:07:41 -07:00
2022-02-02 22:31:18 -08:00
2020-09-15 18:28:27 -07:00
2021-11-07 09:14:15 -08:00
2021-04-08 23:54:48 -07:00
2022-02-02 22:31:18 -08:00
2021-10-08 13:22:57 -07:00
2022-05-20 15:34:39 -07:00
2022-04-06 10:15:53 -07:00
2021-08-24 14:17:53 -07:00
2021-10-08 15:17:00 -07:00
2022-03-15 17:03:10 +01:00
2020-09-30 23:21:06 -07:00
2022-03-08 17:39:28 -08:00
2021-11-11 16:54:05 -08:00
2021-05-25 17:32:35 -07:00
2022-03-08 17:39:28 -08:00
2021-11-25 23:37:38 +01:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2020-11-19 11:58:15 -08:00
2021-10-08 15:17:00 -07:00
2021-11-28 22:24:57 -08:00
2022-02-02 22:31:18 -08:00
2022-04-18 21:22:13 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:23 -08:00
2022-02-02 22:31:18 -08:00
2021-10-21 17:10:11 -07:00
2021-10-06 12:34:02 -07:00
2022-04-19 13:48:20 -07:00
2021-10-25 14:45:45 -07:00
2022-05-09 17:15:32 +02:00
2021-10-28 16:30:07 -07:00
2020-07-25 20:37:02 -07:00
2021-12-14 22:16:54 +01:00
2021-10-08 15:17:00 -07:00
2022-03-11 22:18:13 +01:00
2022-02-02 22:31:18 -08:00
2021-09-28 13:51:19 -07:00
2021-12-14 22:16:54 +01:00
2021-10-08 15:17:00 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-04-20 23:48:34 +02:00
2021-10-21 15:11:06 -07:00
2021-10-21 17:10:10 -07:00
2021-10-08 15:17:00 -07:00
2022-04-11 17:18:09 +02:00
2022-01-31 12:39:12 -08:00
2021-02-11 17:44:41 -08:00
2022-02-02 22:31:18 -08:00
2021-11-25 23:37:38 +01:00
2022-01-12 17:01:38 -08:00
2021-12-14 14:38:05 -08:00
2021-12-02 15:23:40 -08:00
2021-08-20 01:10:01 +02:00
2022-01-19 13:05:13 -08:00
2021-11-07 08:34:23 -08:00
2022-02-02 22:31:18 -08:00
2021-02-10 11:05:34 -08:00
2022-05-13 15:15:21 +02:00
2022-05-13 15:15:21 +02:00
2021-12-14 14:38:05 -08:00
2022-03-20 19:16:50 -07:00
2021-12-14 14:38:05 -08:00
2021-05-13 17:23:57 -07:00
2022-03-16 15:13:36 -07:00
2022-03-17 23:12:48 -07:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:23 -08:00
2021-11-07 08:34:23 -08:00
2021-02-26 11:51:48 -08:00
2022-01-26 20:04:01 -08:00
2021-05-17 17:52:20 +02:00
2022-04-11 17:18:09 +02:00
2021-11-07 08:34:23 -08:00
2021-05-25 17:32:35 -07:00
2021-12-02 15:23:40 -08:00
2020-12-03 17:23:24 -08:00
2022-02-08 21:45:06 -08:00
2021-11-26 00:15:03 +01:00
2020-11-18 01:36:27 +01:00
2022-04-06 10:32:12 -07:00
2022-03-10 18:57:55 -08:00
2021-12-29 17:54:40 -08:00
2021-04-25 21:09:02 -07:00
2021-12-14 14:38:05 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-04-19 13:48:20 -07:00
2022-05-11 12:58:12 -07:00
2022-02-11 13:13:04 -08:00
2022-05-13 15:15:21 +02:00
2022-02-02 22:31:18 -08:00
2021-11-07 08:34:23 -08:00
2022-02-02 22:31:18 -08:00
2021-10-28 16:30:07 -07:00
2021-10-28 16:30:07 -07:00
2021-12-14 14:38:05 -08:00
2021-05-25 17:32:35 -07:00
2022-04-21 18:48:04 +02:00
2022-05-13 22:07:48 +02:00
2020-08-13 16:45:41 -07:00
2021-10-28 16:30:07 -07:00
2022-02-10 17:48:30 -08:00
2022-02-08 21:17:34 +01:00
2022-02-03 16:32:25 +01:00
2021-11-26 00:15:03 +01:00
2022-02-02 22:31:18 -08:00
2021-07-07 19:51:13 -07:00
2022-02-08 21:17:34 +01:00
2022-02-08 21:17:34 +01:00
2022-03-11 22:01:26 +01:00
2022-02-03 16:32:25 +01:00
2022-02-03 16:32:25 +01:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2022-02-02 22:31:18 -08:00
2021-09-26 13:07:28 -07:00