All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Xin Guo <guoxin0309@gmail.com>,
	ncardwell@google.com, Kuniyuki Iwashima <kuniyu@google.com>
Cc: netdev@vger.kernel.org, edumazet@google.com, davem@davemloft.net,
	dsahern@kernel.org, kuba@kernel.org
Subject: Re: [PATCH net-next] tcp: correct the skip logic in tcp_sacktag_skip()
Date: Thu, 17 Jul 2025 10:24:11 +0200	[thread overview]
Message-ID: <9c67190f-62c2-4498-937d-5213de1a3fe0@redhat.com> (raw)
In-Reply-To: <20250713152253.110107-1-guoxin0309@gmail.com>

On 7/13/25 5:22 PM, Xin Guo wrote:
> tcp_sacktag_skip() directly return the input skb only
> if TCP_SKB_CB(skb)->seq>skip_to_seq,
> this is not right, and  the logic should be
> TCP_SKB_CB(skb)->seq>=skip_to_seq, 

Adding Kuniyuki

I'm not sure this statement is actually true. A more clear (and slightly
more descriptive) commit message could help better understanding the
issue. What is the bad behaviour you are observing?

Ideally a packetdrill test case to demonstrate it would help

> for example
> if start_seq is equal to tcp_highest_sack_seq() ,
> the start_seq is equal to seq of skb which is from
> tcp_highest_sack().
> and on the other side ,when
> tcp_highest_sack_seq() < start_seq in
> tcp_sacktag_write_queue(),
> the skb is from tcp_highest_sack() will be ignored
> in tcp_sacktag_skip(), so clean the logic also.
> 
> Fixes: 75c119afe14f ("tcp: implement rb-tree based retransmit queue")

At very least the fixes tag looks wrong, because AFAICS such change did
not modify the behaviour tcp_sacktag_skip.

> Signed-off-by: Xin Guo <guoxin0309@gmail.com>

Thanks,

Paolo


  reply	other threads:[~2025-07-17  8:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-13 15:22 [PATCH net-next] tcp: correct the skip logic in tcp_sacktag_skip() Xin Guo
2025-07-17  8:24 ` Paolo Abeni [this message]
2025-07-17 13:36   ` Xin Guo
2025-07-17 14:14     ` Neal Cardwell
2025-07-17 14:30       ` Xin Guo

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=9c67190f-62c2-4498-937d-5213de1a3fe0@redhat.com \
    --to=pabeni@redhat.com \
    --cc=davem@davemloft.net \
    --cc=dsahern@kernel.org \
    --cc=edumazet@google.com \
    --cc=guoxin0309@gmail.com \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=ncardwell@google.com \
    --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 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.