The MPTCP scheduler currently has no persistent way to mark a
subflow as one that should be avoided across scheduling rounds.
The existing stale and scheduled states do not provide this
scheduler-owned behaviour.
This series introduces an avoid flag in mptcp_subflow_context,
exposes it to BPF struct_ops schedulers through a kfunc, and
exports its state through MPTCP diagnostics.
The default in-kernel subflow picker skips avoided subflows.
Custom schedulers can explicitly inspect and honour the flag.
The second patch adds a BPF struct_ops selftest that marks a
subflow as avoided once and verifies that it remains skipped
across subsequent scheduling rounds.
Changes since v5:
- Rebased the two-patch series onto the current mptcp/export tree.
- No functional changes to the patches.
Kalpan Jani (2):
mptcp: sched: add subflow avoid flag and enforce it in default sched
selftests: mptcp: bpf: exercise the subflow avoid flag across rounds
include/uapi/linux/mptcp.h | 1 +
net/mptcp/bpf.c | 1 +
net/mptcp/diag.c | 2 +
net/mptcp/protocol.c | 4 +-
net/mptcp/protocol.h | 3 +
net/mptcp/sched.c | 6 ++
.../testing/selftests/bpf/prog_tests/mptcp.c | 15 ++++
.../selftests/bpf/progs/mptcp_bpf_avoid.c | 87 +++++++++++++++++++
8 files changed, 117 insertions(+), 2 deletions(-)
create mode 100644 tools/testing/selftests/bpf/progs/mptcp_bpf_avoid.c
--
2.43.0