summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--execs/taprio-setup.yaml10
-rw-r--r--multinodes/lng03-lng04-ubuntu-18.04.yaml5
-rwxr-xr-xscripts/setup-taprio.sh17
3 files changed, 32 insertions, 0 deletions
diff --git a/execs/taprio-setup.yaml b/execs/taprio-setup.yaml
new file mode 100644
index 0000000..e9435bc
--- /dev/null
+++ b/execs/taprio-setup.yaml
@@ -0,0 +1,10 @@
+metadata:
+ name: configure 802.1Qbv
+ format: "Lava-Test-Shell Test Definition 1.0"
+ description: "Configure TAS scheduler on interfaces"
+ version: 1.0
+
+run:
+ steps:
+ - echo "Building iproute2"
+ - ./scripts/setup-taprio.sh
diff --git a/multinodes/lng03-lng04-ubuntu-18.04.yaml b/multinodes/lng03-lng04-ubuntu-18.04.yaml
index 7990cf5..efbf392 100644
--- a/multinodes/lng03-lng04-ubuntu-18.04.yaml
+++ b/multinodes/lng03-lng04-ubuntu-18.04.yaml
@@ -97,6 +97,11 @@ actions:
from: git
path: execs/sync-clocks.yaml
name: ptp-clock-sync
+
+ - 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/lava-team/hacking-session.git
from: git
diff --git a/scripts/setup-taprio.sh b/scripts/setup-taprio.sh
new file mode 100755
index 0000000..76455f9
--- /dev/null
+++ b/scripts/setup-taprio.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+. scripts/lava-common.sh
+
+iface=$(find_vland_iface)
+i=$((`date +%s%N` + 37000000000 + (2 * 60 * 1000000000)))
+base=$(($i - ($i % 1000000000)))
+
+tc qdisc replace dev "$iface" parent root handle 100 taprio \
+ num_tc 3 \
+ map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 \
+ queues 1@0 1@1 2@2 \
+ base-time $base \
+ sched-entry S 01 300000 \
+ sched-entry S 02 300000 \
+ sched-entry S 04 400000 \
+ clockid CLOCK_TAI