summaryrefslogtreecommitdiff
path: root/Pipfile
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-01-19 13:21:56 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-01-20 09:04:49 +0000
commit885a6335a50e63a0b9cc8d1e716150518bf19025 (patch)
tree7670506ffc26ebaff15285a766c9be48e60f2bfb /Pipfile
parent6eb683646505f9fd75e58161b48e47ef18311d9d (diff)
downloadvyos-1x-885a6335a50e63a0b9cc8d1e716150518bf19025.tar.gz
vyos-1x-885a6335a50e63a0b9cc8d1e716150518bf19025.zip
T5963: Fix QoS shaper rate calculations and set defaul 1Gbit
It is impossible to detect interface speed for some devices for exmaple virtio interfaces: ``` vyos@r4:~$ cat /sys/class/net/eth1/speed -1 ``` It causes wrong negative calcultaions like: - bandwidth: -1000000 - 4% of bandwidth: -40000 tc class replace dev eth1 parent 1: classid 1:1 htb rate -1000000 tc class replace dev eth1 parent 1:1 classid 1:a htb rate -40000 Fix this with checking negative value. Add default interface speed to 1000 Mbit if we cannot detect the interface speed, the current default value 10 Mbit is too low for nowadays (cherry picked from commit a7fe02e989cf7034609cb833c86143660eb609d5)
Diffstat (limited to 'Pipfile')
0 files changed, 0 insertions, 0 deletions