MPTCP Linux Development
 help / color / mirror / Atom feed
* [PATCH mptcp-next v6 0/2] mptcp: add scheduler-owned subflow avoid flag
@ 2026-11-23 10:08 Kalpan Jani
  2026-11-23 10:08 ` [PATCH mptcp-next v6 1/2] mptcp: sched: add subflow avoid flag and enforce it in default sched Kalpan Jani
  2026-11-23 10:08 ` [PATCH mptcp-next v6 2/2] selftests: mptcp: bpf: exercise the subflow avoid flag across rounds Kalpan Jani
  0 siblings, 2 replies; 4+ messages in thread
From: Kalpan Jani @ 2026-11-23 10:08 UTC (permalink / raw)
  To: mptcp; +Cc: shardul.b, janak, kalpanjani009, Kalpan Jani

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-23 10:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 10:08 [PATCH mptcp-next v6 0/2] mptcp: add scheduler-owned subflow avoid flag Kalpan Jani
2026-11-23 10:08 ` [PATCH mptcp-next v6 1/2] mptcp: sched: add subflow avoid flag and enforce it in default sched Kalpan Jani
2026-11-23 10:18   ` sashiko-bot
2026-11-23 10:08 ` [PATCH mptcp-next v6 2/2] selftests: mptcp: bpf: exercise the subflow avoid flag across rounds Kalpan Jani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox