summaryrefslogtreecommitdiffstats
path: root/test/test-network
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-09-04 12:19:49 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-09-04 14:56:37 +0200
commit3f14557ce01cc9012991a602851b03f0a4205fc2 (patch)
tree3e7a071718a6c1ed528a9789fd435250557461bc /test/test-network
parentMerge pull request #34224 from yuwata/network-make-qdisc-reconfigurable (diff)
downloadsystemd-3f14557ce01cc9012991a602851b03f0a4205fc2.tar.xz
systemd-3f14557ce01cc9012991a602851b03f0a4205fc2.zip
network: Add support for multiq qdisc
Diffstat (limited to 'test/test-network')
-rw-r--r--test/test-network/conf/25-qdisc-multiq.network12
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py10
2 files changed, 22 insertions, 0 deletions
diff --git a/test/test-network/conf/25-qdisc-multiq.network b/test/test-network/conf/25-qdisc-multiq.network
new file mode 100644
index 0000000000..a805c77124
--- /dev/null
+++ b/test/test-network/conf/25-qdisc-multiq.network
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Match]
+Name=testtun99
+Name=testtap99
+
+[Network]
+LinkLocalAddressing=yes
+IPv6AcceptRA=no
+
+[BandMultiQueueing]
+Parent=root
+Handle=0002
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 1b61038d09..a2b4eb40b2 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -4648,6 +4648,16 @@ class NetworkdTCTests(unittest.TestCase, Utilities):
print(output)
self.assertRegex(output, 'qdisc ingress')
+ @expectedFailureIfModuleIsNotAvailable('sch_multiq')
+ def test_qdisc_multiq(self):
+ copy_network_unit('25-tun.netdev', '25-tap.netdev', '25-qdisc-multiq.network')
+ start_networkd()
+ self.wait_online('testtun99:degraded', 'testtap99:degraded')
+
+ output = check_output('tc qdisc show dev testtun99')
+ print(output)
+ self.assertIn('qdisc multiq 2: root', output)
+
@expectedFailureIfModuleIsNotAvailable('sch_netem')
def test_qdisc_netem(self):
copy_network_unit('25-qdisc-netem.network', '12-dummy.netdev',