From: Jarek Poplawski <jarkao2@gmail.com>
To: Denys Fedoryschenko <denys@visp.net.lb>
Cc: netdev@vger.kernel.org
Subject: Re: DRR example, how to replace SFQ
Date: Thu, 12 Mar 2009 07:25:08 +0000 [thread overview]
Message-ID: <20090312072508.GA4104@ff.dom.local> (raw)
In-Reply-To: <200903120201.49195.denys@visp.net.lb>
On Thu, Mar 12, 2009 at 02:01:49AM +0200, Denys Fedoryschenko wrote:
> If i understand right, it must look like this to simulate SFQ
> This example with just 2 "queues".
>
> tc qdisc add dev eth0.100 root handle 1: htb
>
> tc class add dev eth0.100 parent 1: classid 1:1 htb rate 15Kbit ceil 15Kbit
>
> tc qdisc add dev eth0.100 parent 1:1 handle 2: drr
>
> tc class add dev eth0.100 parent 2: classid 2:1 drr quantum 1600
> tc class add dev eth0.100 parent 2: classid 2:2 drr quantum 1600
>
> tc qdisc add dev eth0.100 parent 2:1 handle 10: bfifo 9000
> tc qdisc add dev eth0.100 parent 2:2 handle 11: bfifo 9000
>
> tc filter add dev eth0.100 parent 1: protocol ip prio 5 u32 match u32 0 0
> flowid 1:1
>
> tc filter add dev eth0.100 parent 2: protocol ip prio 10 handle 1 flow keys
> dst divisor 2 baseclass 2:1
>
> Is it correct?
Generally looks OK, but examples from cls_flow changelog could be
followed:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=e5dfb815181fcb186d6080ac3a091eadff2d98fe
Jarek P.
prev parent reply other threads:[~2009-03-12 7:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-12 0:01 DRR example, how to replace SFQ Denys Fedoryschenko
2009-03-12 7:25 ` Jarek Poplawski [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=20090312072508.GA4104@ff.dom.local \
--to=jarkao2@gmail.com \
--cc=denys@visp.net.lb \
--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).