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/
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/
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/
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/