mpLinkCharacteristics: use pfifo in parallel with netem

This commit is contained in:
Quentin De Coninck 2016-04-21 15:55:40 +02:00
parent 1995269614
commit 2ae9b7a008

View File

@ -38,6 +38,9 @@ class MpLinkCharacteristics:
cmd = cmd + " handle " + MpLinkCharacteristics.tcNetemHandle cmd = cmd + " handle " + MpLinkCharacteristics.tcNetemHandle
cmd = cmd + " netem " + n.cmd + " delay " + self.delay + "ms" cmd = cmd + " netem " + n.cmd + " delay " + self.delay + "ms"
cmd = cmd + " rate " + self.bandwidth + "mbit && " cmd = cmd + " rate " + self.bandwidth + "mbit && "
cmd = cmd + " tc qdisc add dev " + ifname + " "
cmd = cmd + " parent " + MpLinkCharacteristics.tcNetemHandle
cmd = cmd + " pfifo limit " + self.queueSize + " && "
cmd = cmd + " true &" cmd = cmd + " true &"
return cmd return cmd