diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-09-04 13:32:32 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-09-04 14:56:40 +0200 |
commit | 2b9ced9072a280a2cb0c2c7783a288788a3a6771 (patch) | |
tree | 93da3524ca0064c5ce35ba957c4b3e3c02595bf8 /test/test-network | |
parent | network: Add support for multiq qdisc (diff) | |
download | systemd-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.network | 12 | ||||
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 9 |
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') |