All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Adding dsmark qdisc fails
@ 2005-03-20 13:06 Tero Saarni
  2005-03-20 15:15 ` Patrick McHardy
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Tero Saarni @ 2005-03-20 13:06 UTC (permalink / raw)
  To: lartc

I'm trying to configure dsmark qdisc on 2.6.11.4 user mode linux and
tc from iproute2-2.6.11-050314.

I think I have some mismatch in my setup since adding dsmark qdisc
fails *unless* I specify "set_tc_index" argument which I believe should
be optional:

# tc qdisc add dev eth1 handle 1:0 root dsmark indices 8
RTNETLINK answers: Invalid argument
Mar 20 13:00:50 user user.debug kernel: dsmark_init(sch a0bb3ae0,[qdisc 
a0bb3b60],opt 00000000)

here the log shows that opt is null, sch_dsmark checks for that and
bails out.  However running tc with "set_tc_index" goes ok:

# tc qdisc add dev eth1 handle 1:0 root dsmark indices 8 set_tc_index
Mar 20 13:01:12 user user.debug kernel: dsmark_init(sch a0bb3060,[qdisc 
a0bb30e0],opt a038e9d0)
Mar 20 13:01:12 user user.debug kernel: dsmark_init: qdisc a0bb30e0

# tc qdisc show dev eth1
qdisc dsmark 1: indices 0x0008 set_tc_index


but then changing the class fails:

# tc class change dev eth1 classid 1:1 dsmark mask 0x0 value 0xb8
RTNETLINK answers: Invalid argument
Mar 20 13:02:28 user user.debug kernel: dsmark_get(sch a0bb3060,[qdisc 
a0bb30e0],classid 10001)
Mar 20 13:02:28 user user.debug kernel: dsmark_change(sch a0bb3060,[qdisc 
a0bb30e0],classid 10001,parent 0),arg 0x2


Any ideas where I've gone wrong?

--
Tero

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2006-01-06  0:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-20 13:06 [LARTC] Adding dsmark qdisc fails Tero Saarni
2005-03-20 15:15 ` Patrick McHardy
2005-03-20 16:25 ` Thomas Graf
2005-03-20 17:00 ` Tero Saarni
2006-01-05 21:34 ` Keith Mitchell
2006-01-06  0:38 ` Keith Mitchell

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.