From: Paolo Abeni <pabeni@redhat.com>
To: Eric Dumazet <edumazet@google.com>, Mat Martineau <martineau@kernel.org>
Cc: Matthieu Baerts <matttbe@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
netdev@vger.kernel.org, mptcp@lists.linux.dev
Subject: Re: [PATCH net-next 9/9] mptcp: refactor sndbuf auto-tuning
Date: Mon, 06 Nov 2023 08:21:52 +0100 [thread overview]
Message-ID: <1831224a48dfbf54fb45fa56fce826d1d312700f.camel@redhat.com> (raw)
In-Reply-To: <CANn89iLZUA6S2a=K8GObnS62KK6Jt4B7PsAs7meMFooM8xaTgw@mail.gmail.com>
Hi,
On Thu, 2023-11-02 at 18:19 +0100, Eric Dumazet wrote:
> On Mon, Oct 23, 2023 at 10:45 PM Mat Martineau <martineau@kernel.org> wrote:
> >
> > From: Paolo Abeni <pabeni@redhat.com>
> >
> > The MPTCP protocol account for the data enqueued on all the subflows
> > to the main socket send buffer, while the send buffer auto-tuning
> > algorithm set the main socket send buffer size as the max size among
> > the subflows.
> >
> > That causes bad performances when at least one subflow is sndbuf
> > limited, e.g. due to very high latency, as the MPTCP scheduler can't
> > even fill such buffer.
> >
> > Change the send-buffer auto-tuning algorithm to compute the main socket
> > send buffer size as the sum of all the subflows buffer size.
> >
> > Reviewed-by: Mat Martineau <martineau@kernel.org>
> > Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> > Signed-off-by: Mat Martineau <martineau@kernel.org
>
> ...
>
> > diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
> > index df208666fd19..2b43577f952e 100644
> > --- a/net/mptcp/subflow.c
> > +++ b/net/mptcp/subflow.c
> > @@ -421,6 +421,7 @@ static bool subflow_use_different_dport(struct mptcp_sock *msk, const struct soc
> >
> > void __mptcp_set_connected(struct sock *sk)
> > {
> > + __mptcp_propagate_sndbuf(sk, mptcp_sk(sk)->first);
>
> ->first can be NULL here, according to syzbot.
I'm sorry for the latency on my side, I had a different kind of crash
to handle here.
Do you have a syzkaller report available? Or the call trace landing
here?
Thanks!
Paolo
next prev parent reply other threads:[~2023-11-06 7:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-23 20:44 [PATCH net-next 0/9] mptcp: Features and fixes for v6.7 Mat Martineau
2023-10-23 20:44 ` [PATCH net-next 1/9] mptcp: add a new sysctl for make after break timeout Mat Martineau
2023-10-25 0:54 ` Jakub Kicinski
2023-10-25 13:48 ` Paolo Abeni
2023-10-23 20:44 ` [PATCH net-next 2/9] mptcp: properly account fastopen data Mat Martineau
2023-10-23 20:44 ` [PATCH net-next 3/9] mptcp: use plain bool instead of custom binary enum Mat Martineau
2023-10-23 20:44 ` [PATCH net-next 4/9] tcp: define initial scaling factor value as a macro Mat Martineau
2023-10-23 20:44 ` [PATCH net-next 5/9] mptcp: give rcvlowat some love Mat Martineau
2023-10-23 20:44 ` [PATCH net-next 6/9] mptcp: use copy_from_iter helpers on transmit Mat Martineau
2023-10-23 20:44 ` [PATCH net-next 7/9] mptcp: consolidate sockopt synchronization Mat Martineau
2023-10-23 20:44 ` [PATCH net-next 8/9] mptcp: ignore notsent_lowat setting at the subflow level Mat Martineau
2023-10-23 20:44 ` [PATCH net-next 9/9] mptcp: refactor sndbuf auto-tuning Mat Martineau
2023-11-02 17:19 ` Eric Dumazet
2023-11-02 18:38 ` Mat Martineau
2023-11-06 7:21 ` Paolo Abeni [this message]
2023-11-06 8:18 ` Eric Dumazet
2023-10-25 19:50 ` [PATCH net-next 0/9] mptcp: Features and fixes for v6.7 patchwork-bot+netdevbpf
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=1831224a48dfbf54fb45fa56fce826d1d312700f.camel@redhat.com \
--to=pabeni@redhat.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=martineau@kernel.org \
--cc=matttbe@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=netdev@vger.kernel.org \
/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