diff options
author | Paul Greenwalt <paul.greenwalt@intel.com> | 2022-04-28 14:11:42 -0700 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2022-05-17 10:37:09 -0700 |
commit | 31b6298fd8e29effe9ed6b77351ac5969be56ce0 (patch) | |
tree | a706a3b6780f3845735877b2fa5c06c432c5d414 /net/mptcp | |
parent | 4503cc7fdf9a84cd631b0cb8ecb3c9b1bdbf3594 (diff) | |
download | linux-31b6298fd8e29effe9ed6b77351ac5969be56ce0.tar.bz2 |
ice: fix possible under reporting of ethtool Tx and Rx statistics
The hardware statistics counters are not cleared during resets so the
drivers first access is to initialize the baseline and then subsequent
reads are for reporting the counters. The statistics counters are read
during the watchdog subtask when the interface is up. If the baseline
is not initialized before the interface is up, then there can be a brief
window in which some traffic can be transmitted/received before the
initial baseline reading takes place.
Directly initialize ethtool statistics in driver open so the baseline will
be initialized when the interface is up, and any dropped packets
incremented before the interface is up won't be reported.
Fixes: 28dc1b86f8ea9 ("ice: ignore dropped packets during init")
Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'net/mptcp')
0 files changed, 0 insertions, 0 deletions