@@ -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} \
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@nxp.com> --- tools/testing/selftests/net/forwarding/tsn_lib.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)