From: Andrew Bailey <abailey@iol.unh.edu>
To: probb@iol.unh.edu
Cc: luca.vizzarro@arm.com, dmarx@iol.unh.edu, dev@dpdk.org,
Andrew Bailey <abailey@iol.unh.edu>
Subject: [PATCH v4 2/2] dts: rewrite two link topology requirements
Date: Fri, 21 Nov 2025 14:55:11 -0500 [thread overview]
Message-ID: <20251121195511.322005-2-abailey@iol.unh.edu> (raw)
In-Reply-To: <20251121195511.322005-1-abailey@iol.unh.edu>
Some of the DTS test suites require two link topologies
in order to run, but not all truly require two links
for proper testing. Rewrite the topology requirements
on these test suites to reflect the actual
requirements.
Signed-off-by: Andrew Bailey <abailey@iol.unh.edu>
Signed-off-by: Dean Marx <dmarx@iol.unh.edu>
---
dts/framework/test_suite.py | 6 +++---
dts/tests/TestSuite_blocklist.py | 3 ++-
dts/tests/TestSuite_checksum_offload.py | 3 ---
dts/tests/TestSuite_port_control.py | 3 ---
dts/tests/TestSuite_uni_pkt.py | 3 ---
dts/tests/TestSuite_vlan.py | 3 ---
6 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/dts/framework/test_suite.py b/dts/framework/test_suite.py
index 9c57e343ac..48e0366b61 100644
--- a/dts/framework/test_suite.py
+++ b/dts/framework/test_suite.py
@@ -23,7 +23,7 @@
from ipaddress import IPv4Interface, IPv6Interface, ip_interface
from pkgutil import iter_modules
from types import ModuleType
-from typing import TYPE_CHECKING, ClassVar, Protocol, TypeVar, Union, cast
+from typing import TYPE_CHECKING, Any, ClassVar, Protocol, TypeVar, Union, cast
from scapy.layers.inet import IP
from scapy.packet import Packet
@@ -328,9 +328,9 @@ def _decorator(func: TestSuiteMethodType) -> type[TestCase]:
#: The decorator for functional test cases.
-func_test: Callable = TestCase.make_decorator(TestCaseType.FUNCTIONAL)
+func_test: Callable[[Any], type["TestCase"]] = TestCase.make_decorator(TestCaseType.FUNCTIONAL)
#: The decorator for performance test cases.
-perf_test: Callable = TestCase.make_decorator(TestCaseType.PERFORMANCE)
+perf_test: Callable[[Any], type["TestCase"]] = TestCase.make_decorator(TestCaseType.PERFORMANCE)
@dataclass
diff --git a/dts/tests/TestSuite_blocklist.py b/dts/tests/TestSuite_blocklist.py
index ba37f39ab3..c57231de22 100644
--- a/dts/tests/TestSuite_blocklist.py
+++ b/dts/tests/TestSuite_blocklist.py
@@ -16,7 +16,6 @@
from framework.testbed_model.port import Port
-@requires_link_topology(LinkTopology.TWO_LINKS)
class TestBlocklist(TestSuite):
"""DPDK device blocklisting test suite."""
@@ -45,6 +44,7 @@ def no_blocklisted(self) -> None:
"""
self._verify_blocklisted_ports([])
+ @requires_link_topology(LinkTopology.TWO_LINKS)
@func_test
def one_port_blocklisted(self) -> None:
"""Run testpmd with one blocklisted port.
@@ -57,6 +57,7 @@ def one_port_blocklisted(self) -> None:
"""
self._verify_blocklisted_ports(self.topology.sut_ports[:1])
+ @requires_link_topology(LinkTopology.TWO_LINKS)
@func_test
def all_but_one_port_blocklisted(self) -> None:
"""Run testpmd with all but one blocklisted port.
diff --git a/dts/tests/TestSuite_checksum_offload.py b/dts/tests/TestSuite_checksum_offload.py
index 394a73c31d..90ca798e56 100644
--- a/dts/tests/TestSuite_checksum_offload.py
+++ b/dts/tests/TestSuite_checksum_offload.py
@@ -20,9 +20,7 @@
from scapy.packet import Packet, Raw
from api.capabilities import (
- LinkTopology,
NicCapability,
- requires_link_topology,
requires_nic_capability,
)
from api.packet import send_packet_and_capture
@@ -33,7 +31,6 @@
from framework.test_suite import TestSuite, func_test
-@requires_link_topology(LinkTopology.TWO_LINKS)
@requires_nic_capability(NicCapability.PORT_RX_OFFLOAD_IPV4_CKSUM)
@requires_nic_capability(NicCapability.PORT_RX_OFFLOAD_UDP_CKSUM)
@requires_nic_capability(NicCapability.PORT_RX_OFFLOAD_TCP_CKSUM)
diff --git a/dts/tests/TestSuite_port_control.py b/dts/tests/TestSuite_port_control.py
index d9cc5ff4c9..6be47838d0 100644
--- a/dts/tests/TestSuite_port_control.py
+++ b/dts/tests/TestSuite_port_control.py
@@ -13,9 +13,7 @@
from scapy.packet import Packet, Raw
from api.capabilities import (
- LinkTopology,
NicCapability,
- requires_link_topology,
requires_nic_capability,
)
from api.packet import send_packets_and_capture
@@ -26,7 +24,6 @@
@requires_nic_capability(NicCapability.PHYSICAL_FUNCTION)
-@requires_link_topology(LinkTopology.TWO_LINKS)
class TestPortControl(TestSuite):
"""DPDK Port Control Testing Suite."""
diff --git a/dts/tests/TestSuite_uni_pkt.py b/dts/tests/TestSuite_uni_pkt.py
index 97d61cd03a..222276ce67 100644
--- a/dts/tests/TestSuite_uni_pkt.py
+++ b/dts/tests/TestSuite_uni_pkt.py
@@ -20,9 +20,7 @@
from scapy.packet import Packet, Raw
from api.capabilities import (
- LinkTopology,
NicCapability,
- requires_link_topology,
requires_nic_capability,
)
from api.packet import send_packet_and_capture
@@ -33,7 +31,6 @@
from framework.test_suite import TestSuite, func_test
-@requires_link_topology(LinkTopology.TWO_LINKS)
class TestUniPkt(TestSuite):
"""DPDK Unified packet test suite.
diff --git a/dts/tests/TestSuite_vlan.py b/dts/tests/TestSuite_vlan.py
index 2c5abd68bf..1b5f8d0b12 100644
--- a/dts/tests/TestSuite_vlan.py
+++ b/dts/tests/TestSuite_vlan.py
@@ -16,9 +16,7 @@
from scapy.packet import Raw
from api.capabilities import (
- LinkTopology,
NicCapability,
- requires_link_topology,
requires_nic_capability,
)
from api.packet import send_packet_and_capture
@@ -29,7 +27,6 @@
@requires_nic_capability(NicCapability.PORT_RX_OFFLOAD_VLAN_FILTER)
-@requires_link_topology(LinkTopology.TWO_LINKS)
class TestVlan(TestSuite):
"""DPDK VLAN test suite.
--
2.50.1
prev parent reply other threads:[~2025-11-21 19:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-23 13:50 [PATCH v1] dts: make one link the default topology Dean Marx
2025-07-28 12:15 ` Luca Vizzarro
2025-08-07 14:07 ` [PATCH v2 1/2] dts: rewrite two link topology requirements Dean Marx
2025-08-07 14:07 ` [PATCH v2 2/2] dts: make one link the default topology Dean Marx
2025-08-11 10:47 ` Luca Vizzarro
2025-08-11 10:47 ` [PATCH v2 1/2] dts: rewrite two link topology requirements Luca Vizzarro
2025-08-11 10:50 ` Luca Vizzarro
2025-08-20 14:06 ` [PATCH v3 0/2] dts: change default topology to one link Dean Marx
2025-08-20 14:06 ` [PATCH v3 1/2] dts: make one link the default topology Dean Marx
2025-08-28 2:11 ` Patrick Robb
2025-08-20 14:06 ` [PATCH v3 2/2] dts: rewrite two link topology requirements Dean Marx
2025-08-26 14:03 ` Luca Vizzarro
2025-08-28 2:14 ` Patrick Robb
2025-08-29 8:52 ` [PATCH v3 0/2] dts: change default topology to one link Luca Vizzarro
2025-11-21 19:55 ` [PATCH v4 1/2] dts: make one link the default topology Andrew Bailey
2025-11-21 19:55 ` Andrew Bailey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251121195511.322005-2-abailey@iol.unh.edu \
--to=abailey@iol.unh.edu \
--cc=dev@dpdk.org \
--cc=dmarx@iol.unh.edu \
--cc=luca.vizzarro@arm.com \
--cc=probb@iol.unh.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).