]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sch_sfq: allow big packets and be fair
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 28 Dec 2010 21:53:33 +0000 (21:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Dec 2010 20:47:37 +0000 (12:47 -0800)
commiteeaeb068f1393b4db4861481bf594bcd1c3eda7a
treed3404b80033fa89b83e6e23fd9fbcb0d7dad614f
parent0f333d10e3f689640b229c8cf00b16ea51ce4951
sch_sfq: allow big packets and be fair

SFQ is currently 'limited' to small packets, because it uses a 15bit
allotment number per flow. Introduce a scale by 8, so that we can handle
full size TSO/GRO packets.

Use appropriate handling to make sure allot is positive before a new
packet is dequeued, so that fairness is respected.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Jarek Poplawski <jarkao2@gmail.com>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_sfq.c