on 2025/2/14 3:54, Andrew Lunn wrote:
On Thu, Feb 13, 2025 at 11:55:23AM +0800, Jijie Shao wrote:
quoted
The driver supports many hw statistics. This patch supports
dump statistics through ethtool_ops and ndo.get_stats64().
The type of hw statistics register is u32,
To prevent the statistics register from overflowing,
the driver dump the statistics every 5 minutes
in a scheduled task.
u32 allows the counter to reach 4294967295 before wrapping. So over 5
minutes, that is around 14,316,557 per second. Say this is your
received byte counter? That means your line rate cannot be higher than
114Mbps? Is this device really only Fast Ethernet?
Andrew
Haha, maybe my formula is wrong and I missed a unit conversion.
Thank you very much for pointing out the error. I'll recalculate the correct value.
Jijie Shao