From: Jarek Poplawski <jarkao2@gmail.com>
To: Patrick McHardy <kaber@trash.net>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [PATCH 8/9]: sch_hfsc: Use ->requeue queue instead of ops.
Date: Thu, 21 Aug 2008 00:09:32 +0200 [thread overview]
Message-ID: <20080820220931.GA3071@ami.dom.local> (raw)
In-Reply-To: <48AAC57E.1090504@trash.net>
On Tue, Aug 19, 2008 at 03:07:10PM +0200, Patrick McHardy wrote:
> David Miller wrote:
>> From: Patrick McHardy <kaber@trash.net>
>> Date: Mon, 18 Aug 2008 16:11:57 +0200
>>
>>> I think we really need either ->requeue or a real ->peek operation.
>>
>> All the code duplication and complexity is what I'm trying to avoid.
>>
>> I see no value in overhauling and auditing all of these ->requeue()
>> implementations and how they return status codes when the facility
>> itself is largely superfluous.
>>
>> Maybe we can simply add a "bool peek" argument or some flags to
>> ->dequeue() instead.
>
> Yes, that should work. It might get a big ugly though since the
> ->dequeue functions have to make sure not to modify any state
> while peeking.
I'm not sure what are conclusions here wrt. this patchset, but since
David made this mistake and added me to CC, here are my doubts:
- maybe I miss something, but it seems there is something strange with
using qdisc_dequeue(), e.g. how htb_dequeue_queue() in this call
skb = qdisc_dequeue(cl->un.leaf.q);
can ever get anything here?:
struct sk_buff *skb = __skb_dequeue(&sch->requeue);
Isn't it requeued in root qdisc? But even if it's OK, isn't there
needed some additional code to control queue length?
- initially David wrote about simplifying this, so I thought it's
about some simple buffer outside of qdiscs' code; now it's a bit
more than this; sure, it's simpler but I guess, soon, after a few
(ADSL?) fixes and optimizations there will be probably no difference.
Peeking doesn't look to me necessarily simpler either.
So, IMHO, if it's not going to be something really simple I doubt it's
worth to bother with this. Anyway, I hope David will give some warning
yet before merging this.
Thanks,
Jarek P.
next prev parent reply other threads:[~2008-08-20 22:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-18 8:37 [PATCH 8/9]: sch_hfsc: Use ->requeue queue instead of ops David Miller
2008-08-18 14:11 ` Patrick McHardy
2008-08-19 5:29 ` David Miller
2008-08-19 13:03 ` Herbert Xu
2008-08-19 13:07 ` Patrick McHardy
2008-08-20 22:09 ` Jarek Poplawski [this message]
2008-08-20 22:14 ` David Miller
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=20080820220931.GA3071@ami.dom.local \
--to=jarkao2@gmail.com \
--cc=davem@davemloft.net \
--cc=kaber@trash.net \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).