From: Florian Westphal <fw at strlen.de>
To: mptcp at lists.01.org
Subject: [MPTCP] Re: [RFC PATCH 4/6] options: ack pending sequence
Date: Tue, 12 Nov 2019 14:13:11 +0100 [thread overview]
Message-ID: <20191112131311.GF19558@breakpoint.cc> (raw)
In-Reply-To: alpine.OSX.2.21.1911111646501.7818@mjmartin-mac01.local
[-- Attachment #1: Type: text/plain, Size: 1527 bytes --]
Mat Martineau <mathew.j.martineau(a)linux.intel.com> wrote:
> > diff --git a/net/mptcp/options.c b/net/mptcp/options.c
> > index 80dbe7662cea..b488bf07ada5 100644
> > --- a/net/mptcp/options.c
> > +++ b/net/mptcp/options.c
> > @@ -418,13 +418,20 @@ static bool mptcp_established_options_dss(struct sock *sk, struct sk_buff *skb,
> > ack_size += TCPOLEN_MPTCP_DSS_BASE;
> >
> > if (ack_size <= remaining) {
> > + const struct mptcp_subflow_context *subflow;
> > struct mptcp_sock *msk;
> >
> > dss_size += ack_size;
> >
> > - msk = mptcp_sk(mptcp_subflow_ctx(sk)->conn);
> > + subflow = mptcp_subflow_ctx(sk);
> > + msk = mptcp_sk(subflow->conn);
> > if (msk) {
> > - opts->ext_copy.data_ack = msk->ack_seq;
> > + u64 ack_seq = READ_ONCE(msk->ack_seq);
> > +
> > + if (subflow->map_valid)
> > + ack_seq += subflow->data_avail;
>
> I'm not sure this works well with multiple subflows. It could ack a later
> sequence number on this subflow, then send an earlier sequence number in a
> bare ack on another subflow. They should be close enough that the earlier
> seq would be ignored, but it would be better to send consistent acks.
That would require far more changes since this means we need to move
msk->ack_seq update away from recvmsg.
I think its best to drop this patch for now, its annoying to have this
behaviour of acking data that was consumed by userspace rather than what
was received but I don't see a simple solution nor is it related to wmem
accouting.
next reply other threads:[~2019-11-12 13:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-12 13:13 Florian Westphal [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-11-12 0:55 [MPTCP] Re: [RFC PATCH 4/6] options: ack pending sequence Mat Martineau
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=20191112131311.GF19558@breakpoint.cc \
--to=unknown@example.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.