[PATCH 2/2] dts: rework run-time MTU adjustment test case
Nicholas Pratte
npratte at iol.unh.edu
Fri Jan 31 20:38:03 CET 2025
Forwarding restarts in the run-time MTU adjustment test case have been
explicitly added, given that the 'requires_forwarding_restart' decorator
from a previous patch was removed.
Signed-off-by: Nicholas Pratte <npratte at iol.unh.edu>
---
dts/tests/TestSuite_mtu.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dts/tests/TestSuite_mtu.py b/dts/tests/TestSuite_mtu.py
index 3c96a36fc9..d1d48c2c13 100644
--- a/dts/tests/TestSuite_mtu.py
+++ b/dts/tests/TestSuite_mtu.py
@@ -164,20 +164,26 @@ def test_runtime_mtu_updating_and_forwarding(self) -> None:
# Configure the new MTU.
# Start packet capturing.
- testpmd.start()
testpmd.set_port_mtu_all(1500, verify=True)
+ testpmd.start()
self.assess_mtu_boundary(testpmd, 1500)
+ testpmd.stop()
testpmd.set_port_mtu_all(2400, verify=True)
+ testpmd.start()
self.assess_mtu_boundary(testpmd, 1500)
self.assess_mtu_boundary(testpmd, 2400)
+ testpmd.stop()
testpmd.set_port_mtu_all(4800, verify=True)
+ testpmd.start()
self.assess_mtu_boundary(testpmd, 1500)
self.assess_mtu_boundary(testpmd, 4800)
+ testpmd.stop()
testpmd.set_port_mtu_all(9000, verify=True)
+ testpmd.start()
self.assess_mtu_boundary(testpmd, 1500)
self.assess_mtu_boundary(testpmd, 9000)
--
2.47.1
More information about the dev
mailing list