From patchwork Mon Oct 21 15:48:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Weismueller X-Patchwork-Id: 2528 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 46xgzy5rfGz43Sq for ; Mon, 21 Oct 2019 15:49:18 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 46xgzt519Wz4F7; Mon, 21 Oct 2019 15:49:14 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 46xgzt01Syz2ycb; Mon, 21 Oct 2019 15:49:14 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 46xgzr08Shz2yFb for ; Mon, 21 Oct 2019 15:49:12 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 46xgzq5dpQz3x5; Mon, 21 Oct 2019 15:49:11 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1571672951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wFSFY7g7OQsmCT9Ag+f/a38As/B+2s8kHb/IRoHZs/M=; b=HcIDNwMnWQcfQwNEbReMXsSsln8DjiDamjCKRLQ3VFeZsMyH4iHR8N2E4Lqs9zBJi4gQLl YmbwuXFpQxO1GQDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1571672951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wFSFY7g7OQsmCT9Ag+f/a38As/B+2s8kHb/IRoHZs/M=; b=BCuQ6vTBXjdjhM6tq7otjNQzqP/A53qkkywbgk3VIU5mx+g10EBnlKNr3Tb75xNw2VLElp qykpBusMFXRN6Zp5Xw2CzesYTEY2G9WB0ry0Oz0/P6jhQSKhOG7n6Rd/5L/pDx3pR/GjnJ KJC3mvKb5KXswaeadRlELo0lcZqfRIHFo0pLabZdhdLPtjfOL/DaCv1JtqYhXBxzIhTqmW auLA4uBVL/RwmKEeJWWFGLxVwixCHUbippBS5B16jcwLgXF5sDQu4EcEy4yWSskRvCNepg uVFvXNLxqdxGX3dXJhWBzUTYZ2RRXevDTmRiuzcsHu5PAUZEq3JGW6gcXjy6wA== From: =?utf-8?q?Daniel_Weism=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH 03/10] QoS: Tidy up qdiscs after QoS is being stopped Date: Mon, 21 Oct 2019 17:48:59 +0200 Message-Id: <20191021154906.24418-3-daniel.weismueller@ipfire.org> In-Reply-To: <20191021154906.24418-1-daniel.weismueller@ipfire.org> References: <20191021154906.24418-1-daniel.weismueller@ipfire.org> MIME-Version: 1.0 Authentication-Results: mail01.ipfire.org; auth=pass smtp.auth=dweismueller smtp.mailfrom=daniel.weismueller@ipfire.org X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" From: Michael Tremer Signed-off-by: Michael Tremer Signed-off-by: Daniel Weismüller --- config/qos/makeqosscripts.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/qos/makeqosscripts.pl b/config/qos/makeqosscripts.pl index b25aad93a..fbc2da95a 100644 --- a/config/qos/makeqosscripts.pl +++ b/config/qos/makeqosscripts.pl @@ -691,11 +691,14 @@ print </dev/null) & # DELETE QDISCS tc qdisc del dev $qossettings{'RED_DEV'} root >/dev/null 2>&1 + tc qdisc del dev $qossettings{'RED_DEV'} ingress >/dev/null 2>&1 tc qdisc add root dev $qossettings{'RED_DEV'} fq_codel >/dev/null 2>&1 tc qdisc del dev $qossettings{'IMQ_DEV'} root >/dev/null 2>&1 + tc qdisc del dev $qossettings{'IMQ_DEV'} ingress >/dev/null 2>&1 tc qdisc add root dev $qossettings{'IMQ_DEV'} fq_codel >/dev/null 2>&1 # STOP IMQ-DEVICE ip link set $qossettings{'IMQ_DEV'} down >/dev/null 2>&1 + ip link del $qossettings{'IMQ_DEV'} >/dev/null 2>&1 # REMOVE & FLUSH CHAINS iptables -t mangle --delete POSTROUTING -i $qossettings{'RED_DEV'} -p ah -j RETURN >/dev/null 2>&1