From: Jesse Brandeburg <jesse.brandeburg@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH net-next v1 1/2] net: core: count drops from GRO
Date: Fri, 8 Jan 2021 10:26:30 -0800 [thread overview]
Message-ID: <20210108102630.00004202@intel.com> (raw)
In-Reply-To: <1e4ee1cf-c2b7-8ba3-7cb1-5c5cb3ff1e84@pensando.io>
Shannon Nelson wrote:
> On 1/6/21 1:55 PM, Jesse Brandeburg wrote:
> > When drivers call the various receive upcalls to receive an skb
> > to the stack, sometimes that stack can drop the packet. The good
> > news is that the return code is given to all the drivers of
> > NET_RX_DROP or GRO_DROP. The bad news is that no drivers except
> > the one "ice" driver that I changed, check the stat and increment
>
> If the stack is dropping the packet, isn't it up to the stack to track
> that, perhaps with something that shows up in netstat -s?? We don't
> really want to make the driver responsible for any drops that happen
> above its head, do we?
I totally agree!
In patch 2/2 I revert the driver-specific changes I had made in an
earlier patch, and this patch *was* my effort to make the stack show the
drops.
Maybe I wasn't clear. I'm seeing packets disappear during TCP
workloads, and this GRO_DROP code was the source of the drops (I see it
returning infrequently but regularly)
The driver processes the packet but the stack never sees it, and there
were no drop counters anywhere tracking it.
next prev parent reply other threads:[~2021-01-08 18:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-06 21:55 [Intel-wired-lan] [PATCH net-next v1 0/2] GRO drop accounting Jesse Brandeburg
2021-01-06 21:55 ` [Intel-wired-lan] [PATCH net-next v1 1/2] net: core: count drops from GRO Jesse Brandeburg
2021-01-07 18:47 ` Jacob Keller
2021-01-07 21:15 ` Alexander Duyck
2021-01-08 18:23 ` Jesse Brandeburg
2021-01-08 0:50 ` Shannon Nelson
2021-01-08 18:26 ` Jesse Brandeburg [this message]
2021-01-08 19:21 ` Shannon Nelson
2021-01-08 20:26 ` Saeed Mahameed
2021-01-08 22:17 ` Eric Dumazet
2021-01-14 13:53 ` Jamal Hadi Salim
2021-01-08 9:25 ` Eric Dumazet
2021-01-08 18:35 ` Jesse Brandeburg
2021-01-08 18:45 ` Eric Dumazet
2021-01-09 0:54 ` Jacob Keller
2021-01-06 21:55 ` [Intel-wired-lan] [PATCH net-next v1 2/2] ice: remove GRO drop accounting Jesse Brandeburg
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=20210108102630.00004202@intel.com \
--to=jesse.brandeburg@intel.com \
--cc=intel-wired-lan@osuosl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox