diff options
| author | Paolo Abeni <pabeni@redhat.com> | 2026-10-21 10:26:52 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-10-21 10:26:53 +0200 |
| commit | 61b8e62120b08481440f8d5559b3df11c2cd0814 (patch) | |
| tree | f31230f16bc19cc8e72319b95bce14a63e4cb698 /scripts/Makefile.thinlto | |
| parent | 78974bac98eb0581f85aab56ccc0377cdcedb964 (diff) | |
| parent | ce0d4765892063a801c11037c98e0e9db54f5573 (diff) | |
| download | linux-61b8e62120b08481440f8d5559b3df11c2cd0814.tar.gz linux-61b8e62120b08481440f8d5559b3df11c2cd0814.zip | |
Merge branch 'eth-mpnic-add-basic-netdev-statistics'
Daniel Zahka says:
====================
eth: mpnic: add basic netdev statistics
Add basic netdev statistics and report them via ndo_get_stats64 and
netdev_stat_ops.
Track per queue netdev statistics such as Tx/Rx: packets, bytes, drops,
etc. The driver keeps per-queue state for statistics that is updated
mostly from the NAPI poll and ndo_start_xmit paths. The stats are made
available through the usual driver APIs.
When the netif is transitioned down, the per-queue stat counters are
folded into a global per-device set of counters, and then when the netif
is brought back up, the per-queue counters start counting again from 0.
Extra care is needed for implementing ndo_get_stats64 since the instance
lock is not taken. When ndo_get_stats64 races against ndo_stop and
ndo_open, the reader can attempt to read per-queue stats while the queue
count is changing. To deal with this, the writer publishes the
aggregated base stats and the active queue counts in a single RCU
versioned object.
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
====================
Link: https://patch.msgid.link/20261012-mpnic-counters3-v2-0-8afba81c2d5a@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
