]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: add a test case for CoDel 14444/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 28 Dec 2019 13:25:49 +0000 (22:25 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 28 Dec 2019 13:25:49 +0000 (22:25 +0900)
test/test-network/conf/25-qdisc-fq-codel.network [moved from test/test-network/conf/25-qdisc-fq.network with 69% similarity]
test/test-network/systemd-networkd-tests.py

similarity index 69%
rename from test/test-network/conf/25-qdisc-fq.network
rename to test/test-network/conf/25-qdisc-fq-codel.network
index ce41ddf910380338448df81038b95a179dcaa057..20bcca2e506a4c5706ac870cb3451387dbfdccfc 100644 (file)
@@ -16,3 +16,11 @@ FairQueueTrafficPolicingBuckets=512
 FairQueueTrafficPolicingOrphanMask=511
 FairQueueTrafficPolicingPacing=yes
 FairQueueTrafficPolicingCEThresholdSec=100ms
+
+[TrafficControlQueueingDiscipline]
+Parent=clsact
+ControlledDelayPacketLimit=2000
+ControlledDelayTargetSec=10ms
+ControlledDelayIntervalSec=50ms
+ControlledDelayECN=yes
+ControlledDelayCEThresholdSec=100ms
index 6b59efa09d06224ef5f5cc147f6acd1b85bfe74b..3eadb1574dd970dc51149ca02b4c9588ecdebd28 100755 (executable)
@@ -1562,7 +1562,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         '25-neighbor-ip-dummy.network',
         '25-neighbor-ip.network',
         '25-nexthop.network',
-        '25-qdisc-fq.network',
+        '25-qdisc-fq-codel.network',
         '25-qdisc-netem-and-fqcodel.network',
         '25-qdisc-tbf-and-sfq.network',
         '25-route-ipv6-src.network',
@@ -2157,7 +2157,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         self.assertRegex(output, 'perturb 5sec')
 
     def test_qdisc2(self):
-        copy_unit_to_networkd_unit_path('25-qdisc-fq.network', '12-dummy.netdev')
+        copy_unit_to_networkd_unit_path('25-qdisc-fq-codel.network', '12-dummy.netdev')
         start_networkd()
 
         self.wait_online(['dummy98:routable'])
@@ -2166,6 +2166,8 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         print(output)
         self.assertRegex(output, 'qdisc fq')
         self.assertRegex(output, 'limit 1000p flow_limit 200p buckets 512 orphan_mask 511 quantum 1500 initial_quantum 13000 maxrate 1Mbit')
+        self.assertRegex(output, 'qdisc codel')
+        self.assertRegex(output, 'limit 2000p target 10.0ms ce_threshold 100.0ms interval 50.0ms ecn')
 
 class NetworkdStateFileTests(unittest.TestCase, Utilities):
     links = [