| 0c81db58 | 26-Nov-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: remove leftover node methods
The "remove redundant test suite" removed an unused test suite and some dead code with it. Some dead code which references now-removed symbols, remained though. Thi
dts: remove leftover node methods
The "remove redundant test suite" removed an unused test suite and some dead code with it. Some dead code which references now-removed symbols, remained though. This removes this code, therefore fixing the related mypy errors.
Fixes: e3ab9dd5cd5d ("dts: remove redundant test suite")
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Patrick Robb <probb@iol.unh.edu>
show more ...
|
| bee7cf82 | 15-Oct-2024 |
Dean Marx <dmarx@iol.unh.edu> |
dts: add checksum offload to testpmd shell
Add csum_set_hw method to testpmd shell class.
Signed-off-by: Dean Marx <dmarx@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu> |
| c986c339 | 05-Nov-2024 |
Dean Marx <dmarx@iol.unh.edu> |
dts: add testpmd port queue modification
This patch adds methods for querying and modifying port queue state and configuration. In addition to this, it also adds the ability to capture the forwardin
dts: add testpmd port queue modification
This patch adds methods for querying and modifying port queue state and configuration. In addition to this, it also adds the ability to capture the forwarding statistics that get outputted when you send the "stop" command in testpmd. Querying of port queue information is handled through a TextParser dataclass in case there is future need for using more of the output from the command used to query the information.
Signed-off-by: Jeremy Spewock <jspewock@iol.unh.edu> Signed-off-by: Dean Marx <dmarx@iol.unh.edu>
show more ...
|
| e3ab9dd5 | 15-Nov-2024 |
Paul Szczepanek <paul.szczepanek@arm.com> |
dts: remove redundant test suite
The test suite served as a demonstration of the Scapy traffic generator implementation. Now that we have a test suite that uses DPDK code (via testpmd), there is no
dts: remove redundant test suite
The test suite served as a demonstration of the Scapy traffic generator implementation. Now that we have a test suite that uses DPDK code (via testpmd), there is no reason to keep the test suite, as there's no expectation it'll be actually used in any setup.
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Signed-off-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Patrick Robb <probb@iol.unh.edu>
show more ...
|
| 474ce443 | 16-Oct-2024 |
Nicholas Pratte <npratte@iol.unh.edu> |
dts: add capability check for multicast filtering
The multicast address filter component of the MAC filter test suite is not supported by all device drivers. So, a simple multicast filter capability
dts: add capability check for multicast filtering
The multicast address filter component of the MAC filter test suite is not supported by all device drivers. So, a simple multicast filter capability check is added for the multicast filter testcase.
Bugzilla ID: 1454
Signed-off-by: Nicholas Pratte <npratte@iol.unh.edu>
show more ...
|
| e3b16f45 | 16-Oct-2024 |
Nicholas Pratte <npratte@iol.unh.edu> |
dts: add setting MAC and multicast addresses
New methods have been added to TestPMDShell in order to support the MAC filter's individual test cases: - set_mac_addr - set_multicast_mac_addr
set_ma
dts: add setting MAC and multicast addresses
New methods have been added to TestPMDShell in order to support the MAC filter's individual test cases: - set_mac_addr - set_multicast_mac_addr
set_mac_addr and set_multicast_addr were created for the MAC filter test suite, enabling users to both add or remove MAC and multicast addresses based on a boolean 'add or remove' parameter.
Bugzilla ID: 1454
Signed-off-by: Nicholas Pratte <npratte@iol.unh.edu>
show more ...
|
| 125d85e7 | 07-Nov-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: add blocklist test suite
This test suite tests the port blocklisting functionality built in testpmd.
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szc
dts: add blocklist test suite
This test suite tests the port blocklisting functionality built in testpmd.
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com>
show more ...
|
| 0264e408 | 07-Nov-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: add blocked ports to EAL parameters
Make the "ports" attribute of EalParams as it actually is to "allowed_ports", and add "blocked_ports".
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com>
dts: add blocked ports to EAL parameters
Make the "ports" attribute of EalParams as it actually is to "allowed_ports", and add "blocked_ports".
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Nicholas Pratte <npratte@iol.unh.edu>
show more ...
|
| 1f01c07d | 30-Oct-2024 |
Nicholas Pratte <npratte@iol.unh.edu> |
dts: add brief sleep to async sniffer callback function
Currently, the async sniffer includes a callback function which is responsible for the packets sending code. On certain devices this callback
dts: add brief sleep to async sniffer callback function
Currently, the async sniffer includes a callback function which is responsible for the packets sending code. On certain devices this callback function is being called before the asyncsniffer is ready. This commit adds a 1 second sleep to help avoid this condition.
Bugzilla ID: 1573
Signed-off-by: Nicholas Pratte <npratte@iol.unh.edu>
show more ...
|
| 8d46662d | 13-Nov-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: allow to get multiple expected packets
At the moment there is only one facility that allows to prepare a packet as it is expected to be received on the traffic generator end. Extend this to all
dts: allow to get multiple expected packets
At the moment there is only one facility that allows to prepare a packet as it is expected to be received on the traffic generator end. Extend this to allow to prepare multiple packets at the same time.
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Dean Marx <dmarx@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu> Tested-by: Patrick Robb <probb@iol.unh.edu>
show more ...
|
| a97f8cc4 | 13-Nov-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: fix adjusting L2/L3 addresses
The _adjust_addresses function has been updated to both modify the original packets and return new updated copies of them. Having a double behavior even if documen
dts: fix adjusting L2/L3 addresses
The _adjust_addresses function has been updated to both modify the original packets and return new updated copies of them. Having a double behavior even if documented is not intuitive and can lead to bugs.
This changes the behavior to solely act on copies, leaving the original packet untouched.
Fixes: 1a1825962777 ("dts: rework packet addressing")
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Dean Marx <dmarx@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu> Tested-by: Patrick Robb <probb@iol.unh.edu>
show more ...
|
| 9f8a2572 | 12-Nov-2024 |
Tomáš Ďurovec <tomas.durovec@pantheon.tech> |
dts: improve test run result statistics
The existing statistics output only stores a basic testrun summary. In this patch we are adding a header for each test run and an overall summary of test runs
dts: improve test run result statistics
The existing statistics output only stores a basic testrun summary. In this patch we are adding a header for each test run and an overall summary of test runs at the end. This is represented as textual summaries with basic information and a json result with more detailed information.
Signed-off-by: Tomáš Ďurovec <tomas.durovec@pantheon.tech> Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Dean Marx <dmarx@iol.unh.edu> Reviewed-by: Nicholas Pratte <npratte@iol.unh.edu> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Tested-by: Nicholas Pratte <npratte@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu> Tested-by: Patrick Robb <probb@iol.unh.edu>
show more ...
|
| 5ea59af4 | 20-Aug-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: use test suite specification class imports
The introduction of TestSuiteSpec adds auto-discovery of test suites, which are also automatically imported. This causes double imports as the runner
dts: use test suite specification class imports
The introduction of TestSuiteSpec adds auto-discovery of test suites, which are also automatically imported. This causes double imports as the runner loads the test suites. This changes the behaviour of the runner to load the imported classes from TestSuiteSpec instead of importing them again.
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Nicholas Pratte <npratte@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu>
show more ...
|
| 949d1488 | 07-Nov-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: fix custom enum behaviour with doc
When building docs without any dependencies, autodoc will mock all the packages missing from the system. Because DTS makes use of a special enum library calle
dts: fix custom enum behaviour with doc
When building docs without any dependencies, autodoc will mock all the packages missing from the system. Because DTS makes use of a special enum library called aenum, autodoc fails to recognise enum inheriting it as such and raises exceptions as a consequence.
This change extends the already in-place mechanism for type checking that pretends that aenums are builtin enums to the API doc building process.
Fixes: 039256daa8bf ("dts: add topology capability") Fixes: c89d00380603 ("dts: add NIC capability support")
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com>
show more ...
|
| 3fbb93cf | 28-Oct-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: improve configuration API doc
Pydantic models are not treated the same way as dataclasses by autodoc. As a consequence the docstrings need to be applied directly to each field. Otherwise the ge
dts: improve configuration API doc
Pydantic models are not treated the same way as dataclasses by autodoc. As a consequence the docstrings need to be applied directly to each field. Otherwise the generated API documentation page would present two entries per each field with each their own differences.
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Nicholas Pratte <npratte@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu>
show more ...
|
| b935bdc3 | 19-Aug-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: use Pydantic in the configuration
This change brings in pydantic in place of warlock. Pydantic offers a built-in model validation system in the classes, which allows for a more resilient and si
dts: use Pydantic in the configuration
This change brings in pydantic in place of warlock. Pydantic offers a built-in model validation system in the classes, which allows for a more resilient and simpler code. As a consequence of this change:
- most validation is now built-in - further validation is added to verify: - cross referencing of node names and ports - test suite and test cases names - dictionaries representing the config schema are removed - the config schema is no longer used and therefore dropped - the TrafficGeneratorType enum has been changed from inheriting StrEnum to the native str and Enum. This change was necessary to enable the discriminator for object unions - the structure of the classes has been slightly changed to perfectly match the structure of the configuration files - the test suite argument catches the ValidationError that TestSuiteConfig can now raise - the DPDK location has been wrapped under another configuration mapping `dpdk_location` - the DPDK locations are now structured and enforced by classes, further simplifying the validation and handling thanks to pattern matching
Bugzilla ID: 1508
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Nicholas Pratte <npratte@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu>
show more ...
|
| c72ff85d | 28-Oct-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: refactor build and node info classes
The DPDKBuildInfo and NodeInfo classes, representing information gathered in runtime, were erroneously placed in the configuration package. This moves them
dts: refactor build and node info classes
The DPDKBuildInfo and NodeInfo classes, representing information gathered in runtime, were erroneously placed in the configuration package. This moves them in more appropriate modules.
NodeInfo, specifically, is moved to os_session instead of node mostly as a consequence of circular dependencies. And given os_session is the top-most module to reference it, it appears to be the most suitable place outside of node.
Finally NodeInfo, is better renamed to OSSessionInfo as it represents the information on the target OS session.
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Nicholas Pratte <npratte@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu>
show more ...
|
| c64af3c7 | 19-Aug-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: add test suite specification and discovery
Currently there is a lack of a definition which identifies all the test suites available to test. This change intends to simplify the process to disco
dts: add test suite specification and discovery
Currently there is a lack of a definition which identifies all the test suites available to test. This change intends to simplify the process to discover all the test suites and identify them.
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Nicholas Pratte <npratte@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu>
show more ...
|
| d7181426 | 10-Oct-2024 |
Dean Marx <dmarx@iol.unh.edu> |
dts: fix verify argument in set forward mode
Condition set_forward_mode verify code on the verify argument, which was originally omitted.
Bugzilla ID: 1410 Fixes: fc0f7dc47ee3 ("dts: add testpmd sh
dts: fix verify argument in set forward mode
Condition set_forward_mode verify code on the verify argument, which was originally omitted.
Bugzilla ID: 1410 Fixes: fc0f7dc47ee3 ("dts: add testpmd shell params")
Signed-off-by: Dean Marx <dmarx@iol.unh.edu> Reviewed-by: Patrick Robb <probb@iol.unh.edu> Reviewed-by: Nicholas Pratte <npratte@iol.unh.edu>
show more ...
|
| 187a9447 | 27-Sep-2024 |
Tomáš Ďurovec <tomas.durovec@pantheon.tech> |
dts: remove git ref option
Given the whole DPDK tree directory can now be copied to the nodes, there is no more need to use the git ref option, as the tree can be controlled directly by the user.
S
dts: remove git ref option
Given the whole DPDK tree directory can now be copied to the nodes, there is no more need to use the git ref option, as the tree can be controlled directly by the user.
Signed-off-by: Tomáš Ďurovec <tomas.durovec@pantheon.tech> Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|
| f9957667 | 27-Sep-2024 |
Tomáš Ďurovec <tomas.durovec@pantheon.tech> |
dts: support externally compiled DPDK
Enable the user to use either a DPDK source tree directory or a tarball, with and without a pre-built build directory. These can be stored on either SUT node or
dts: support externally compiled DPDK
Enable the user to use either a DPDK source tree directory or a tarball, with and without a pre-built build directory. These can be stored on either SUT node or the DTS host. The DPDK build setup or the pre-built binaries can be specified through the configuration file, the command line arguments or environment variables.
Signed-off-by: Tomáš Ďurovec <tomas.durovec@pantheon.tech> Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|
| 80158fd4 | 27-Sep-2024 |
Tomáš Ďurovec <tomas.durovec@pantheon.tech> |
dts: enable copying directories to and from nodes
Currently there is no support to transfer whole directories between the DTS host and the nodes. This change adds this new feature.
Signed-off-by: T
dts: enable copying directories to and from nodes
Currently there is no support to transfer whole directories between the DTS host and the nodes. This change adds this new feature.
Signed-off-by: Tomáš Ďurovec <tomas.durovec@pantheon.tech> Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|
| 441c5fbf | 27-Sep-2024 |
Tomáš Ďurovec <tomas.durovec@pantheon.tech> |
dts: change remote and local paths objects
The OSSession (and its subclasses) should accept PurePaths for remote paths to translate from OS-unaware (PurePath) to OS-aware (Path) only on the remote s
dts: change remote and local paths objects
The OSSession (and its subclasses) should accept PurePaths for remote paths to translate from OS-unaware (PurePath) to OS-aware (Path) only on the remote side. For local paths, they should accept Paths, as Python is OS-aware locally.
Signed-off-by: Tomáš Ďurovec <tomas.durovec@pantheon.tech> Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|
| 11b2279a | 27-Sep-2024 |
Tomáš Ďurovec <tomas.durovec@pantheon.tech> |
dts: enforce one DPDK build per test run
Given a pre-built DPDK repository can be supplied to DTS, there is no need to define multiple build targets. To simplify the process this change makes each t
dts: enforce one DPDK build per test run
Given a pre-built DPDK repository can be supplied to DTS, there is no need to define multiple build targets. To simplify the process this change makes each test run use only one DPDK build whether it's pre-built or it needs to be built by DTS.
Signed-off-by: Tomáš Ďurovec <tomas.durovec@pantheon.tech> Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|
| ecaff610 | 27-Sep-2024 |
Tomáš Ďurovec <tomas.durovec@pantheon.tech> |
dts: rename build target to DPDK build
Since the DPDK may already be built, some more general name is needed that includes both the DPDK location and the build config (if we are going to build).
Si
dts: rename build target to DPDK build
Since the DPDK may already be built, some more general name is needed that includes both the DPDK location and the build config (if we are going to build).
Signed-off-by: Tomáš Ďurovec <tomas.durovec@pantheon.tech> Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|