summaryrefslogtreecommitdiff
path: root/scripts/send-udp-tai.sh
blob: e6f25847ae85e5847fb4ac343c8c735df69e0a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

. scripts/lava-common.sh

git clone https://github.com/apalos/taprio-tests.git
pushd taprio-tests && make
popd
delay='1000'
# cycle must match taprio schedule on the host
cycle='1000000'

now=`date +%s%N`
i=$(($now + 37000000000))
base=$(($i - ($i % 1000000000) + 100000))
iface=$(find_vland_iface)
lava-send udp-tai-tx
# TODO make args configurable
./taprio-tests/udp_tai -i "$iface" -b "$base" -P "$cycle" -p 90 -d "$delay" -u 7788 &