All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Unable to delete qdisc / class
@ 2002-12-11 12:50 Serge Maandag
  2002-12-11 17:54 ` Stef Coene
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Serge Maandag @ 2002-12-11 12:50 UTC (permalink / raw)
  To: lartc

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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Unable to delete qdisc / class
  2002-12-11 12:50 [LARTC] Unable to delete qdisc / class Serge Maandag
@ 2002-12-11 17:54 ` Stef Coene
  2002-12-11 20:04 ` Serge Maandag
  2002-12-11 20:49 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-12-11 17:54 UTC (permalink / raw)
  To: lartc

On Wednesday 11 December 2002 13:50, Serge Maandag wrote:
> 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".
Mhh.  This should work.  
Try this :
tc qdisc del dev eth0 root handle 22:

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* RE: [LARTC] Unable to delete qdisc / class
  2002-12-11 12:50 [LARTC] Unable to delete qdisc / class Serge Maandag
  2002-12-11 17:54 ` Stef Coene
@ 2002-12-11 20:04 ` Serge Maandag
  2002-12-11 20:49 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Serge Maandag @ 2002-12-11 20:04 UTC (permalink / raw)
  To: lartc

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:stef.coene@docum.org]
Sent: Wednesday, December 11, 2002 6:54 PM
To: Serge Maandag; lartc@mailman.ds9a.nl
Subject: Re: [LARTC] Unable to delete qdisc / class


On Wednesday 11 December 2002 13:50, Serge Maandag wrote:
> 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".
Mhh.  This should work.  
Try this :
tc qdisc del dev eth0 root handle 22:

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] Unable to delete qdisc / class
  2002-12-11 12:50 [LARTC] Unable to delete qdisc / class Serge Maandag
  2002-12-11 17:54 ` Stef Coene
  2002-12-11 20:04 ` Serge Maandag
@ 2002-12-11 20:49 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-12-11 20:49 UTC (permalink / raw)
  To: lartc

On Wednesday 11 December 2002 21:04, Serge Maandag wrote:
> 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 :(
I think you triggered a bug.  But I don't know what you can do about it.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

end of thread, other threads:[~2002-12-11 20:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-11 12:50 [LARTC] Unable to delete qdisc / class Serge Maandag
2002-12-11 17:54 ` Stef Coene
2002-12-11 20:04 ` Serge Maandag
2002-12-11 20:49 ` Stef Coene

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.