From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753896AbdCFSg2 (ORCPT ); Mon, 6 Mar 2017 13:36:28 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:44098 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753532AbdCFSgT (ORCPT ); Mon, 6 Mar 2017 13:36:19 -0500 Date: Mon, 06 Mar 2017 10:35:55 -0800 (PST) Message-Id: <20170306.103555.1351381782582641603.davem@davemloft.net> To: jikos@kernel.org Cc: stephen@networkplumber.org, eric.dumazet@gmail.com, jhs@mojatatu.com, phil@nwl.cc, xiyou.wangcong@gmail.com, daniel@iogearbox.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] net: sched: make default fifo qdiscs appear in the dump From: David Miller In-Reply-To: References: <20170301.132144.1380602514921591101.davem@davemloft.net> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 06 Mar 2017 10:35:57 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Kosina Date: Mon, 6 Mar 2017 12:03:38 +0100 (CET) > Ah, right you are, thanks. The complete fix is not super trivial, as it > needs some more surgery to tc_dump_qdisc_root(), tc_dump_tclass_root() and > qdisc_match_from_root() (see 69012ae42 for some details). > > There are two options: > > - this gets fixed in two phases, in first everything *but* noop qdisc gets > dumped (in the "give me everything" dump) and later we finalize it by > teaching the above functions about noop_qdisc as well > > - I extend this patchset to handle noop qdisc from the very beginning; > I am unlikely to find time for this during coming weeks though. But OTOH > this whole thing is very low priority anyway > > What do you think? I'm not too hot on this whole idea because the only way you can emit the noop_qdisc is to "dup" it by allocating a new qdisc so that you can link it in. This has two downsides: 1) Extra overhead and memory usage 2) All of the simple checks against &noop_qdisc might not be so simply any more.