]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
pkt_sched: fq: fix non TCP flows pacing
authorEric Dumazet <edumazet@google.com>
Tue, 8 Oct 2013 22:16:00 +0000 (15:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Oct 2013 01:54:01 +0000 (21:54 -0400)
commit7eec4174ff29cd42f2acfae8112f51c228545d40
tree435e9d12eec1944c4302d95cedc7fa46deb73a04
parent2b1f18a4d6ae8057a93e736a34cdcca925279403
pkt_sched: fq: fix non TCP flows pacing

Steinar reported FQ pacing was not working for UDP flows.

It looks like the initial sk->sk_pacing_rate value of 0 was
a wrong choice. We should init it to ~0U (unlimited)

Then, TCA_FQ_FLOW_DEFAULT_RATE should be removed because it makes
no real sense. The default rate is really unlimited, and we
need to avoid a zero divide.

Reported-by: Steinar H. Gunderson <sesse@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c
net/sched/sch_fq.c