From: Patrick McHardy <kaber@trash.net>
To: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH RFC 3/3] net_sched: Add size table for qdiscs
Date: Mon, 21 Jul 2008 15:00:33 +0200 [thread overview]
Message-ID: <48848871.3050900@trash.net> (raw)
In-Reply-To: <20080717210231.28364m21mg503g8w@hayate.ip6>
Jussi Kivilinna wrote:
> Quoting "Patrick McHardy" <kaber@trash.net>:
>
>>> @@ -123,9 +123,9 @@ static int tbf_enqueue(struct sk_buff *skb,
>>> struct Qdisc* sch)
>>> struct tbf_sched_data *q = qdisc_priv(sch);
>>> int ret;
>>> - /* qdisc_tx_len() before qdisc_enqueue() wrapper, might return
>>> different
>>> - * length than after wrapper. Should recalculate tx_len here if
>>> q->qdisc
>>> - * has size table? */
>>> + if (q->qdisc->stab)
>>> + qdisc_calculate_tx_len(skb, q->qdisc->stab);
>>> +
>>
>> I don't think this will help, the inner qdisc might again have
>> an inner qdisc that increases the size. So this probably needs
>> to be handled during dequeue.
>>
>
> I don't quite follow you here, what needs to be handled during dequeue?
> tbf's q->max_size check?
Yes. You check on ->enqueue by using the inner qdiscs size table,
but that qdisc might again have an inner qdisc which increases
the size, which you can't check during ->enqueue.
next prev parent reply other threads:[~2008-07-21 13:00 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-17 10:09 [PATCH RFC 0/3] Add generic size table for qdiscs Jussi Kivilinna
2008-07-17 10:09 ` [PATCH RFC 1/3] net_sched: Add qdisc_enqueue wrapper Jussi Kivilinna
2008-07-17 10:10 ` Patrick McHardy
2008-07-17 10:09 ` [PATCH RFC 2/3] net_sched: Add accessor function for packet length for qdiscs Jussi Kivilinna
2008-07-17 10:11 ` Patrick McHardy
2008-07-17 11:33 ` Jussi Kivilinna
2008-07-17 10:09 ` [PATCH RFC 3/3] net_sched: Add size table " Jussi Kivilinna
2008-07-17 10:30 ` Patrick McHardy
2008-07-17 18:02 ` Jussi Kivilinna
2008-07-21 13:00 ` Patrick McHardy [this message]
2008-07-21 13:03 ` Jussi Kivilinna
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=48848871.3050900@trash.net \
--to=kaber@trash.net \
--cc=jussi.kivilinna@mbnet.fi \
--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).