From: David Miller <davem@davemloft.net>
To: kaber@trash.net
Cc: jussi.kivilinna@mbnet.fi, netdev@vger.kernel.org
Subject: Re: [PATCH net-next-2.6 v4 2/2] hfsc: add link layer overhead adaption
Date: Mon, 14 Jul 2008 22:11:25 -0700 (PDT) [thread overview]
Message-ID: <20080714.221125.137630059.davem@davemloft.net> (raw)
In-Reply-To: <487B61A9.5090204@trash.net>
From: Patrick McHardy <kaber@trash.net>
Date: Mon, 14 Jul 2008 16:24:41 +0200
> I thought you were going to make this a generic qdisc feature.
> Why is configuration still qdisc specific?
>
> I was thinking of something like this:
>
> - add generic attributes for configuring size tables for any
> qdisc, handle those in sch_api
>
> - add qdisc_enqueue() wrapper that calculates the size and
> stores it in skb->cb, convert direct calls of sch->enqueue
> to use it
>
> - change direct uses of skb->len to use the size from the cb
>
> The second step might need a bit more thought to make sure
> qdiscs don't get confused when the dequeued packet is larger
> than the enqueued one, but I think they usually don't care.
This sounds sane.
After having to edit every damn file net/sched/ over the weekend
a few things really bugged me. One of which was how so much logic
is duplicated in the configuration support code.
The worst offender is TCA_RATE, it's scattered all over the place.
If I get ambitious after all the multiqueue bits are sorted I might
try to consolidate some of this stuff.
But definitely, let's not add more of that kind of stuff.
next prev parent reply other threads:[~2008-07-15 5:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-10 19:34 [PATCH net-next-2.6 v4 1/2] net_sched: add size table functions Jussi Kivilinna
2008-07-10 19:34 ` [PATCH net-next-2.6 v4 2/2] hfsc: add link layer overhead adaption Jussi Kivilinna
2008-07-14 14:24 ` Patrick McHardy
2008-07-15 5:11 ` David Miller [this message]
2008-07-15 10:52 ` Jussi Kivilinna
2008-07-15 10:55 ` Patrick McHardy
2008-07-16 23:40 ` [PATCH RFC] net_sched: add generic qdisc size table Jussi Kivilinna
2008-07-17 0:32 ` Jussi Kivilinna
2008-07-17 9:39 ` Patrick McHardy
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=20080714.221125.137630059.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=jussi.kivilinna@mbnet.fi \
--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).