Skip to contentSkip to conversation

Unable to delete qdisc / class

LARTC Serge Maandag 2 participants 4 messages Dec 11, 2002

lore
Share & tools
lore
#0 lore raw

Dear list,

I have setup a qdisc that I'd like to remove, but somehow it seems impossible.

-----------------
Output of show:

sh-2.04# tc -d qdisc show
qdisc cbq 22: dev eth0 rate 100Mbit cell 8b mpu 64b (bounded,isolated) prio no-transmit/8 weight 100Mbit allot 1514b
level 0 ewma 5 avpkt 1000b maxidle 1us

sh-2.04# tc -d class show dev eth0
class cbq 22: root rate 100Mbit cell 8b mpu 64b (bounded,isolated) prio no-transmit/8 weight 100Mbit allot 1514b
level 0 ewma 5 avpkt 1000b maxidle 1us

sh-2.04# tc -d filter show dev eth0
<nothing>
-----------------

If I do "tc qdisc del dev eth0 root" it says "RTNETLINK answers: No such file or directory".
If I do "tc class del dev eth0 classid 22:" it says "RTNETLINK answers:
Device or resource busy".

Can anyone tell me how I can get rid of my qdisc and class?

I am running iproute-2.4.7-1 on redhat 7.1, kernel 2.4.3-12smp.

TIA,

serge.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 18 lines · Serge Maandag

Dear list,

I have setup a qdisc that I'd like to remove, but somehow it seems impossible.

-----------------
Output of show:

sh-2.04# tc -d qdisc show
qdisc cbq 22: dev eth0 rate 100Mbit cell 8b mpu 64b (bounded,isolated) prio no-transmit/8 weight 100Mbit allot 1514b
level 0 ewma 5 avpkt 1000b maxidle 1us

sh-2.04# tc -d class show dev eth0
class cbq 22: root rate 100Mbit cell 8b mpu 64b (bounded,isolated) prio no-transmit/8 weight 100Mbit allot 1514b
level 0 ewma 5 avpkt 1000b maxidle 1us

Quoted 6 lines

sh-2.04# tc -d filter show dev eth0
<nothing>
-----------------

If I do "tc qdisc del dev eth0 root" it says "RTNETLINK answers: No such file or directory".

Mhh. This should work.
Try this :
tc qdisc del dev eth0 root handle 22:

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Serge Maandag

Thanx, but this is what I get:

sh-2.04# tc qdisc del dev eth0 root handle 22:
RTNETLINK answers: Invalid argument

So then I did:
sh-2.04# tc qdisc del dev eth0 root help
Usage: tc qdisc [ add | del | replace | change | get ] dev STRING
[ handle QHANDLE ] [ root | ingress | parent CLASSID ] [ estimator INTERVAL TIME_CONSTANT ]
[ [ QDISC_KIND ] [ help | OPTIONS ] ]

tc qdisc show [ dev STRING ] [ingress]
Where:
QDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. } OPTIONS := ... try tc qdisc add <desired QDISC_KIND> help

And I saw that handle is shown before root, so I tried:

sh-2.04# tc qdisc del dev eth0 handle 22: root
RTNETLINK answers: Invalid argument

It's about to drive me mad :(

Serge.

-----Original Message-----
From: Stef Coene [mailto:[email protected]]
Sent: Wednesday, December 11, 2002 6:54 PM
To: Serge Maandag; [email protected]
Subject: Re: [LARTC] Unable to delete qdisc / class

Quoted 18 lines · Serge Maandag

Dear list,

I have setup a qdisc that I'd like to remove, but somehow it seems impossible.

-----------------
Output of show:

sh-2.04# tc -d qdisc show
qdisc cbq 22: dev eth0 rate 100Mbit cell 8b mpu 64b (bounded,isolated) prio no-transmit/8 weight 100Mbit allot 1514b
level 0 ewma 5 avpkt 1000b maxidle 1us

sh-2.04# tc -d class show dev eth0
class cbq 22: root rate 100Mbit cell 8b mpu 64b (bounded,isolated) prio no-transmit/8 weight 100Mbit allot 1514b
level 0 ewma 5 avpkt 1000b maxidle 1us

Quoted 6 lines

sh-2.04# tc -d filter show dev eth0
<nothing>
-----------------

If I do "tc qdisc del dev eth0 root" it says "RTNETLINK answers: No such file or directory".

Mhh. This should work.
Try this :
tc qdisc del dev eth0 root handle 22:

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to Serge Maandag
Quoted 19 lines · Serge Maandag

Thanx, but this is what I get:

sh-2.04# tc qdisc del dev eth0 root handle 22:
RTNETLINK answers: Invalid argument

So then I did:
sh-2.04# tc qdisc del dev eth0 root help
Usage: tc qdisc [ add | del | replace | change | get ] dev STRING
[ handle QHANDLE ] [ root | ingress | parent CLASSID ] [ estimator INTERVAL TIME_CONSTANT ]
[ [ QDISC_KIND ] [ help | OPTIONS ] ]

tc qdisc show [ dev STRING ] [ingress]
Where:
QDISC_KIND := { [p|b]fifo | tbf | prio | cbq | red | etc. } OPTIONS := ... try tc qdisc add <desired QDISC_KIND> help

Quoted 6 lines

And I saw that handle is shown before root, so I tried:

sh-2.04# tc qdisc del dev eth0 handle 22: root
RTNETLINK answers: Invalid argument

It's about to drive me mad :(

I think you triggered a bug. But I don't know what you can do about it.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/