From: Ian Rogers <irogers@google.com>
To: netdev-bot+sashiko@kernel.org
Cc: horatiu.vultur@microchip.com, daniel.machon@microchip.com,
UNGLinuxDriver@microchip.com, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
pabeni@redhat.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, llvm@lists.linux.dev,
elkin@google.com, Ian Rogers <irogers@google.com>
Subject: Re: [PATCH net] net: lan966x: Free skb when PTP TX timestamp request fails in xmit
Date: Tue, 24 Nov 2026 16:40:31 -0800 [thread overview]
Message-ID: <20261125004031.1005034-1-irogers@google.com> (raw)
In-Reply-To: <179545939880.3135.6341792822211409455@kernel.org>
On Mon, Nov 23, 2026 at 10:43 AM <netdev-bot+sashiko@kernel.org> wrote:
>
> [Severity: Medium]
> Will this tx_dropped increment ever reach userspace? lan966x sets
> .ndo_get_stats64 = lan966x_stats_get. dev_get_stats() adds only
> dev->core_stats on top of what that callback returns, so legacy
> dev->stats is never reported.
Good point - dev_core_stats_tx_dropped_inc(dev) is needed so
dev_get_stats() reports the software drop alongside lan966x_stats_get(),
and it avoids an unlocked increment on dev->stats.tx_dropped as well.
Daniel, let me know if you'd like me to send a v2 with
dev_core_stats_tx_dropped_inc(dev) (and netdev_tx_t return types for
lan966x_port_ifh_xmit() / fdma_xmit) standalone, or if you prefer to
fold it into your upcoming lan966x PTP TX series.
Thanks,
Ian
prev parent reply other threads:[~2026-11-25 0:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 17:07 Ian Rogers
2026-11-20 9:57 ` Daniel Machon
2026-11-20 17:40 ` Ian Rogers
2026-11-23 18:43 ` netdev-bot+sashiko
2026-11-25 0:40 ` Ian Rogers [this message]
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=20261125004031.1005034-1-irogers@google.com \
--to=irogers@google.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew+netdev@lunn.ch \
--cc=daniel.machon@microchip.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=elkin@google.com \
--cc=horatiu.vultur@microchip.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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
all inboxes | Powered by JetHome®