Revert "add pfifo"

This reverts commit d627b4d95f.
This commit is contained in:
Quentin De Coninck 2019-11-27 19:52:34 +01:00
parent d627b4d95f
commit 9f10436f9a

View File

@ -53,8 +53,7 @@ class MpLinkCharacteristics:
for n in self.netemAt: for n in self.netemAt:
cmd = cmd + "sleep " + str(n.delta) cmd = cmd + "sleep " + str(n.delta)
cmd = cmd + " && tc qdisc del dev " + ifname + " root " 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 {} 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 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 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 {} 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) # cmd = cmd + " && tc qdisc add dev {} handle ffff: ingress".format(ifname)