diff options
author | Igor Russkikh <igor.russkikh@aquantia.com> | 2017-10-19 18:23:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-21 12:32:24 +0100 |
commit | 65e665e68d097edfe667372f13d54f3e4edcb69c (patch) | |
tree | d110f3614a6e5278abbf67441a951f00ea2ff4e6 /drivers/hsi | |
parent | 197df02cb3d3e969fb1d6fc11f5a634b7bfc2124 (diff) |
net: aquantia: Reset nic statistics on interface up/down
Internal statistics system on chip never gets reset until hardware
reboot. This is quite inconvenient in terms of ethtool statistics usage.
This patch implements incremental statistics update inside of
service callback.
Upon nic initialization, first request is done to fetch
initial stat data, current collected stat data gets cleared.
Internal statistics mailbox readout is improved to save space and
increase readability
Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hsi')
0 files changed, 0 insertions, 0 deletions