Skip to content
Commit f64ae40d authored by Maciek Machnikowski's avatar Maciek Machnikowski Committed by Jakub Kicinski
Browse files

testptp: add option to shift clock by nanoseconds



Add option to shift the clock by a specified number of nanoseconds.

The new argument -n will specify the number of nanoseconds to add to the
ptp clock. Since the API doesn't support negative shifts those needs to
be calculated by subtracting full seconds and adding a nanosecond offset.

Signed-off-by: default avatarMaciek Machnikowski <maciek@machnikowski.net>
Acked-by: default avatarRichard Cochran <richardcochran@gmail.com>
Link: https://lore.kernel.org/r/20220221200637.125595-1-maciek@machnikowski.net


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent cc727b64
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment