From 2b9ced9072a280a2cb0c2c7783a288788a3a6771 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Wed, 4 Sep 2024 13:32:32 +0200 Subject: network: Add support for mq qdisc --- test/test-network/conf/25-qdisc-mq.network | 12 ++++++++++++ test/test-network/systemd-networkd-tests.py | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/test-network/conf/25-qdisc-mq.network (limited to 'test/test-network') 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') -- cgit v1.2.3