diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-12-13 21:12:41 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-12-14 12:33:37 +0900 |
commit | 4ef289250f1c46fbe4f3559c6afaaeaa49a9a92a (patch) | |
tree | f3f1b6d282aa21e11596077bc43902787a177115 /test | |
parent | e83562e51e97035ea0668290b4a47b72c9862be1 (diff) | |
download | systemd-4ef289250f1c46fbe4f3559c6afaaeaa49a9a92a.tar.gz |
test-network: add a test case for new FQ settings
Diffstat (limited to 'test')
-rw-r--r-- | test/test-network/conf/25-qdisc-fq.network | 8 | ||||
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/test/test-network/conf/25-qdisc-fq.network b/test/test-network/conf/25-qdisc-fq.network index 10e0e5b859..ce41ddf910 100644 --- a/test/test-network/conf/25-qdisc-fq.network +++ b/test/test-network/conf/25-qdisc-fq.network @@ -8,3 +8,11 @@ Address=10.1.2.3/16 [TrafficControlQueueingDiscipline] Parent=root FairQueueTrafficPolicingPacketLimit=1000 +FairQueueTrafficPolicingFlowLimit=200 +FairQueueTrafficPolicingQuantum=1500 +FairQueueTrafficPolicingInitialQuantum=13000 +FairQueueTrafficPolicingMaximumRate=1M +FairQueueTrafficPolicingBuckets=512 +FairQueueTrafficPolicingOrphanMask=511 +FairQueueTrafficPolicingPacing=yes +FairQueueTrafficPolicingCEThresholdSec=100ms diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 30e2de8b0d..007d07c616 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -2143,7 +2143,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): output = check_output('tc qdisc show dev dummy98') print(output) self.assertRegex(output, 'qdisc fq') - self.assertRegex(output, 'limit 1000p') + self.assertRegex(output, 'limit 1000p flow_limit 200p buckets 512 orphan_mask 511 quantum 1500 initial_quantum 13000 maxrate 1Mbit') class NetworkdStateFileTests(unittest.TestCase, Utilities): links = [ |