summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc
diff options
context:
space:
mode:
authorDaniel Zahka <daniel.zahka@gmail.com>2026-10-12 05:04:34 -0700
committerPaolo Abeni <pabeni@redhat.com>2026-10-21 10:26:49 +0200
commit554c7af9367a6c1f5269dd97aed30d8abc802910 (patch)
tree9bd95dc01c3c3c7351ae9c5eb2fbdfd4e5b452d7 /tools/lib/python/kdoc
parent78974bac98eb0581f85aab56ccc0377cdcedb964 (diff)
eth: mpnic: count packets, bytes, and drops per ring
Keep packet, byte and drop counters on each Tx work, Tx completion, and Rx completion queue. Report them to the core via the rtnl_link_stats64 interface. Rx completion queues also count errors. Frames the device marked with an uncorrectable error are counted as errors, and frames that fail for any other reason are counted as drops. All packets cleaned from the TWQ during mpnic_flush() are counted as drops, though completions for some of them may have been DMA'd into the completion ring between the time mpnic_poll() last ran and before mpnic_wait_all_queues_idle() returns. This is done for code simplicity. An RCU approach is used because ndo_get_stats64 is not called with the instance lock. Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com> Acked-by: Jakub Kicinski <kuba@kernel.org> Link: https://patch.msgid.link/20261012-mpnic-counters3-v2-1-8afba81c2d5a@gmail.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions