From patchwork Mon Aug 30 21:34:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Soltys X-Patchwork-Id: 63129 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id A5DF9B70E8 for ; Tue, 31 Aug 2010 07:42:32 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756094Ab0H3Vm3 (ORCPT ); Mon, 30 Aug 2010 17:42:29 -0400 Received: from relay.ppgk.com.pl ([80.53.243.36]:9552 "EHLO relay.ppgk.com.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754714Ab0H3Vm1 (ORCPT ); Mon, 30 Aug 2010 17:42:27 -0400 Received: from localhost.ppgk.com.pl (localhost [127.0.0.1]) by relay.ppgk.com.pl (Postfix) with ESMTP id AF789375F7; Mon, 30 Aug 2010 23:34:19 +0200 (CEST) X-PPGK-Scanned: amavisd-new 2.6.4 (20090625) at ppgk.com.pl Received: from relay.ppgk.com.pl ([127.0.0.1]) by localhost.ppgk.com.pl (relay.ppgk.com.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KQYrCZtA+wec; Mon, 30 Aug 2010 23:34:18 +0200 (CEST) Received: from mott.hasevolq.tld (unknown [80.72.44.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by relay.ppgk.com.pl (Postfix) with ESMTPSA id 98ACE375E9; Mon, 30 Aug 2010 23:34:18 +0200 (CEST) Date: Mon, 30 Aug 2010 23:34:10 +0200 From: Michal Soltys To: kaber@trash.net Cc: denys@visp.net.lb, netdev@vger.kernel.org Subject: [PATCH] net/sched/sch_hfsc.c: initialize parent's cl_cfmin properly in init_vf() Message-ID: <8100ed4475ac7a301a3d69611e97d510ea498c5d.1283197803.git.soltys@ziu.info> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch fixes init_vf() function, so on each new backlog period parent's cl_cfmin is properly updated (including further propgation towards the root), even if the activated leaf has no upperlimit curve defined. Signed-off-by: Michal Soltys --- net/sched/sch_hfsc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c index abd904b..4749609 100644 --- a/net/sched/sch_hfsc.c +++ b/net/sched/sch_hfsc.c @@ -761,8 +761,8 @@ init_vf(struct hfsc_class *cl, unsigned int len) if (f != cl->cl_f) { cl->cl_f = f; cftree_update(cl); - update_cfmin(cl->cl_parent); } + update_cfmin(cl->cl_parent); } }