From 23c3bab9209f984692f8206c0d97758ee223a26f Mon Sep 17 00:00:00 2001 From: Perry Melange Date: Mon, 19 Apr 2021 11:17:10 +0200 Subject: qos-scripts: add ifbN device before setting the link up commit 50413e1ec83dedaea44558d5f37af5454156a46a replaced ifconfig with ip. In order to set a link state to up, the interface needs to be added first. Fixes: FS#3754 Signed-off-by: Perry Melange [Add Fixes tag] Signed-off-by: Baptiste Jonglez --- package/network/config/qos-scripts/files/usr/lib/qos/generate.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'package/network/config/qos-scripts/files') diff --git a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh index 32f15581f8..62e7283633 100755 --- a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh +++ b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh @@ -326,7 +326,8 @@ start_interface() { append cstr "$classnr:$prio:$avgrate:$pktsize:$pktdelay:$maxrate:$qdisc:$filter" "$N" done append ${prefix}q "$(tcrules)" "$N" - export dev_${dir}="ip link set $dev up >&- 2>&- + export dev_${dir}="ip link add ${dev} type ifb >&- 2>&- +ip link set $dev up >&- 2>&- tc qdisc del dev $dev root >&- 2>&- tc qdisc add dev $dev root handle 1: hfsc default ${class_default}0 tc class add dev $dev parent 1: classid 1:1 hfsc sc rate ${rate}kbit ul rate ${rate}kbit" -- cgit v1.2.3