From: Paolo Abeni <pabeni@redhat.com>
To: Eric Dumazet <eric.dumazet@gmail.com>, netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>,
Willem de Bruijn <willemb@google.com>
Subject: Re: [RFC PATCH] net: don't keep lonely packets forever in the gro hash
Date: Tue, 20 Nov 2018 16:42:48 +0100 [thread overview]
Message-ID: <e4a4bcfaa9f780a0b74ae453bfefd2768d9c8b5f.camel@redhat.com> (raw)
In-Reply-To: <b403be03-6e7b-1dc5-c89d-47227b12bc6a@gmail.com>
Hi,
On Tue, 2018-11-20 at 05:49 -0800, Eric Dumazet wrote:
>
> On 11/20/2018 02:17 AM, Paolo Abeni wrote:
> > Eric noted that with UDP GRO and napi timeout, we could keep a single
> > UDP packet inside the GRO hash forever, if the related NAPI instance
> > calls napi_gro_complete() at an higher frequency than the napi timeout.
> > Willem noted that even TCP packets could be trapped there, till the
> > next retransmission.
> > This patch tries to address the issue, flushing the oldest packets before
> > scheduling the NAPI timeout. The rationale is that such a timeout should be
> > well below a jiffy and we are not flushing packets eligible for sane GRO.
> >
> > Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
> > Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> > ---
> > Sending as RFC, as I fear I'm missing some relevant pieces.
> > Also I'm unsure if this should considered a fixes for "udp: implement
> > GRO for plain UDP sockets." or for "net: gro: add a per device gro flush timer"
Thank you for your feedback!
> Truth be told, relying on jiffies change is a bit fragile for HZ=100 or HZ=250 kernels.
Yes, we have higher bound there.
> See recent TCP commit that got rid of tcp_tso_should_defer() dependency on HZ/jiffies
>
> https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/commit/?id=a682850a114aef947da5d603f7fd2cfe7eabbd72
I'm unsure I follow correctly. Are you suggesting to use ns precision
for skb aging in GRO? If so, could that be a separate change? (looks
more invasive)
Thanks,
Paolo
next prev parent reply other threads:[~2018-11-21 2:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-20 10:17 [RFC PATCH] net: don't keep lonely packets forever in the gro hash Paolo Abeni
2018-11-20 11:30 ` Sergei Shtylyov
2018-11-20 13:49 ` Eric Dumazet
2018-11-20 15:42 ` Paolo Abeni [this message]
2018-11-20 16:28 ` Eric Dumazet
2018-11-21 9:13 ` Daniel Borkmann
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=e4a4bcfaa9f780a0b74ae453bfefd2768d9c8b5f.camel@redhat.com \
--to=pabeni@redhat.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=willemb@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).