]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ice: ignore dropped packets during init
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Sat, 23 Oct 2021 00:28:17 +0000 (17:28 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 3 Feb 2022 17:57:46 +0000 (18:57 +0100)
commitd88a2ea1f19050f23c1994c0be9ef4e55900d07f
tree6bcc426d8fc77ff0e5468f4b3bf2932051e5dd18
parent1266da8d672be52f6e0c2c5140e4364aeb9eb43c
ice: ignore dropped packets during init

BugLink: https://bugs.launchpad.net/bugs/1957007
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/intel/ice/ice_main.c