Page MenuHomeFreeBSD

mlx5e: Ensure rx timestamps are monotonically increasing
ClosedPublic

Authored by gallatin on Thu, Apr 16, 1:26 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 18, 7:49 AM
Unknown Object (File)
Sat, Apr 18, 7:49 AM
Unknown Object (File)
Sat, Apr 18, 7:49 AM
Unknown Object (File)
Sat, Apr 18, 6:12 AM
Unknown Object (File)
Thu, Apr 16, 4:09 PM
Subscribers

Details

Summary

The clock calibration routine currently can result in rx timestamps
jumping backwards, which can confuse the TCP stack.
Ensure they are monotonically increasing by estimating what
we'd calculate as the next timestamp and clamp the calibration
so new timestamps are no earlier in time.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Tested this out and it reduced the backward time jumps, as measured by TCP connections, by >99.98% (down from 73,800 to 10).

This revision is now accepted and ready to land.Thu, Apr 16, 1:39 PM