On Fri, 29 Mar 2024 18:34:02 +0800 Jijie Shao wrote:
Can you say more? I mean there are APIs to expose MIB counters.These seem to be duplicating standard stats from rtnl_link_stats64,Yeah, but these are not duplicate stats for ethtool or debugfs.
ethtool_pause_stats, ethtool_eth_mac_stats, etc.
You can add device specific stats, but please don't duplicate
stats for which we have standard APIs.
Perhaps your driver doesn't implement those APIs today.
But (1) it should, and (2) once it does it will be a duplicate.
1. These statistics are the same as rtnl_link_stats64. However, these are not updated in real time.Generally, driver will reset to restore the normal state.Perhaps I'm missing the significance of the reset when it comes
After the reset, many registers are cleared. Therefore,
it is difficult to analyze the reason of RAS.
to counters reported via standard APIs. Are rtnl_link_stats64
going to behave differently across a reset than these debug entries?
We wang to add this information only when RAS is occurring, And
these information will help to analyze the reason of RAS.
these information does not appear in any new API.
Therefore, we hope that we can add this information to
reduce the difficulty of analyzing certain issues.