]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: gred: use correct backlog value in WRED mode
authorDavid Ward <david.ward@ll.mit.edu>
Sun, 10 May 2015 02:01:47 +0000 (22:01 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 May 2015 17:26:26 +0000 (13:26 -0400)
commit7b1b8336dddcf8cfdf6d5feaec680ec6e715d353
treec93e40ebcbd51735960eb43eae359df280a0bb54
parentf92cf1598fe30f98efc04dc7b133e2846bef00fe
net_sched: gred: use correct backlog value in WRED mode

In WRED mode, the backlog for a single virtual queue (VQ) should not be
used to determine queue behavior; instead the backlog is summed across
all VQs. This sum is currently used when calculating the average queue
lengths. It also needs to be used when determining if the queue's hard
limit has been reached, or when reporting each VQ's backlog via netlink.
q->backlog will only be used if the queue switches out of WRED mode.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_gred.c