shaper: fixed passing quantum parameter to kernel

News of development process
Post Reply
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

shaper: fixed passing quantum parameter to kernel

Post by Dmitry »

Code: Select all

commit ca0d0010a85300b6959d7b6ccba52ab101915c0b
Author: Dmitry Kozlov <xeb@mail.ru>
Date:   Mon Nov 10 14:14:26 2014 +0300

    shaper: fixed passing quantum parameter to kernel
    shaper: introduced moderate-quantum option
    
    If fixed quantum is not specified and moderate-quantum is specified then shaper module
    will check for quantum value to be in valid range (1000-200000).
    This suppresses annoying kernel messages.
    Remark: quantum is rate/r2q, rate is in bytes/sec.
---
Исправлена передача параметра quantum в ядро (для htb).
Введена новая опция moderate-quantum, если включена и не указан фиксированный quantum, то проверяется корректность вычисляемого quantum, чтобы он был в пределах 1000-200000.
quantum вычисляется как rate/r2q, rate - скорость в байтах в секунду.
Post Reply