All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guillaume Nault <gnault@redhat.com>
To: Neal Cardwell <ncardwell@google.com>
Cc: Neal Cardwell <ncardwell.sw@gmail.com>,
	Tom.D.Williams@morganstanley.com, davem@davemloft.net,
	edumazet@kernel.org, horms@kernel.org, kuba@kernel.org,
	kuniyu@google.com, netdev@vger.kernel.org, pabeni@redhat.com,
	ycheng@google.com
Subject: Re: [PATCH net] tcp: Fix dup-ack detection on non-SACK bidirectional data transfer.
Date: Wed, 28 Oct 2026 22:40:52 +0100	[thread overview]
Message-ID: <auJr5JXS-zGjylHD@debian> (raw)
In-Reply-To: <CADVnQymSV+Z9T_XSELAeoE46CNVAK2XveHb4s6ntLvSn8fw_Pg@mail.gmail.com>

On Fri, Oct 23, 2026 at 01:04:48PM -0400, Neal Cardwell wrote:
> > diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
> > index 99baf14afdfd..1feb370804b1 100644
> > --- a/net/ipv4/tcp_input.c
> > +++ b/net/ipv4/tcp_input.c
> > @@ -107,7 +107,8 @@ int sysctl_tcp_max_orphans __read_mostly = NR_FILE;
> >  #define FLAG_TS_PROGRESS       0x40000 /* Positive timestamp delta */
> >
> >  #define FLAG_ACKED             (FLAG_DATA_ACKED|FLAG_SYN_ACKED)
> > -#define FLAG_NOT_DUP           (FLAG_DATA|FLAG_WIN_UPDATE|FLAG_ACKED)
> > +#define FLAG_NOT_DUP           (FLAG_DATA|FLAG_WIN_UPDATE|FLAG_ACKED|\
> > +                                FLAG_SND_UNA_ADVANCED)
> >  #define FLAG_CA_ALERT          (FLAG_DATA_SACKED|FLAG_ECE|FLAG_DSACKING_ACK)
> >  #define FLAG_FORWARD_PROGRESS  (FLAG_ACKED|FLAG_DATA_SACKED)
> >
> > @@ -3959,10 +3960,10 @@ static int tcp_ack_update_window(struct sock *sk, const struct sk_buff *skb, u32
> >                 nwin <<= tp->rx_opt.snd_wscale;
> >
> >         if (tcp_may_update_window(tp, ack, ack_seq, nwin)) {
> > -               flag |= FLAG_WIN_UPDATE;
> >                 tcp_update_wl(tp, ack_seq);
> >
> >                 if (tp->snd_wnd != nwin) {
> > +                       flag |= FLAG_WIN_UPDATE;
> >                         tp->snd_wnd = nwin;
> >
> >                         /* Note, it is the only place, where
> > @@ -4354,7 +4355,6 @@ static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag)
> >                  */
> >                 tcp_update_wl(tp, ack_seq);
> >                 tcp_snd_una_update(tp, ack);
> > -               flag |= FLAG_WIN_UPDATE;
> >
> >                 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPHPACKS);
> >         } else {
> > --
> > 2.47.3
> 
> This patch passes all of our internal tests, as well as the new
> tools/testing/selftests/net/packetdrill/tcp_bidir_fast_retransmit_nosack.pkt
> test that Guillaume Nault posted in this thread.
> 
Thanks a lot for the tests. I wasn't sure if I should put your Tested-by tag
to my v2. Feel free to add it :).


  parent reply	other threads:[~2026-10-28 21:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-22  8:49 [PATCH net] tcp: Fix dup-ack detection on non-SACK bidirectional data transfer Guillaume Nault
2026-10-22  9:46 ` Eric Dumazet
2026-10-23 11:53   ` Guillaume Nault
2026-10-23 16:17   ` Neal Cardwell
2026-10-23 16:10 ` Neal Cardwell
2026-10-23 17:04   ` Neal Cardwell
2026-10-23 20:31     ` Neal Cardwell
2026-10-28 21:40     ` Guillaume Nault [this message]
2026-10-28 21:29   ` Guillaume Nault

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=auJr5JXS-zGjylHD@debian \
    --to=gnault@redhat.com \
    --cc=Tom.D.Williams@morganstanley.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=ncardwell.sw@gmail.com \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --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 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.