All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] net: sched: fix some issues introduced by 64bit rates
@ 2013-11-14  9:01 Yang Yingliang
  2013-11-14  9:01 ` [PATCH 1/3] net: sched: tbf: fix calculation of max_size Yang Yingliang
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Yang Yingliang @ 2013-11-14  9:01 UTC (permalink / raw)
  To: davem, netdev; +Cc: eric.dumazet

TBF and HTB support 64bit rates now.
But some parameters are calulated from 32bit rates.
So calculate these parameters with rate_bytes_ps which
is the true rates.

Fix the condition of failure when rate is 0.
Fix the caculations of max_size in tbf and quantum in htb.

Yang Yingliang (3):
  net_sched: tbf: fix calculation of max_size
  net_sched: htb: fix condition of failure when rate is 0
  net_sched: htb: fix calculation of quantum

 include/net/sch_generic.h | 46 ++++++++++++++++++++++++++++++++
 net/sched/sch_htb.c       | 21 ++++++++-------
 net/sched/sch_tbf.c       | 67 ++++++++++++++++++++++++++---------------------
 3 files changed, 95 insertions(+), 39 deletions(-)

-- 
1.7.12

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-11-15 14:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-14  9:01 [PATCH 0/3] net: sched: fix some issues introduced by 64bit rates Yang Yingliang
2013-11-14  9:01 ` [PATCH 1/3] net: sched: tbf: fix calculation of max_size Yang Yingliang
2013-11-14 14:38   ` Eric Dumazet
2013-11-15  7:23     ` Yang Yingliang
2013-11-14  9:01 ` [PATCH 2/3] net: sched: htb: fix condition of failure when rate is 0 Yang Yingliang
2013-11-14 14:37   ` Eric Dumazet
2013-11-14  9:01 ` [PATCH 3/3] net: sched: htb: fix calculation of quantum Yang Yingliang
2013-11-15 14:01   ` Eric Dumazet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.