From 9f10436f9a3cdf1e3cf0007a6a5bc7a3bddace81 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Wed, 27 Nov 2019 19:52:34 +0100 Subject: [PATCH] Revert "add pfifo" This reverts commit d627b4d95f41570bae5462b6ae9398d9d3c63041. --- src/mpLinkCharacteristics.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mpLinkCharacteristics.py b/src/mpLinkCharacteristics.py index f93c919..6228301 100644 --- a/src/mpLinkCharacteristics.py +++ b/src/mpLinkCharacteristics.py @@ -53,8 +53,7 @@ class MpLinkCharacteristics: for n in self.netemAt: cmd = cmd + "sleep " + str(n.delta) cmd = cmd + " && tc qdisc del dev " + ifname + " root " - cmd = cmd + " && tc qdisc add dev {} root handle 1:0 pfifo".format(ifname) - cmd = cmd + " && tc filter add dev {} parent 1:0 handle 5:0 u32 match u32 0 0 police rate {}mbit burst {} drop".format(ifname, self.bandwidth, int(self.queueSize) * 1500) + cmd = cmd + " && tc filter add dev {} root handle 5:0 u32 match u32 0 0 police rate {}mbit burst {} drop".format(ifname, self.bandwidth, int(self.queueSize) * 1500) cmd = cmd + " && tc qdisc add dev {} parent 5:0 handle 5:1 tbf rate {}mbit burst 15000 latency {}ms".format(ifname, self.bandwidth, self.queuingDelay) # cmd = cmd + " && tc qdisc add dev {} handle ffff: ingress".format(ifname)