From: Eric Dumazet <eric.dumazet@gmail.com>
To: Cambda Zhu <cambda@linux.alibaba.com>,
Eric Dumazet <edumazet@google.com>
Cc: David Miller <davem@davemloft.net>,
Yuchung Cheng <ycheng@google.com>,
netdev <netdev@vger.kernel.org>,
Dust Li <dust.li@linux.alibaba.com>
Subject: Re: [PATCH] tcp: Fix highest_sack and highest_sack_seq
Date: Sat, 28 Dec 2019 22:11:43 -0800 [thread overview]
Message-ID: <b3ee6906-85d6-c430-c5fb-10c191ffe99f@gmail.com> (raw)
In-Reply-To: <20191227085237.7295-1-cambda@linux.alibaba.com>
On 12/27/19 12:52 AM, Cambda Zhu wrote:
> From commit 50895b9de1d3 ("tcp: highest_sack fix"), the logic about
> setting tp->highest_sack to the head of the send queue was removed.
> Of course the logic is error prone, but it is logical. Before we
> remove the pointer to the highest sack skb and use the seq instead,
> we need to set tp->highest_sack to NULL when there is no skb after
> the last sack, and then replace NULL with the real skb when new skb
> inserted into the rtx queue, because the NULL means the highest sack
> seq is tp->snd_nxt. If tp->highest_sack is NULL and new data sent,
> the next ACK with sack option will increase tp->reordering unexpectedly.
>
> This patch sets tp->highest_sack to the tail of the rtx queue if
> it's NULL and new data is sent. The patch keeps the rule that the
> highest_sack can only be maintained by sack processing, except for
> this only case.
>
> Fixes: 50895b9de1d3 ("tcp: highest_sack fix")
> Signed-off-by: Cambda Zhu <cambda@linux.alibaba.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Sadly I could not come to an alternative solution.
Thanks !
next prev parent reply other threads:[~2019-12-29 6:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-27 8:52 [PATCH] tcp: Fix highest_sack and highest_sack_seq Cambda Zhu
2019-12-28 0:49 ` Eric Dumazet
2019-12-28 3:28 ` Eric Dumazet
2019-12-28 4:26 ` Cambda Zhu
2019-12-28 3:58 ` Cambda Zhu
2019-12-29 6:11 ` Eric Dumazet [this message]
2019-12-31 4:29 ` David Miller
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=b3ee6906-85d6-c430-c5fb-10c191ffe99f@gmail.com \
--to=eric.dumazet@gmail.com \
--cc=cambda@linux.alibaba.com \
--cc=davem@davemloft.net \
--cc=dust.li@linux.alibaba.com \
--cc=edumazet@google.com \
--cc=netdev@vger.kernel.org \
--cc=ycheng@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).