All of lore.kernel.org
 help / color / mirror / Atom feed
* DRR example, how to replace SFQ
@ 2009-03-12  0:01 Denys Fedoryschenko
  2009-03-12  7:25 ` Jarek Poplawski
  0 siblings, 1 reply; 2+ messages in thread
From: Denys Fedoryschenko @ 2009-03-12  0:01 UTC (permalink / raw)
  To: netdev, Jarek Poplawski

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DRR example, how to replace SFQ
  2009-03-12  0:01 DRR example, how to replace SFQ Denys Fedoryschenko
@ 2009-03-12  7:25 ` Jarek Poplawski
  0 siblings, 0 replies; 2+ messages in thread
From: Jarek Poplawski @ 2009-03-12  7:25 UTC (permalink / raw)
  To: Denys Fedoryschenko; +Cc: netdev

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-12  7:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-12  0:01 DRR example, how to replace SFQ Denys Fedoryschenko
2009-03-12  7:25 ` Jarek Poplawski

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.