commit | f3e2778429c2ad8555e888858e0f0e98c86c4b0f | [log] [tgz] |
---|---|---|
author | Igor Russkikh <igor.russkikh@aquantia.com> | Thu Dec 14 12:34:46 2017 +0300 |
committer | David S. Miller <davem@davemloft.net> | Fri Dec 15 12:46:42 2017 -0500 |
tree | a009c17ad09d57d85884e635f41baf240f378cbe | |
parent | fdb4a0830e74acfbe84d4d4e6772ea09c96786ad [diff] |
net: aquantia: Update hw counters on hw init On very first start we should read out current HW counter values to make diff based calculations later. This also should be done each time NIC gets down/up or wakes up after sleep state. We reset link state explicitly to prevent diffs from being summed this first time. Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com> Signed-off-by: David S. Miller <davem@davemloft.net>