summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2018-10-26 12:31:10 +0300
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2018-10-26 13:17:12 +0300
commit87fa6ebe315ab17623fbb4b7f0041434eb1c9d05 (patch)
tree941eee45c4098cf420a7368fb59d421e1f9eb432
parentb933fa0f23a998513bd8086276f97414dddc7841 (diff)
add application to send udp packets for TSN testing
Add udp_tai for TSN packets and adjust job accordingly Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rw-r--r--execs/send-udp-tai.yaml10
-rw-r--r--multinodes/lng03-lng04-ubuntu-18.04.yaml37
-rwxr-xr-xscripts/send-udp-tai.sh14
-rwxr-xr-xscripts/setup-taprio.sh1
4 files changed, 55 insertions, 7 deletions
diff --git a/execs/send-udp-tai.yaml b/execs/send-udp-tai.yaml
new file mode 100644
index 0000000..7956c6b
--- /dev/null
+++ b/execs/send-udp-tai.yaml
@@ -0,0 +1,10 @@
+metadata:
+ name: Send udp for TSN testing
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Use udp_tai to send packets"
+ version: 1.0
+
+run:
+ steps:
+ - echo "Sending UDP packets"
+ - ./scripts/send-udp-tai.sh
diff --git a/multinodes/lng03-lng04-ubuntu-18.04.yaml b/multinodes/lng03-lng04-ubuntu-18.04.yaml
index 346da91..2ea2a47 100644
--- a/multinodes/lng03-lng04-ubuntu-18.04.yaml
+++ b/multinodes/lng03-lng04-ubuntu-18.04.yaml
@@ -34,7 +34,7 @@ protocols:
lng04:
vlan_one:
tags:
- - 100G
+ - 25G
actions:
- deploy:
@@ -75,6 +75,7 @@ actions:
prompts:
- 'root@lng(.*)'
- 'root@localhost(.*)'
+
- test:
role:
- lng03
@@ -87,11 +88,6 @@ actions:
from: git
path: execs/ubuntu-build-essential.yaml
name: ubuntu-build-essential
-
- - repository: https://git.linaro.org/people/ilias.apalodimas/lava-sessions.git/
- from: git
- path: execs/iproute-build.yaml
- name: taprio-build-iproute
- repository: https://git.linaro.org/people/ilias.apalodimas/lava-sessions.git/
from: git
@@ -102,12 +98,38 @@ actions:
from: git
path: execs/sync-clocks.yaml
name: ptp-clock-sync
-
+
+
+- test:
+ role:
+ - lng03
+ timeout:
+ minutes: 900
+
+ definitions:
+ - repository: https://git.linaro.org/people/ilias.apalodimas/lava-sessions.git/
+ from: git
+ path: execs/iproute-build.yaml
+ name: taprio-build-iproute
+
- repository: https://git.linaro.org/people/ilias.apalodimas/lava-sessions.git/
from: git
path: execs/taprio-setup.yaml
name: taprio-setup
+ - repository: https://git.linaro.org/people/ilias.apalodimas/lava-sessions.git/
+ from: git
+ path: execs/send-udp-tai.yaml
+ name: send-udp-traffic
+
+- test:
+ role:
+ - lng03
+ - lng04
+ timeout:
+ minutes: 900
+
+ definitions:
- repository: https://git.linaro.org/lava-team/hacking-session.git
from: git
path: hacking-session-debian.yaml
@@ -115,3 +137,4 @@ actions:
parameters:
"IRC_USER": "apalos"
"PUB_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6q2BgQb4F3WXT89p5XoPe2J32DHKaeQAL/IHWKYFKoHnvMSVLIODBciG9CWQ+FrYO67tOlc7IaxZqhSOK2zXNID4oqIiM5O/iAlW4LXdNtSNQUR2B+528/FKt+10ZyKH0C7zV31lEWjVfv7CsNVRumOv2bwmYoQH3kCxpwyYhGkdTLdnpXGEaSLp2YDUrgDzi/+j5CH2tkJWaWXl48qXHPUuJf89nbcT52kMwHUSV/c5XHb5kVjpIpUaapgemy9HfBVi8f4T1paFU6BPymJaF43a3vIXm3byVkBi4nZDUgPFX3HL1v7jNypVbQyK1r5LO+BCPu6cyfcjXO9W0EzNV2tdmEEAHYqgBvMiHBQ5+zcvFBHztzs5xIIBA5fsYFPe2xRmUz9Ah15NcFbXlPl/QlRCoVGMC/RztMDDdbv+/mAh5Kaqas8FDRJyyebDIu/TKAajekTq6wdifjcTZbFFO/fx3UJnwt9QKArYJfcfqeRyNDQ2cdAWPBU4cwAa4dr2Txxl43N7DnT1qe3Dd9Yg0P3W03Lr7jR2JBFlGlIFhpaQSO/kAt07PTNj98P+3L/UfeVZrYR9py+WolYkgTZOvb7BJ2JfD7RwIhHpfez8m2ddoBhBbfufm1mepYBmHxD8jqzdiANu+j9a5hsQM+2MAS6GrrDVMn5e3FYa/PtKsbQ== ilias.apalodimas@linaro.org"
+
diff --git a/scripts/send-udp-tai.sh b/scripts/send-udp-tai.sh
new file mode 100755
index 0000000..8a609eb
--- /dev/null
+++ b/scripts/send-udp-tai.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+. scripts/lava-common.sh
+
+git clone https://github.com/apalos/taprio-tests.git
+pushd taprio-tests && make
+popd
+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 1000000 -p 90 -d 60000 -u 7788 &
diff --git a/scripts/setup-taprio.sh b/scripts/setup-taprio.sh
index 684b0ff..63f862f 100755
--- a/scripts/setup-taprio.sh
+++ b/scripts/setup-taprio.sh
@@ -9,6 +9,7 @@ i=$((`date +%s%N` + 37000000000 + (5 * 1000000000)))
# round it down
base=$(($i - ($i % 1000000000)))
+# TODO make sched entries configurable
cat > $batch <<EOF
qdisc replace dev "$iface" parent root handle 100 taprio \
num_tc 3 \