Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T5963: Fix QoS shaper rate calculations and set default 1Gbit #2855

Merged
merged 1 commit into from
Jan 19, 2024

Commits on Jan 19, 2024

  1. 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
    sever-sever committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    a7fe02e View commit details
    Browse the repository at this point in the history