Thread (7 messages) 7 messages, 3 authors, 2026-02-25

Re: [PATCH v2 net-next 3/3] selftests:net: Implement ptp4l sync test using netdevsim

From: Simon Horman <horms@kernel.org>
Date: 2026-02-24 10:54:29

On Sun, Feb 22, 2026 at 10:41:10AM +0100, Maciek Machnikowski wrote:
Add PTP synchronization test using ptp4l and netdevsim.

The test creates two netdevsim adapters, links them together
and runs the ptp4l leader and ptp4l follower on two ends
of the netdevsim link and waits for the follower to report the
synchronized state (s2) in its output log.

This implementation runs the test runs over IPv4 link.

Signed-off-by: Maciek Machnikowski <redacted>
---
 tools/testing/selftests/net/ptp.sh | 93 ++++++++++++++++++++++++++++++
 1 file changed, 93 insertions(+)
 create mode 100755 tools/testing/selftests/net/ptp.sh
Hi Maciek,

I'm wondering if you could consider running running shellcheck over this
and cleaning  things up a little.

I see SC2086 which I think can be trivially addressed.
And SC2329, which I think would be best ignored using #shellcheck disable=SC2329

Also, I think you need to add ptp.sh to tools/testing/selftests/net/Makefile

Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help