summaryrefslogtreecommitdiffstats
path: root/test/test-network
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-09-04 13:32:32 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-09-04 14:56:40 +0200
commit2b9ced9072a280a2cb0c2c7783a288788a3a6771 (patch)
tree93da3524ca0064c5ce35ba957c4b3e3c02595bf8 /test/test-network
parentnetwork: Add support for multiq qdisc (diff)
downloadsystemd-2b9ced9072a280a2cb0c2c7783a288788a3a6771.tar.xz
systemd-2b9ced9072a280a2cb0c2c7783a288788a3a6771.zip
network: Add support for mq qdisc
Diffstat (limited to 'test/test-network')
-rw-r--r--test/test-network/conf/25-qdisc-mq.network12
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py9
2 files changed, 21 insertions, 0 deletions
diff --git a/test/test-network/conf/25-qdisc-mq.network b/test/test-network/conf/25-qdisc-mq.network
new file mode 100644
index 0000000000..32366d05da
--- /dev/null
+++ b/test/test-network/conf/25-qdisc-mq.network
@@ -0,0 +1,12 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+[Match]
+Name=testtun99
+Name=testtap99
+
+[Network]
+LinkLocalAddressing=yes
+IPv6AcceptRA=no
+
+[ClassfulMultiQueueing]
+Parent=root
+Handle=0002
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index a2b4eb40b2..3989fc0401 100755
--- a/test/test-network/systemd-networkd-tests.py
+++ b/test/test-network/systemd-networkd-tests.py
@@ -4648,6 +4648,15 @@ class NetworkdTCTests(unittest.TestCase, Utilities):
print(output)
self.assertRegex(output, 'qdisc ingress')
+ def test_qdisc_mq(self):
+ copy_network_unit('25-tun.netdev', '25-tap.netdev', '25-qdisc-mq.network')
+ start_networkd()
+ self.wait_online('testtun99:degraded', 'testtap99:degraded')
+
+ output = check_output('tc qdisc show dev testtun99')
+ print(output)
+ self.assertIn('qdisc mq 2: root', output)
+
@expectedFailureIfModuleIsNotAvailable('sch_multiq')
def test_qdisc_multiq(self):
copy_network_unit('25-tun.netdev', '25-tap.netdev', '25-qdisc-multiq.network')