diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2018-10-25 11:27:58 +0300 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2018-10-25 12:11:14 +0300 |
commit | 557f4398cf54b0dca946b2e0db2800a99e22a441 (patch) | |
tree | 7203b63fce787846a47796ecf58a3f3491794e3f /scripts | |
parent | 4d0acc1e65e402b41414f4eb3ef7bf5edb66b3cb (diff) |
add iproute for taprio config
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/setup-taprio.sh | 17 |
1 files changed, 17 insertions, 0 deletions
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 |