Re: [PATCH net-next] r8169: report per-queue statistics through netdev qstats

From: Eric Dumazet

Date: Sat Apr 18 2026 - 02:28:00 EST


On Fri, Apr 17, 2026 at 7:12 PM Gustavo Arantes <dev.gustavoa@xxxxxxxxx> wrote:
>
> r8169 maintains synchronized per-CPU software counters for packet and byte
> accounting, but does not expose them through the netdev qstats interface.
>
> Add netdev_stat_ops callbacks and report the existing software counters
> through queue 0 for both Rx and Tx. Provide zero base stats so device-scope
> qstats report the packet and byte counters as supported and match the
> existing RTNL statistics.
>
> Signed-off-by: Gustavo Arantes <dev.gustavoa@xxxxxxxxx>

## Form letter - net-next-closed

Please repost when net-next reopens after Apr 27th.

RFC patches sent for review only are obviously welcome at any time.

See:
https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle

pw-bot: cr