| 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 ...
|
| 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 ...
|
| 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 ...
|
| 1a7520a1 | 08-Oct-2024 |
Dean Marx <dmarx@iol.unh.edu> |
dts: add VLAN methods to testpmd shell
Added the following methods to testpmd shell class: set vlan filter on/off, rx vlan add/rm, set vlan strip on/off, tx vlan set/reset, set promisc/verbose. Fixe
dts: add VLAN methods to testpmd shell
Added the following methods to testpmd shell class: set vlan filter on/off, rx vlan add/rm, set vlan strip on/off, tx vlan set/reset, set promisc/verbose. Fixed a bug in the VLAN regex used in testpmd shell flags.
Fixes: 61d5bc9bf974 ("dts: add port info command to testpmd shell")
Signed-off-by: Dean Marx <dmarx@iol.unh.edu>
show more ...
|
| d64f6ba5 | 23-Sep-2024 |
Juraj Linkeš <juraj.linkes@pantheon.tech> |
dts: add NIC capabilities from port info
Add the capabilities advertised by the testpmd command "show port info" so that test cases may be marked as requiring those capabilities: RUNTIME_RX_QUEUE_SE
dts: add NIC capabilities from port info
Add the capabilities advertised by the testpmd command "show port info" so that test cases may be marked as requiring those capabilities: RUNTIME_RX_QUEUE_SETUP RUNTIME_TX_QUEUE_SETUP RXQ_SHARE FLOW_RULE_KEEP FLOW_SHARED_OBJECT_KEEP
These names are copy pasted from the existing DeviceCapabilitiesFlag class. Dynamic addition of Enum members runs into problems with typing (mypy doesn't know about the members) and documentation generation (Sphinx doesn't know about the members).
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Reviewed-by: Jeremy Spewock <jspewock@iol.unh.edu> Reviewed-by: Dean Marx <dmarx@iol.unh.edu> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|
| c89d0038 | 23-Sep-2024 |
Juraj Linkeš <juraj.linkes@pantheon.tech> |
dts: add NIC capability support
Some test cases or suites may be testing a NIC feature that is not supported on all NICs, so add support for marking test cases or suites as requiring NIC capabilitie
dts: add NIC capability support
Some test cases or suites may be testing a NIC feature that is not supported on all NICs, so add support for marking test cases or suites as requiring NIC capabilities.
The marking is done with a decorator, which populates the internal required_capabilities attribute of TestProtocol. The NIC capability itself is a wrapper around the NicCapability defined in testpmd_shell. The reason is Enums cannot be extended and the class implements the methods of its abstract base superclass.
The decorator API is designed to be simple to use. The arguments passed to it are all from the testpmd shell. Everything else (even the actual capability object creation) is done internally.
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Reviewed-by: Dean Marx <dmarx@iol.unh.edu> Reviewed-by: Jeremy Spewock <jspewock@iol.unh.edu> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|
| a91d5f47 | 26-Sep-2024 |
Jeremy Spewock <jspewock@iol.unh.edu> |
dts: add text parser for testpmd verbose output
Multiple test suites from the old DTS framework rely on being able to consume and interpret the verbose output of testpmd. The new framework doesn't h
dts: add text parser for testpmd verbose output
Multiple test suites from the old DTS framework rely on being able to consume and interpret the verbose output of testpmd. The new framework doesn't have an elegant way for handling the verbose output, but test suites are starting to be written that rely on it. This patch creates a TextParser class that can be used to extract the verbose information from any testpmd output and also adjusts the `stop` method of the shell to return all output that it collected.
Signed-off-by: Jeremy Spewock <jspewock@iol.unh.edu> Reviewed-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|
| 42274463 | 06-Aug-2024 |
Juraj Linkeš <juraj.linkes@pantheon.tech> |
dts: replace the or operator in third party types
When the DTS dependencies are not installed when building DTS API documentation, the or operator produces errors when used with types from those lib
dts: replace the or operator in third party types
When the DTS dependencies are not installed when building DTS API documentation, the or operator produces errors when used with types from those libraries: autodoc: failed to import module 'remote_session' from module 'framework'; the following exception was raised: Traceback (most recent call last): ... TypeError: unsupported operand type(s) for |: 'Transport' and 'NoneType'
The third part type here is Transport from the paramiko library.
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Reviewed-by: Jeremy Spewock <jspewock@iol.unh.edu> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|
| 9910db35 | 06-Sep-2024 |
Jeremy Spewock <jspewock@iol.unh.edu> |
dts: add MTU config methods to testpmd shell
There are methods within DTS currently that support updating the MTU of ports on a node, but the methods for doing this in a linux session rely on the ip
dts: add MTU config methods to testpmd shell
There are methods within DTS currently that support updating the MTU of ports on a node, but the methods for doing this in a linux session rely on the ip command and the port being bound to the kernel driver. Since test suites are run while bound to the driver for DPDK, there needs to be a way to modify the value while bound to said driver as well. This is done by using testpmd to modify the MTU.
Signed-off-by: Jeremy Spewock <jspewock@iol.unh.edu> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
show more ...
|
| 85d15c7c | 23-Aug-2024 |
Juraj Linkeš <juraj.linkes@pantheon.tech> |
dts: add testpmd port information caching
When using port information multiple times in a testpmd shell instance lifespan, it's desirable to not get the information each time, so caching is added. I
dts: add testpmd port information caching
When using port information multiple times in a testpmd shell instance lifespan, it's desirable to not get the information each time, so caching is added. In case the information changes, there's a way to force the update with either TestPmdShell.show_port_info() or TestPmdShell.show_port_info_all().
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Jeremy Spewock <jspewock@iol.unh.edu>
show more ...
|
| 618d9140 | 23-Aug-2024 |
Juraj Linkeš <juraj.linkes@pantheon.tech> |
dts: fix testpmd port device error handling mode
Make device_error_handling_mode of testpmd port optional as it may not be present, e.g. in VM ports.
Fixes: 61d5bc9bf974 ("dts: add port info comman
dts: fix testpmd port device error handling mode
Make device_error_handling_mode of testpmd port optional as it may not be present, e.g. in VM ports.
Fixes: 61d5bc9bf974 ("dts: add port info command to testpmd shell")
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Jeremy Spewock <jspewock@iol.unh.edu>
show more ...
|
| 07816ead | 09-Sep-2024 |
Luca Vizzarro <luca.vizzarro@arm.com> |
dts: add testpmd set ports queues
Add a facility to update the number of TX/RX queues during the runtime of testpmd.
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepane
dts: add testpmd set ports queues
Add a facility to update the number of TX/RX queues during the runtime of testpmd.
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Paul Szczepanek <paul.szczepanek@arm.com> Reviewed-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Reviewed-by: Jeremy Spewock <jspewock@iol.unh.edu>
show more ...
|
| 65a1b4e8 | 24-Jul-2024 |
Jeremy Spewock <jspewock@iol.unh.edu> |
dts: improve logging for interactive shells
The messages being logged by interactive shells currently are using the same logger as the node they were created from. Because of this, when sending inte
dts: improve logging for interactive shells
The messages being logged by interactive shells currently are using the same logger as the node they were created from. Because of this, when sending interactive commands, the logs make no distinction between when you are sending a command directly to the host and when you are using an interactive shell on the host. This change adds names to interactive shells so that they are able to use their own loggers with distinct names.
Signed-off-by: Jeremy Spewock <jspewock@iol.unh.edu> Reviewed-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Tested-by: Nicholas Pratte <npratte@iol.unh.edu> Reviewed-by: Nicholas Pratte <npratte@iol.unh.edu> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com>
show more ...
|
| 92439dc9 | 11-Jul-2024 |
Jeremy Spewock <jspewock@iol.unh.edu> |
dts: improve starting and stopping interactive shells
The InteractiveShell class currently relies on being cleaned up and shutdown at the time of garbage collection, but this cleanup of the class do
dts: improve starting and stopping interactive shells
The InteractiveShell class currently relies on being cleaned up and shutdown at the time of garbage collection, but this cleanup of the class does no verification that the session is still running prior to cleanup. So, if a user were to call this method themselves prior to garbage collection, it would be called twice and throw an exception when the desired behavior is to do nothing since the session is already cleaned up. This is solved by using a weakref and a finalize class which achieves the same result of calling the method at garbage collection, but also ensures that it is called exactly once.
Additionally, this fixes issues regarding starting a primary DPDK application while another is still cleaning up via a retry when starting interactive shells. It also adds catch for attempting to send a command to an interactive shell that is not running to create a more descriptive error message.
Signed-off-by: Jeremy Spewock <jspewock@iol.unh.edu> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com> Reviewed-by: Patrick Robb <probb@iol.unh.edu> Reviewed-by: Juraj Linkeš <juraj.linkes@pantheon.tech> Tested-by: Dean Marx <dmarx@iol.unh.edu>
show more ...
|