]> git.baikalelectronics.ru Git - kernel.git/commit
ice: initialize cached_phctime when creating Rx rings
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 27 Jul 2022 23:15:58 +0000 (16:15 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 16 Aug 2022 16:04:37 +0000 (09:04 -0700)
commit3eef4c0644a75566c150354701288d20dc89f44c
tree320b9e46fd851ea5e8fe6d5f4e4a6277cd314884
parentee7b2f8c7fdaaf5123a1e28b7c1c6f7c77fdd9c3
ice: initialize cached_phctime when creating Rx rings

When we create new Rx rings, the cached_phctime field is zero initialized.
This could result in incorrect timestamp reporting due to the cached value
not yet being updated. Although a background task will periodically update
the cached value, ensure it matches the existing cached value in the PF
structure at ring initialization.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_ethtool.c
drivers/net/ethernet/intel/ice/ice_lib.c