MPTCP sockmap support
Get series with b4
b4 am [email protected]Versions newest first
- v5 Latest16 patches 11 repliesIn review
Changes in v5 from the cover letter
- Patches 1-4 are from "Reduce the differences between TCP and MPTCP for TLS usage" set.
- More patches for sockmap support.
- Rename this set from "implement psock_update_sk_prot" to "MPTCP sockmap support"
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | mptcp: defer read_sock cleanup to mptcp_workernet/ net/ | +26 | 0 replies | |
| 2/16 | mptcp: add sendmsg_locked to proto_opsnet/ | +14 | 0 replies | |
| 3/16 | mptcp: track app-limited state in mptcp_sendmsginclude/ net/ net/ | +26 | 0 replies | |
| 4/16 | selftests: mptcp: sockopt: check app_limitedtools/ | +1 | 0 replies | |
| 5/16 | bpf: drop duplicate check_app_limited in tcp_bpf_pushnet/ | +0 | 2 replies | |
| 6/16 | mptcp: implement psock_update_sk_prot for sockmapinclude/ net/ net/ +2 more | +179 | 2 replies | |
| 7/16 | mptcp: add sock_map_update BPF helperinclude/ include/ kernel/ +3 more | +59 | 0 replies | |
| 8/16 | selftests/bpf: enable MPTCP support in sockmap teststools/ tools/ | +20 | 0 replies | |
| 9/16 | mptcp: implement read_skb for sockmap stream verdictnet/ | +27 | 0 replies | |
| 10/16 | bpf: export and generalize tcp_bpf_ioctlinclude/ net/ net/ | +7 | 0 replies | |
| 11/16 | mptcp: add TCP_REPAIR sockopt supportnet/ net/ | +13 | 2 replies | |
| 12/16 | selftests/bpf: add MPTCP coverage to sockmap_basictools/ tools/ | +43 | 0 replies | |
| 13/16 | mptcp: add sk_is_msk() helper and use it in sockmapinclude/ net/ | +17 | 0 replies | |
| 14/16 | mptcp: add SO_ATTACH_REUSEPORT_EBPF supportnet/ | +13 | 0 replies | |
| 15/16 | mptcp: add sk_select_reuseport BPF helperinclude/ include/ kernel/ +2 more | +77 | 0 replies | |
| 16/16 | selftests/bpf: add MPTCP coverage to sockmap_listentools/ tools/ | +101 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH mptcp-next v5 00/16] MPTCP sockmap support
From: Geliang Tang <[email protected]>
v5:
- Patches 1-4 are from "Reduce the differences between TCP and MPTCP for TLS usage" set.
- More patches for sockmap support.
- Rename this set from "implement psock_update_sk_prot" to "MPTCP sockmap support"
v4:
- Address Mat's comments: implement .read_skb to make the selftests run.
- Move mptcp_bpf_update_proto() from protocol.c to bpf.c.
- Include the "implement .splice_eof" patches in this series, as they
both modify mptcp_prot, mptcp_stream_ops and mptcp_v6_stream_ops.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
v3:
- Address the comments by ai review.
- use WRITE_ONCE to set sk->sk_write_space.
- update the selftest, set a new key for client socket.
- Fix line length warnings.
- https://patchwork.kernel.org/project/mptcp/cover/[email protected]/
RESEND:
- rebased.
- to trigger ai review.
v2:
- Include mptcp_bpf_update_proto within CONFIG_BPF_SYSCALL to fix the
compilation errors reported by the kernel test robot.
- Add checks for IS_ENABLED(CONFIG_MPTCP_IPV6).
Implement psock_update_sk_prot, for basic MPTCP BPF SOCKMAP support.
Geliang Tang (15):
mptcp: add sendmsg_locked to proto_ops
mptcp: track app-limited state in mptcp_sendmsg
selftests: mptcp: sockopt: check app_limited
bpf: drop duplicate check_app_limited in tcp_bpf_push
mptcp: implement psock_update_sk_prot for sockmap
mptcp: add sock_map_update BPF helper selftests/bpf: enable MPTCP support in sockmap tests
mptcp: implement read_skb for sockmap stream verdict
bpf: export and generalize tcp_bpf_ioctl
mptcp: add TCP_REPAIR sockopt support selftests/bpf: add MPTCP coverage to sockmap_basic
mptcp: add sk_is_msk() helper and use it in sockmap
mptcp: add SO_ATTACH_REUSEPORT_EBPF support
mptcp: add sk_select_reuseport BPF helper selftests/bpf: add MPTCP coverage to sockmap_listen
Paolo Abeni (1):
mptcp: defer read_sock cleanup to mptcp_worker
include/linux/bpf.h | 13 ++ include/net/mptcp.h | 12 ++ include/net/tcp.h | 7 + include/uapi/linux/bpf.h | 19 ++ kernel/bpf/verifier.c | 8 +- net/core/filter.c | 60 +++++- net/core/sock_map.c | 14 +- net/ipv4/tcp.c | 9 +- net/ipv4/tcp_bpf.c | 40 ++-- net/mptcp/bpf.c | 172 ++++++++++++++++++ net/mptcp/protocol.c | 114 ++++++++++-- net/mptcp/protocol.h | 20 ++ net/mptcp/sockopt.c | 21 ++- .../testing/selftests/bpf/prog_tests/mptcp.c | 27 +-- .../selftests/bpf/prog_tests/socket_helpers.h | 25 ++- .../selftests/bpf/prog_tests/sockmap_basic.c | 33 +++- .../selftests/bpf/prog_tests/sockmap_listen.c | 122 ++++++++----- .../selftests/bpf/progs/mptcp_sockmap.c | 8 +- .../selftests/bpf/progs/test_sockmap_listen.c | 25 +++ .../selftests/net/mptcp/mptcp_sockopt.c | 1 + 20 files changed, 622 insertions(+), 128 deletions(-)
Signature · 1 line
2.53.0