Skip to content

Commit 336aa36

Browse files
committed
Always take this timestamp
1 parent 992ac80 commit 336aa36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dma/tx.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,12 @@ impl TxRingEntry {
216216
if packet_id.is_some() {
217217
extra_flags |= TXDESC_0_TIMESTAMP_ENABLE | TXDESC_0_LS | TXDESC_0_FS;
218218
}
219+
219220
self.desc_mut().packet_id = packet_id;
221+
#[cfg(feature = "ptp")]
222+
// Remove old timestamp data when the packet ID is
223+
// changed.
224+
self.desc_mut().cached_timestamp.take();
220225

221226
extra_flags |= TXDESC_0_IC;
222227

0 commit comments

Comments
 (0)