MPTCP Linux Development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Kalpan Jani" <kalpan.jani@mpiricsoftware.com>, mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-next v7 1/2] mptcp: sched: add subflow avoid flag for BPF schedulers
Date: Mon, 23 Nov 2026 12:47:02 +0000	[thread overview]
Message-ID: <sashiko-outbox-229247@kernel.org> (raw)
In-Reply-To: <20261123123730.3265284-2-kalpan.jani@mpiricsoftware.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] mptcp: sched: subflow avoid flag is unused by MPTCP core
--

commit 0e785089a6ea448f3459342cf4c1519134065b30
Author: Kalpan Jani <kalpan.jani@mpiricsoftware.com>

mptcp: sched: add subflow avoid flag for BPF schedulers

This commit adds an avoid boolean to struct mptcp_subflow_context, a
mptcp_subflow_set_avoid() BPF kfunc for struct_ops packet schedulers,
and the MPTCP_SUBFLOW_FLAG_AVOID diagnostic flag.

Link: https://github.com/multipath-tcp/mptcp_net-next/issues/349

> diff --git a/net/mptcp/sched.c b/net/mptcp/sched.c
> index 1e59072d478c9..0ce59eb093df6 100644
> --- a/net/mptcp/sched.c
> +++ b/net/mptcp/sched.c
> @@ -165,6 +165,12 @@ void mptcp_subflow_set_scheduled(struct mptcp_subflow_context *subflow,
>  	WRITE_ONCE(subflow->scheduled, scheduled);
>  }
>  
> +__bpf_kfunc void mptcp_subflow_set_avoid(struct mptcp_subflow_context *subflow,
> +					 bool avoid)
> +{
> +	WRITE_ONCE(subflow->avoid, avoid);
> +}
> +
>  int mptcp_sched_get_send(struct mptcp_sock *msk)
>  {
>  	struct mptcp_subflow_context *subflow;

[Severity: Medium]
As reported by Paolo Abeni on v1 [1], what does subflow->avoid provide
when the MPTCP core never reads or acts on it?

Outside of subflow_get_info() exporting MPTCP_SUBFLOW_FLAG_AVOID for
diagnostics, nothing in the MPTCP core checks subflow->avoid during
scheduling, transmission, retransmission, or activity evaluation.  A BPF
scheduler calling mptcp_subflow_set_avoid() only stores a boolean for
that same BPF scheduler to read back before calling
mptcp_subflow_set_scheduled(), without changing any core subflow
handling.

[1] https://lore.kernel.org/r/74e1a388-2d49-4dea-96d1-4a7844a63b08@redhat.com

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123123730.3265284-1-kalpan.jani@mpiricsoftware.com?part=1

  reply	other threads:[~2026-11-23 12:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 12:37 [PATCH mptcp-next v7 0/2] mptcp: add scheduler-owned subflow avoid flag Kalpan Jani
2026-11-23 12:37 ` [PATCH mptcp-next v7 1/2] mptcp: sched: add subflow avoid flag for BPF schedulers Kalpan Jani
2026-11-23 12:47   ` sashiko-bot [this message]
2026-11-23 12:37 ` [PATCH mptcp-next v7 2/2] selftests: mptcp: bpf: exercise the subflow avoid flag across rounds Kalpan Jani
2026-11-23 12:52   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-229247@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=kalpan.jani@mpiricsoftware.com \
    --cc=mptcp@lists.linux.dev \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox