diff options
| author | Jacob Keller <[email protected]> | 2022-07-27 23:15:58 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2022-08-16 16:04:37 +0000 |
| commit | cf6b82fd3fbc8f747333ef5005798a90b5345bd4 (patch) | |
| tree | 320b9e46fd851ea5e8fe6d5f4e4a6277cd314884 /drivers/net/ethernet/intel/ice/ice_lib.c | |
| parent | ice: set tx_tstamps when creating new Tx rings via ethtool (diff) | |
| download | kernel-cf6b82fd3fbc8f747333ef5005798a90b5345bd4.tar.gz kernel-cf6b82fd3fbc8f747333ef5005798a90b5345bd4.zip | |
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 <[email protected]>
Tested-by: Gurucharan <[email protected]> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
| -rw-r--r-- | drivers/net/ethernet/intel/ice/ice_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_lib.c b/drivers/net/ethernet/intel/ice/ice_lib.c index a830f7f9aed0..679529040edd 100644 --- a/drivers/net/ethernet/intel/ice/ice_lib.c +++ b/drivers/net/ethernet/intel/ice/ice_lib.c @@ -1522,6 +1522,7 @@ static int ice_vsi_alloc_rings(struct ice_vsi *vsi) ring->netdev = vsi->netdev; ring->dev = dev; ring->count = vsi->num_rx_desc; + ring->cached_phctime = pf->ptp.cached_phc_time; WRITE_ONCE(vsi->rx_rings[i], ring); } |
