From: Yang Yingliang Subject: [PATCH net v5 0/2] net: sched: fix some issues Date: Thu, 5 Dec 2013 15:10:55 +0800 Message-ID: <1386227457-86900-1-git-send-email-yangyingliang@huawei.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , , To: , Return-path: Received: from szxga02-in.huawei.com ([119.145.14.65]:9328 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751124Ab3LEHLh (ORCPT ); Thu, 5 Dec 2013 02:11:37 -0500 Sender: netdev-owner@vger.kernel.org List-ID: fix calculation of max_size in tbf fix quantum calculation introduced by 64bit rates. v2 patch 1/2: redescribe the regression. patch 2/2: add Eric's ack. v3 patch 1/2: use psched_l2t_ns to calculate max_size and cleanup exit/done section suggested by Jesper. 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. 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. Yang Yingliang (2): net: sched: tbf: fix calculation of max_size net: sched: htb: fix calculation of quantum include/net/sch_generic.h | 46 ++++++++++++++++++++++++++++ net/sched/sch_htb.c | 18 ++++++----- net/sched/sch_tbf.c | 76 ++++++++++++++++++++--------------------------- 3 files changed, 89 insertions(+), 51 deletions(-) -- 1.8.0