From: Jiri Kosina <jikos@kernel.org>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>,
Stephen Hemminger <stephen@networkplumber.org>,
Jamal Hadi Salim <jhs@mojatatu.com>, Phil Sutter <phil@nwl.cc>,
Cong Wang <xiyou.wangcong@gmail.com>,
Daniel Borkmann <daniel@iogearbox.net>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] net: sched: make default fifo qdiscs appear in the dump
Date: Wed, 8 Mar 2017 16:21:36 +0100 (CET) [thread overview]
Message-ID: <alpine.LSU.2.20.1703081619220.31814@cbobk.fhfr.pm> (raw)
In-Reply-To: <1488986279.28631.1.camel@edumazet-glaptop3.roam.corp.google.com>
On Wed, 8 Mar 2017, Eric Dumazet wrote:
> > +++ b/net/sched/sch_qfq.c
> > @@ -494,6 +494,8 @@ static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid,
> > goto destroy_class;
> > }
> >
> > + if (cl->qdisc != &noop_qdisc)
> > + qdisc_hash_add(cl->qdisc, true);
>
>
> Please move the test in qdisc_hash_add() instead of copy/pasting it all
> over the places ?
Well, qdisc_hash_add() has a WARN_ON() (inherited from what
qdisc_list_add() used to do) for that particular case to catch cases where
singleton qdisc would make it there from other places by mistake. By
putting this test there we'll effectively giving up on this warning should
it ever point to a bug.
Thanks,
--
Jiri Kosina
SUSE Labs
prev parent reply other threads:[~2017-03-08 15:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 12:03 Jiri Kosina
2017-03-08 14:57 ` Jiri Pirko
2017-03-08 15:03 ` [PATCH v3 " Jiri Kosina
2017-03-13 5:53 ` David Miller
2017-03-08 15:17 ` [PATCH v2 " Eric Dumazet
2017-03-08 15:21 ` Jiri Kosina [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LSU.2.20.1703081619220.31814@cbobk.fhfr.pm \
--to=jikos@kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=jhs@mojatatu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=phil@nwl.cc \
--cc=stephen@networkplumber.org \
--cc=xiyou.wangcong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®