]> git.baikalelectronics.ru Git - kernel.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)
commitbd289476866004c1d4783ee70c555d63e25eba76
tree435e9d12eec1944c4302d95cedc7fa46deb73a04
parentf1f39f2614c2c5c35eeb3ce034848c85d8ffdd9f
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