linux/net/mptcp
Geliang Tang 3bc253c2e6 bpf: Add bpf_skc_to_mptcp_sock_proto
This patch implements a new struct bpf_func_proto, named
bpf_skc_to_mptcp_sock_proto. Define a new bpf_id BTF_SOCK_TYPE_MPTCP,
and a new helper bpf_skc_to_mptcp_sock(), which invokes another new
helper bpf_mptcp_sock_from_subflow() in net/mptcp/bpf.c to get struct
mptcp_sock from a given subflow socket.

v2: Emit BTF type, add func_id checks in verifier.c and bpf_trace.c,
remove build check for CONFIG_BPF_JIT
v5: Drop EXPORT_SYMBOL (Martin)

Co-developed-by: Nicolas Rybowski <nicolas.rybowski@tessares.net>
Co-developed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Nicolas Rybowski <nicolas.rybowski@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
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>
Link: https://lore.kernel.org/bpf/20220519233016.105670-2-mathew.j.martineau@linux.intel.com
2022-05-20 15:29:00 -07:00
..
bpf.c bpf: Add bpf_skc_to_mptcp_sock_proto 2022-05-20 15:29:00 -07:00
crypto_test.c mptcp: move crypto test to KUNIT 2020-06-26 16:21:39 -07:00
crypto.c kunit: mptcp: adhere to KUNIT formatting standard 2021-04-16 17:10:40 -07:00
ctrl.c mptcp: faster active backup recovery 2021-08-14 11:37:25 +01:00
diag.c mptcp: allow dumping subflow context to userspace 2020-03-29 22:14:48 -07:00
Kconfig kunit: mptcp: adhere to KUNIT formatting standard 2021-04-16 17:10:40 -07:00
Makefile bpf: Add bpf_skc_to_mptcp_sock_proto 2022-05-20 15:29:00 -07:00
mib.c mptcp: add mib for infinite map sending 2022-04-23 11:51:05 +01:00
mib.h mptcp: add mib for infinite map sending 2022-04-23 11:51:05 +01:00
mptcp_diag.c mptcp: listen diag dump support 2022-04-11 11:55:53 +01:00
options.c mptcp: infinite mapping sending 2022-04-23 11:51:05 +01:00
pm_netlink.c mptcp: add pm_nl_pernet helpers 2022-04-11 11:55:53 +01:00
pm.c mptcp: reset subflow when MP_FAIL doesn't respond 2022-04-27 10:45:54 +01:00
protocol.c mptcp: reset subflow when MP_FAIL doesn't respond 2022-04-27 10:45:54 +01:00
protocol.h mptcp: reset subflow when MP_FAIL doesn't respond 2022-04-27 10:45:54 +01:00
sockopt.c mptcp: remove locking in mptcp_diag_fill_info 2022-04-11 11:55:53 +01:00
subflow.c mptcp: reset subflow when MP_FAIL doesn't respond 2022-04-27 10:45:54 +01:00
syncookies.c mptcp: don't return sockets in foreign netns 2021-09-24 10:51:36 +01:00
token_test.c mptcp: don't return sockets in foreign netns 2021-09-24 10:51:36 +01:00
token.c mptcp: full disconnect implementation 2022-01-07 11:27:06 +00:00