netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v7 0/2] net: sched: fix two issues
@ 2013-12-10  6:59 Yang Yingliang
  2013-12-10  6:59 ` [PATCH net v7 1/2] net: sched: tbf: fix the calculation of max_size Yang Yingliang
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Yang Yingliang @ 2013-12-10  6:59 UTC (permalink / raw)
  To: davem, netdev; +Cc: eric.dumazet, brouer, jpirko, jbrouer

fix calculation of max_size in tbf
fix quantum calculation introduced by 64bit rates.

v7
  patch 1/2:
  1.Set members of "struct tbf_sched_data *q" after calculating
  max_size successfully, or it will change the old settings while
  calculating failed.
  2.If time_in_ns is bigger than ~0U(about 4 sec), it's useless,
  use ~0U instead.

v6
  patch 1/2:
  1.Use a simpler and better way to calculate length in psched_ns_t2l().
  2.Replace pr_err() with pr_warn_ratelimited().

  patch 2/2: Replace div64_u64() with do_div() suggested by Eric.

v5
  patch 1/2:
  1.Remove rtab and ptab use suggested by Eric.
  2.Don't reduce max_size to 65536, as Eric suggested that
    if a burst set to 200KB, we do not want tbf use 64KB
    or even less. So add a helper psched_ns_t2l to calculate
    max_size directly.

v4
  patch 1/2:
  1.Update commit message suggested by Jesper.
  2.Use a macro to replace 65535 constant.
  3.Add condition that when peakrate is lower than rate, return -EINVAL.
  4.Don't use cell_log anymore.

v3
  patch 1/2: use psched_l2t_ns to calculate max_size
  and cleanup exit/done section suggested by Jesper.

v2
  patch 1/2: redescribe the regression.
  patch 2/2: add Eric's ack.

Yang Yingliang (2):
  net: sched: tbf: fix the calculation of max_size
  net: sched: htb: fix the calculation of quantum

 net/sched/sch_htb.c |  20 +++++----
 net/sched/sch_tbf.c | 115 ++++++++++++++++++++++++++++++++--------------------
 2 files changed, 82 insertions(+), 53 deletions(-)

-- 
1.8.0

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCH net v7 0/2] net: sched: fix two issues
@ 2013-12-10  3:49 Yang Yingliang
  2013-12-10  5:47 ` Yang Yingliang
  0 siblings, 1 reply; 9+ messages in thread
From: Yang Yingliang @ 2013-12-10  3:49 UTC (permalink / raw)
  To: davem, netdev; +Cc: eric.dumazet, brouer, jpirko, jbrouer

fix calculation of max_size in tbf
fix quantum calculation introduced by 64bit rates.

v7
  patch 1/2:
  1.Set member of "struct tbf_sched_data *q" after calculating
  max_size successfully, or it will change the old settings while
  calculating failed.
  2.If time_in_ns is bigger than ~0U(about 4 sec), it's useless,
  use ~0U instead.

v6
  patch 1/2:
  1.Use a simpler and better way to calculate length in psched_ns_t2l().
  2.Replace pr_err() with pr_warn_ratelimited().

  patch 2/2: Replace div64_u64() with do_div() suggested by Eric.

v5
  patch 1/2:
  1.Remove rtab and ptab use suggested by Eric.
  2.Don't reduce max_size to 65536, as Eric suggested that
    if a burst set to 200KB, we do not want tbf use 64KB
    or even less. So add a helper psched_ns_t2l to calculate
    max_size directly.

v4
  patch 1/2:
  1.Update commit message suggested by Jesper.
  2.Use a macro to replace 65535 constant.
  3.Add condition that when peakrate is lower than rate, return -EINVAL.
  4.Don't use cell_log anymore.

v3
  patch 1/2: use psched_l2t_ns to calculate max_size
  and cleanup exit/done section suggested by Jesper.

v2
  patch 1/2: redescribe the regression.
  patch 2/2: add Eric's ack.

*** BLURB HERE ***

Yang Yingliang (2):
  net: sched: tbf: fix the calculation of max_size
  net: sched: htb: fix the calculation of quantum

 net/sched/sch_htb.c |  20 +++++----
 net/sched/sch_tbf.c | 119 +++++++++++++++++++++++++++++++---------------------
 2 files changed, 83 insertions(+), 56 deletions(-)

-- 
1.8.0

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

end of thread, other threads:[~2013-12-11 20:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-10  6:59 [PATCH net v7 0/2] net: sched: fix two issues Yang Yingliang
2013-12-10  6:59 ` [PATCH net v7 1/2] net: sched: tbf: fix the calculation of max_size Yang Yingliang
2013-12-11 19:38   ` Eric Dumazet
2013-12-10  6:59 ` [PATCH net v7 2/2] net: sched: htb: fix the calculation of quantum Yang Yingliang
2013-12-11 19:20 ` [PATCH net v7 0/2] net: sched: fix two issues David Miller
2013-12-11 19:39   ` Eric Dumazet
2013-12-11 20:09     ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2013-12-10  3:49 Yang Yingliang
2013-12-10  5:47 ` Yang Yingliang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).