diff options
| author | Jesse Brandeburg <jesse.brandeburg@intel.com> | 2021-10-22 17:28:17 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-14 14:48:59 +0100 |
| commit | 143ceb9b6736fdeb1ea1e8f546b64f14a05a78dd (patch) | |
| tree | 68d83bad26c2f79008631ce5fc648c69a4caec73 /drivers/net | |
| parent | 4174bd4221c2db5f385b4e260b77f248b2c02850 (diff) | |
| download | linux-143ceb9b6736fdeb1ea1e8f546b64f14a05a78dd.tar.gz linux-143ceb9b6736fdeb1ea1e8f546b64f14a05a78dd.tar.bz2 linux-143ceb9b6736fdeb1ea1e8f546b64f14a05a78dd.zip | |
ice: ignore dropped packets during init
commit 28dc1b86f8ea9fd6f4c9e0b363db73ecabf84e22 upstream.
If the hardware is constantly receiving unicast or broadcast packets
during driver load, the device previously counted many GLV_RDPC (VSI
dropped packets) events during init. This causes confusing dropped
packet statistics during driver load. The dropped packets counter
incrementing does stop once the driver finishes loading.
Avoid this problem by baselining our statistics at the end of driver
open instead of the end of probe.
Fixes: cdedef59deb0 ("ice: Configure VSIs for Tx/Rx")
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c index 6370e96ebfac..3eea68f3a526 100644 --- a/drivers/net/ethernet/intel/ice/ice_main.c +++ b/drivers/net/ethernet/intel/ice/ice_main.c @@ -3561,6 +3561,9 @@ static int ice_up_complete(struct ice_vsi *vsi) netif_carrier_on(vsi->netdev); } + /* clear this now, and the first stats read will be used as baseline */ + vsi->stat_offsets_loaded = false; + ice_service_task_schedule(pf); return 0; |
