From 8064543315dda819bd4157a28fdb8e2a60844398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Chac=C3=B3n?= Date: Fri, 9 Sep 2022 03:33:48 -0600 Subject: [PATCH] Prevent qdisc delete unless needed, aim to reduce any packet loss --- v1.2/LibreQoS.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v1.2/LibreQoS.py b/v1.2/LibreQoS.py index 885d59d6..a2c16612 100644 --- a/v1.2/LibreQoS.py +++ b/v1.2/LibreQoS.py @@ -426,7 +426,8 @@ def refreshShapers(): reloadStartTime = datetime.now() # Clear Prior Settings - clearPriorSettings(interfaceA, interfaceB) + if isThisFirstRunSinceBoot: + clearPriorSettings(interfaceA, interfaceB) # If this is the first time LibreQoS.py has run since system boot, load the XDP program and disable XPS # Otherwise, just clear the existing IP filter rules for xdp