From: Jamal Hadi Salim <jhs@mojatatu.com>
To: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Linux Kernel Network Developers <netdev@vger.kernel.org>
Subject: Re: [Patch net-next 1/4] net_sched: introduce qdisc_replace() helper
Date: Fri, 16 Oct 2015 07:51:45 -0400 [thread overview]
Message-ID: <5620E4D1.60403@mojatatu.com> (raw)
In-Reply-To: <CAM_iQpXyjg+d7idQBfmwX7PQgC5upaTC9327wPjMFVNNn=EAkQ@mail.gmail.com>
On 10/15/15 00:15, Cong Wang wrote:
> On Wed, Oct 14, 2015 at 4:56 AM, Jamal Hadi Salim <jhs@mojatatu.com> wrote:
>> On 10/12/15 14:38, Cong Wang wrote:
>>>
>>> Remove nearly duplicated code and prepare for the following patch.
>>>
>>
>>
>> Cong - like Dave, I dont see equivalence in some of these
>> changes.
>> Example not sure how the qfq grafting invocation of
>> qfq_purge_queue fits in. There are a few others.
>
> drr_purge_queue() and qfq_purge_queue() are both
> qdisc_reset() + qdisc_tree_decrease_qlen():
>
>
> static void drr_purge_queue(struct drr_class *cl)
> {
> unsigned int len = cl->qdisc->q.qlen;
>
> qdisc_reset(cl->qdisc);
> qdisc_tree_decrease_qlen(cl->qdisc, len);
> }
>
> static void qfq_purge_queue(struct qfq_class *cl)
> {
> unsigned int len = cl->qdisc->q.qlen;
>
> qdisc_reset(cl->qdisc);
> qdisc_tree_decrease_qlen(cl->qdisc, len);
> }
>
> Or you mean the order of calling them??
>
I dont think the order is as important (although the way you have
it seems to be the sanest).
Thanks for clarifying Cong. I took a closer look and
all looks good.
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
cheers,
jamal
next prev parent reply other threads:[~2015-10-16 11:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-12 18:37 [Patch net-next 0/4] net_sched: update backlog for hierarchical qdisc's Cong Wang
2015-10-12 18:38 ` [Patch net-next 1/4] net_sched: introduce qdisc_replace() helper Cong Wang
2015-10-14 1:54 ` David Miller
2015-10-15 4:13 ` Cong Wang
2015-10-14 11:56 ` Jamal Hadi Salim
2015-10-15 4:15 ` Cong Wang
2015-10-16 11:51 ` Jamal Hadi Salim [this message]
2015-10-12 18:38 ` [Patch net-next 2/4] net_sched: update hierarchical backlog too Cong Wang
2015-10-14 12:11 ` Jamal Hadi Salim
2015-10-15 4:32 ` Cong Wang
2015-10-16 12:22 ` Jamal Hadi Salim
2015-10-12 18:38 ` [Patch net-next 3/4] sch_htb: update backlog as well Cong Wang
2015-10-14 12:25 ` Jamal Hadi Salim
2015-10-15 4:21 ` Cong Wang
2015-10-16 12:19 ` Jamal Hadi Salim
2015-10-19 20:46 ` Cong Wang
2015-10-12 18:38 ` [Patch net-next 4/4] sch_dsmark: " Cong Wang
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=5620E4D1.60403@mojatatu.com \
--to=jhs@mojatatu.com \
--cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.