BPF packet scheduler updates part 1
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v11 Latest11 patches 9 repliesIn review
- v1013 patches 7 repliesSuperseded
- v923 patches 4 repliesSuperseded
Earlier versions · 9
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v8 | 17 patches | 17 replies | Superseded | |
| v7 | 19 patches | 7 replies | Superseded | |
| v6 | 18 patches | 2 replies | Superseded | |
| v5 | 18 patches | 2 replies | Superseded | |
| v4 | 14 patches | 2 replies | Superseded | |
| v3 posting 2/2 | 15 patches | 2 replies | Superseded | |
| v3 posting 1/2 | 3 of 15 patches | 0 replies | Superseded | |
| v2 | 12 patches | 2 replies | Superseded | |
| v1 | 8 patches | 2 replies | Superseded |
Changes in v11 from the cover letter
- use sk_storage instead of mptcp_storage.
- drop mptcp_storage.
Patches in v11 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | Squash to "mptcp: drop last_snd and MPTCP_RESET_SCHEDULER"net/ net/ | +0 | 0 replies | |
| 2/11 | Squash to "mptcp: add struct mptcp_sched_ops"include/ | +6 | 0 replies | |
| 3/11 | Squash to "mptcp: add sched_data_set_contexts helper"net/ net/ | +11 | 2 replies | |
| 4/11 | mptcp: register default schedulernet/ net/ net/ | +37 | 0 replies | |
| 5/11 | Squash to "bpf: Add bpf_mptcp_sched_ops"net/ | +15 | 0 replies | |
| 6/11 | Squash to "bpf: Add bpf_mptcp_sched_kfunc_set"net/ | +1 | 0 replies | |
| 7/11 | Squash to "selftests/bpf: Add mptcp sched structs"tools/ | +8 | 0 replies | |
| 8/11 | Squash to "selftests/bpf: Add bpf_first scheduler"tools/ | +6 | 0 replies | |
| 9/11 | Squash to "selftests/bpf: Add bpf_bkup scheduler"tools/ | +12 | 0 replies | |
| 10/11 | Squash to "selftests/bpf: Add bpf_rr scheduler"tools/ tools/ | +39 | 2 replies | |
| 11/11 | Squash to "selftests/bpf: Add bpf_red scheduler"tools/ | +8 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v11 yet.
Cover letter [PATCH mptcp-next v11 00/11] BPF packet scheduler updates part 1
v11:
- use sk_storage instead of mptcp_storage.
- drop mptcp_storage.
v10:
- add mptcp_storage map type.
- update scheduler API.
v9:
- merge 'Squash to "BPF packet scheduler updates v8"' and 'mptcp:
make the contexts array of sched_data invisible in BPF'
v8:
address Paolo's comments in v7:
- add sched_data into mptcp_sock as new field, not an pointer.
- drop rename __mptcp_set_timeout, export mptcp_set_timeout into BPF context instead.
- add a comment in bpf_burst to explan why not use
"ssk = send_info[SSK_MODE_ACTIVE].ssk;" directly.
- move mptcp_subflow_tcp_sock into bpf_tcp_helpers.h.
v7:
- drop more last_snd, only set it in bpf_rr.
- 1-10: save sched_data at mptcp_sock, for issues #342
- 11-16: add bpf_burst scheduler
- 17-19: add bpf_stale scheduler, for issues #349
v6:
- Only update patches 14, 15. Add a helper bpf_mptcp_subflow_ctx, fix bug in bpf_burst_get_retrans().
v5:
- 1-9: save sched_data at mptcp_sock, for issues #342
- 10-15: add bpf_burst scheduler
- 16-18: add bpf_stale scheduler, for issues #349
v4:
- drop "mptcp: add three helpers for bpf_burst", implement the helpers in the bpf context directly.
v3:
- address Florian's comments in v2.
- split into three more patches.
v2:
- fix this error reported by CI:
KASAN: slab-use-after-free in __mptcp_close_ssk (net/mptcp/protocol.c:2461) - add bpf burst scheduler.
This patchset adds sched_data pointer into mptcp_sock to to save some data at MPTCP and subflows levels.
With these changes, the old patch "mptcp: register default scheduler" in
[1] now works.
https://patchwork.kernel.org/project/mptcp/cover/[email protected]/ [1]
Geliang Tang (11):
Squash to "mptcp: drop last_snd and MPTCP_RESET_SCHEDULER" Squash to "mptcp: add struct mptcp_sched_ops" Squash to "mptcp: add sched_data_set_contexts helper"
mptcp: register default scheduler
Squash to "bpf: Add bpf_mptcp_sched_ops"
Squash to "bpf: Add bpf_mptcp_sched_kfunc_set" Squash to "selftests/bpf: Add mptcp sched structs" Squash to "selftests/bpf: Add bpf_first scheduler" Squash to "selftests/bpf: Add bpf_bkup scheduler" Squash to "selftests/bpf: Add bpf_rr scheduler" Squash to "selftests/bpf: Add bpf_red scheduler"
include/net/mptcp.h | 11 +++-- net/mptcp/bpf.c | 17 ++++++- net/mptcp/protocol.c | 10 +--- net/mptcp/protocol.h | 4 +- net/mptcp/sched.c | 46 ++++++++++++++++++- tools/testing/selftests/bpf/bpf_tcp_helpers.h | 20 +++++--- .../selftests/bpf/progs/mptcp_bpf_bkup.c | 21 +++++---- .../selftests/bpf/progs/mptcp_bpf_first.c | 12 ++--- .../selftests/bpf/progs/mptcp_bpf_red.c | 16 +++---- .../selftests/bpf/progs/mptcp_bpf_rr.c | 44 ++++++++++++++---- 10 files changed, 143 insertions(+), 58 deletions(-)
Signature · 1 line
2.35.3