[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231221132521.2314811-4-vladimir.oltean@nxp.com>
Date: Thu, 21 Dec 2023 15:25:20 +0200
From: Vladimir Oltean <vladimir.oltean@....com>
To: netdev@...r.kernel.org
Cc: "Abdul Rahim, Faizal" <faizal.abdul.rahim@...ux.intel.com>
Subject: [RFC PATCH for-faizal 3/4] selftests: net: tsn: allow isochron_do() to skip sync monitoring on sender too
For testing the tc-taprio software scheduling path, we don't need PTP
synchronization at all, but isochron_do() was written assuming that we
do.
Allow skipping the UNIX domain socket for the ptp4l instance on the
sender, and pass --omit-sync to isochron instead, so that it sends right
away and does not monitor the PTP quality.
Signed-off-by: Vladimir Oltean <vladimir.oltean@....com>
---
tools/testing/selftests/net/forwarding/tsn_lib.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tools/testing/selftests/net/forwarding/tsn_lib.sh b/tools/testing/selftests/net/forwarding/tsn_lib.sh
index f081cebb1c65..189bf27bad76 100644
--- a/tools/testing/selftests/net/forwarding/tsn_lib.sh
+++ b/tools/testing/selftests/net/forwarding/tsn_lib.sh
@@ -204,6 +204,12 @@ isochron_do()
vid="--vid=${vid}"
fi
+ if [ -z "${sender_uds}" ]; then
+ sender_extra_args="${sender_extra_args} --omit-sync"
+ else
+ sender_extra_args="${sender_extra_args} --unix-domain-socket ${sender_uds}"
+ fi
+
if [ -z "${receiver_uds}" ]; then
sender_extra_args="${sender_extra_args} --omit-remote-sync"
fi
@@ -226,7 +232,6 @@ isochron_do()
isochron send \
--interface ${sender_if_name} \
- --unix-domain-socket ${sender_uds} \
--priority ${priority} \
--base-time ${base_time} \
--cycle-time ${cycle_time} \
--
2.34.1
Powered by blists - more mailing lists