From: Simon Horman <horms@kernel.org>
To: Maciek Machnikowski <maciek@machnikowski.net>
Cc: netdev@vger.kernel.org, kuba@kernel.org,
richardcochran@gmail.com, milena.olech@intel.com,
willemdebruijn.kernel@gmail.com, andrew@lunn.ch,
vadim.fedorenko@linux.dev
Subject: Re: [PATCH v2 net-next 3/3] selftests:net: Implement ptp4l sync test using netdevsim
Date: Tue, 24 Feb 2026 10:54:25 +0000 [thread overview]
Message-ID: <aZ2DYSitNqQwkqCu@horms.kernel.org> (raw)
In-Reply-To: <20260222094110.127927-4-maciek@machnikowski.net>
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 <maciek@machnikowski.net>
> ---
> 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
next prev parent reply other threads:[~2026-02-24 10:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-22 9:41 [PATCH v2 net-next 0/3] Implement PTP support in netdevsim Maciek Machnikowski
2026-02-22 9:41 ` [PATCH v2 net-next 1/3] ptp_mock: Expose ptp_clock_info to external drivers Maciek Machnikowski
2026-02-23 16:36 ` Jakub Kicinski
2026-02-22 9:41 ` [PATCH v2 net-next 2/3] netdevsim: Implement basic ptp support Maciek Machnikowski
2026-02-22 9:41 ` [PATCH v2 net-next 3/3] selftests:net: Implement ptp4l sync test using netdevsim Maciek Machnikowski
2026-02-24 10:54 ` Simon Horman [this message]
2026-02-25 10:08 ` Maciek Machnikowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aZ2DYSitNqQwkqCu@horms.kernel.org \
--to=horms@kernel.org \
--cc=andrew@lunn.ch \
--cc=kuba@kernel.org \
--cc=maciek@machnikowski.net \
--cc=milena.olech@intel.com \
--cc=netdev@vger.kernel.org \
--cc=richardcochran@gmail.com \
--cc=vadim.fedorenko@linux.dev \
--cc=willemdebruijn.kernel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.