ice: Fix stats after PF reset
authorAhmed Zaki <ahmed.zaki@intel.com>
Mon, 17 Apr 2023 23:44:45 +0000 (17:44 -0600)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 16 May 2023 16:51:40 +0000 (09:51 -0700)
commitab7470bc6d8fb5f3004ccc8e4dfd49aab0f27561
treedf0323a6e5b0cedfd0ebee541cc337b53d4834dd
parent225c657945c4a6307741cb3cc89467eadcc26e9b
ice: Fix stats after PF reset

After a core PF reset, the VFs were showing wrong Rx/Tx stats. This is a
regression in commit 6624e780a577 ("ice: split ice_vsi_setup into smaller
functions") caused by missing to set "stat_offsets_loaded = false" in the
ice_vsi_rebuild() path.

Fixes: 6624e780a577 ("ice: split ice_vsi_setup into smaller functions")
Signed-off-by: Ahmed Zaki <ahmed.zaki@intel.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c