From: Francois Marier Date: Wed, 09 Jan 2013 08:42:34 +0000 Subject: Resetting a queue discipline back to the default pfifo_fast one Message-Id: <20130109084234.GC9063@isafjordur.dyndns.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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