From: Patrick McHardy Subject: Re: [PATCH 1/1] net_sched: drr: warn when qdisc is not work conserving Date: Thu, 12 Jun 2014 19:09:24 +0200 Message-ID: <16234197-96e8-4d6c-ae5d-c66e0d4862ce@email.android.com> References: <1402511718-24203-1-git-send-email-fw@strlen.de> <20140612163803.GD1982@breakpoint.cc> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: netdev@vger.kernel.org To: Florian Westphal Return-path: Received: from stinky.trash.net ([213.144.137.162]:57333 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753017AbaFLRJl (ORCPT ); Thu, 12 Jun 2014 13:09:41 -0400 In-Reply-To: <20140612163803.GD1982@breakpoint.cc> Sender: netdev-owner@vger.kernel.org List-ID: On 12. Juni 2014 18:38:03 MESZ, Florian Westphal wrote: >Patrick McHardy wrote: >> On 11. Juni 2014 20:35:18 MESZ, Florian Westphal >wrote: >> >The DRR scheduler requires that items on the active list are work >> >conserving, i.e. do not hold on to skbs for throttling purposes, >etc. >> >Attaching e.g. tbf renders DRR useless because all other classes on >the >> >active list are delayed as well. >> > >> >So, warn users that this configuration won't work as expected; we >> >already do this in couple of other qdiscs, see e.g. >> >> Why don't prevent this during configuration time in the first place? >> It doesn't work, a warning might trigger long after creating the >broken >> configuration and will more likely go unnoticed. > >That would be nice. > >But that would require some annotation of the qdiscs wheter they're >wc or not, right? > >With such annotation, qdisc_graft() could refuse such request. > >Is that what you have in mind? Exactly. Probably this needs to be determined during initialization since f.i. HFSC can work in both modes.