Re: Resetting a queue discipline back to the default pfifo_fast one

Linux Advanced Routing and Traffic Control

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

 



iI think if you just "tc qdisc del dev eth1 root", you will reset it to default.

On Wed, Jan 9, 2013 at 12:42 AM, Francois Marier <francois@xxxxxxxxxxx> wrote:
> After reading the HOWTO and searching the list archive, I'm still not sure
> how to do what seems like a simple task. I'm trying to temporarily set a
> rate-limited queue discipline and then remove it a bit later:
>
>   # tc qdisc add dev eth1 root tbf rate 600kbit latency 50ms burst 1540
>   # tc qdisc del dev eth1 root
>
> If I try that on AWS using an Amazon Linux image, it seems to do the right
> thing, but unfortunately, on Debian squeeze or wheezy, this entirely
> removes the queue discipline (and severely therefore interferes with
> outgoing data transfers).
>
> I was hoping to be able to reset the qdisc back to the default one:
>
>   qdisc pfifo_fast 0: dev eth1 root refcnt 2 bands 3 priomap  1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
>
> However it doesn't look like that pfifo_fast qdisc can be created manually:
>
>   # tc qdisc add dev eth1 root pfifo_fast
>   qdisc 'pfifo_fast' does not support option parsing
>
> The work-around I found is to create a new prio queue discipline:
>
>   # tc qdisc add dev eth1 root prio
>
> but, I was wondering how to reset this back to the real default (pfifo_fast)
> without rebooting.
>
> Am I dealing with a broken version of tc on Debian? Is this a known problem?
> Or am I using the tool wrong?
>
> Cheers,
> Francois
>
> --
> Francois Marier           identi.ca/fmarier
> http://fmarier.org      twitter.com/fmarier
> --
> To unsubscribe from this list: send the line "unsubscribe lartc" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux