Re: [PATCH net] net: lan966x: Free skb when PTP TX timestamp request fails in xmit
From: Ian Rogers
Date: Tue Nov 24 2026 - 19:40:51 EST
On Mon, Nov 23, 2026 at 10:43 AM <netdev-bot+sashiko@xxxxxxxxxx> 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