[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:





olshef@us.ibm.com wrote:
> 
> Hi,
> 
> When I execute the ef-prio calls this is what I get:
> 
> [root@sladev2 diffserv]# /usr/src/iproute2/tc/tc qdisc add dev tr1 handle
> 1:0 root dsmark indices 64 set_tc_index
> [root@sladev2 diffserv]# /usr/src/iproute2/tc/tc filter add dev tr1 parent
> 1:0 protocol ip prio 1 tcindex mask 0xfc shift 2
> [root@sladev2 diffserv]# /usr/src/iproute2/tc/tc qdisc add dev tr1 parent
> 1:0 handle 2:0 prio
> [root@sladev2 diffserv]# /usr/src/iproute2/tc/tc qdisc add dev tr1 parent
> 2:1 tbf rate 1.5Mbit burst 1.5kB limit 1.6kB
> RTNETLINK answers: Invalid argument

	I find it weird: you say "parent 2:1", but there is no class defined
which has a handle 2:1. This may be your problem.


> [root@sladev2 diffserv]# /usr/src/iproute2/tc/tc filter add dev tr1 parent
> 2:0 protocol ip prio 1 handle 0x2e tcindex classid 2:1 pass_on
> [root@sladev2 diffserv]# /usr/src/iproute2/tc/tc qdisc add dev tr1 parent
> 2:2 red limit 60KB min 15KB max 45KB burst 20 avpkt 1000 bandwidth 10Mbit
> probability 0.4
> [root@sladev2 diffserv]# /usr/src/iproute2/tc/tc filter add dev tr1 parent
> 2:0 protocol ip prio 2 handle 0 tcindex mask 0 classid 2:2 pass_on
> [root@sladev2 diffserv]#
> 
> Why do I get the "invalid argument" error message?
> 
> David P. Olshefski
> (914) 784-7639, Office H1-B51
> olshef@us.ibm.com
> IBM T.J. Watson Research
> Hawthorne, NY 10532