summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2026-04-12 03:02:05 +0300
committerJakub Kicinski <kuba@kernel.org>2026-04-14 02:46:43 +0300
commita21d33a5265f0b31d935a8b9b2b6faefb5185911 (patch)
tree173cbe54fab8318b33078d1b3bfcfb06d5960bef /net/switchdev/switchdev.c
parente6295d124644b14a12b55edf5d3e89cf86a4a2ce (diff)
downloadlinux-a21d33a5265f0b31d935a8b9b2b6faefb5185911.tar.xz
net: dsa: mxl862xx: implement .get_stats64
Poll free-running firmware RMON counters every 2 seconds and accumulate deltas into 64-bit per-port statistics. 32-bit packet counters wrap in ~220s at 10 Gbps line rate with minimum-size frames; the 2s polling interval provides a comfortable margin. The .get_stats64 callback forces a fresh poll so that counters are always up to date when queried. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Link: https://patch.msgid.link/fa38548ba05866879e8912721edc91947ce4ff12.1775951347.git.daniel@makrotopia.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions