From a6653a56c96a0b42e6d02dea6dfa41562a1961f2 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 19 Sep 2026 04:18:18 +0900 Subject: [PATCH] test-network: do not try to set too small quanta for ets Since kernel v7.3 the kernel clamp quanta: https://github.com/torvalds/linux/commit/1c38487f46b243bfeefec0c0c86023a3904f2214 So, too small values are now calmped to 256. Let's change the values used in the test so that they are not clamped. --- test/test-network/conf/25-qdisc-ets.network | 4 ++-- test/test-network/systemd-networkd-tests.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test-network/conf/25-qdisc-ets.network b/test/test-network/conf/25-qdisc-ets.network index 81ca718393..9e13d0afeb 100644 --- a/test/test-network/conf/25-qdisc-ets.network +++ b/test/test-network/conf/25-qdisc-ets.network @@ -13,8 +13,8 @@ Bands=10 StrictBands=3 QuantumBytes=2 4 6 QuantumBytes= -QuantumBytes=1 2 3 -QuantumBytes=4 5 +QuantumBytes=1001 1002 1003 +QuantumBytes=1004 1005 PriorityMap=8 7 6 5 PriorityMap= PriorityMap=3 4 5 diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index b8c45017ef..8de78a6894 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -6334,7 +6334,7 @@ class NetworkdTCTests(unittest.TestCase, Utilities): self.assertRegex(output, 'qdisc ets 3a: root') self.assertRegex(output, 'bands 10 strict 3') - self.assertRegex(output, 'quanta 1 2 3 4 5') + self.assertRegex(output, 'quanta 1001 1002 1003 1004 1005') self.assertRegex(output, 'priomap 3 4 5 6 7') @expectedFailureIfModuleIsNotAvailable('sch_fq')