Skip to content

Hardware supported interface statistics collection #88869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
go2sh opened this issue Apr 21, 2025 · 0 comments
Open

Hardware supported interface statistics collection #88869

go2sh opened this issue Apr 21, 2025 · 0 comments
Labels
area: Ethernet area: Networking Enhancement Changes/Updates/Additions to existing features

Comments

@go2sh
Copy link
Contributor

go2sh commented Apr 21, 2025

Is your enhancement proposal related to a problem? Please describe.
Currently all ethernet statistics are collected in software. Most of the ethernet devices have build in statistics register. This could be used to relive some of the CPU load.

Describe the solution you'd like
Add a new config option NET_STATISTICS_ETHERNET_HW_COLLECT to enable hardware statistics collection. Drivers not capable of HW collection could guard against it with a build assert. Software statistics should always be possible.

Describe alternatives you've considered
Alternatively a new capability could be added to guard statistics collection, but this would add some overhead also in the SW code path.

@go2sh go2sh added the Enhancement Changes/Updates/Additions to existing features label Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Ethernet area: Networking Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

2 participants