[PATCH v4 0/7] dts: Port scatter suite over

2023-12-14 Thread jspewock
From: Jeremy Spewock Addresses comments on the previous version. Main things which were added include specific methods within the testpmd shell to avoid the need of calling send_command directly, as well as docstring comment updates. Jeremy Spewock (7): dts: add required methods to testpmd_she

[PATCH v4 1/7] dts: add required methods to testpmd_shell

2023-12-14 Thread jspewock
From: Jeremy Spewock Added a method within the testpmd interactive shell that polls the status of ports and verifies that the link status on a given port is "up." Polling will continue until either the link comes up, or the timeout is reached. Also added methods for starting and stopping packet f

[PATCH v4 2/7] dts: allow passing parameters into interactive apps

2023-12-14 Thread jspewock
From: Jeremy Spewock Modified interactive applications to allow for the ability to pass parameters into the app on start up. Also modified the way EAL parameters are handled so that the trailing "--" separator is added be default after all EAL parameters. Signed-off-by: Jeremy Spewock --- .../

[PATCH v4 3/7] dts: add optional packet filtering to scapy sniffer

2023-12-14 Thread jspewock
From: Jeremy Spewock Added the options to filter out LLDP and ARP packets when sniffing for packets with scapy. This was done using BPF filters to ensure that the noise these packets provide does not interfere with test cases. Signed-off-by: Jeremy Spewock --- dts/framework/test_suite.py

[PATCH v4 4/7] dts: add pci addresses to EAL parameters

2023-12-14 Thread jspewock
From: Jeremy Spewock Added allow list to the EAL parameters created in DTS to ensure that only the relevant PCI devices are considered when launching DPDK applications. Signed-off-by: Jeremy Spewock --- dts/framework/testbed_model/sut_node.py | 11 +++ 1 file changed, 11 insertions(+)

[PATCH v4 5/7] dts: allow configuring MTU of ports

2023-12-14 Thread jspewock
From: Jeremy Spewock Adds methods in both os_session and linux session to allow for setting MTU of port interfaces in an OS agnostic way. Signed-off-by: Jeremy Spewock --- dts/framework/remote_session/linux_session.py | 8 dts/framework/remote_session/os_session.py| 9 + 2

[PATCH v4 6/7] dts: add scatter to the yaml schema

2023-12-14 Thread jspewock
From: Jeremy Spewock Allow for scatter to be specified in the configuration file. Signed-off-by: Jeremy Spewock --- dts/framework/config/conf_yaml_schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dts/framework/config/conf_yaml_schema.json b/dts/framework/confi

[PATCH v4 7/7] dts: add scatter test suite

2023-12-14 Thread jspewock
From: Jeremy Spewock This test suite provides testing the support of scattered packets by Poll Mode Drivers using testpmd. It incorporates 5 different test cases which test the sending and receiving of packets with lengths that are less than the mbuf data buffer size, the same as the mbuf data bu

[PATCH v4 0/7] dts: Port scatter suite over

2023-12-18 Thread jspewock
From: Jeremy Spewock v4: Addresses comments on the previous version. Main things which were added include specific methods within the testpmd shell to avoid the need of calling send_command directly, as well as docstring comment updates. This series had to get resubmitted so that it would show

[PATCH v4 2/7] dts: allow passing parameters into interactive apps

2023-12-18 Thread jspewock
From: Jeremy Spewock Modified interactive applications to allow for the ability to pass parameters into the app on start up. Also modified the way EAL parameters are handled so that the trailing "--" separator is added be default after all EAL parameters. Signed-off-by: Jeremy Spewock --- .../

[PATCH v4 1/7] dts: add required methods to testpmd_shell

2023-12-18 Thread jspewock
From: Jeremy Spewock Added a method within the testpmd interactive shell that polls the status of ports and verifies that the link status on a given port is "up." Polling will continue until either the link comes up, or the timeout is reached. Also added methods for starting and stopping packet f

[PATCH v4 3/7] dts: add optional packet filtering to scapy sniffer

2023-12-18 Thread jspewock
From: Jeremy Spewock Added the options to filter out LLDP and ARP packets when sniffing for packets with scapy. This was done using BPF filters to ensure that the noise these packets provide does not interfere with test cases. Signed-off-by: Jeremy Spewock --- dts/framework/test_suite.py

[PATCH v4 4/7] dts: add pci addresses to EAL parameters

2023-12-18 Thread jspewock
From: Jeremy Spewock Added allow list to the EAL parameters created in DTS to ensure that only the relevant PCI devices are considered when launching DPDK applications. Signed-off-by: Jeremy Spewock --- dts/framework/testbed_model/sut_node.py | 11 +++ 1 file changed, 11 insertions(+)

[PATCH v4 6/7] dts: add scatter to the yaml schema

2023-12-18 Thread jspewock
From: Jeremy Spewock Allow for scatter to be specified in the configuration file. Signed-off-by: Jeremy Spewock --- dts/framework/config/conf_yaml_schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dts/framework/config/conf_yaml_schema.json b/dts/framework/confi

[PATCH v4 5/7] dts: allow configuring MTU of ports

2023-12-18 Thread jspewock
From: Jeremy Spewock Adds methods in both os_session and linux session to allow for setting MTU of port interfaces in an OS agnostic way. Signed-off-by: Jeremy Spewock --- dts/framework/remote_session/linux_session.py | 8 dts/framework/remote_session/os_session.py| 9 + 2

[PATCH v4 7/7] dts: add scatter test suite

2023-12-18 Thread jspewock
From: Jeremy Spewock This test suite provides testing the support of scattered packets by Poll Mode Drivers using testpmd. It incorporates 5 different test cases which test the sending and receiving of packets with lengths that are less than the mbuf data buffer size, the same as the mbuf data bu

[PATCH v4 0/7] dts: Port scatter suite over

2023-12-18 Thread jspewock
From: Jeremy Spewock v4: Addresses comments on the previous version. Main things which were added include specific methods within the testpmd shell to avoid the need of calling send_command directly, as well as docstring comment updates. This series had to get resubmitted so that it would show

[PATCH v4 1/7] dts: add required methods to testpmd_shell

2023-12-18 Thread jspewock
From: Jeremy Spewock Added a method within the testpmd interactive shell that polls the status of ports and verifies that the link status on a given port is "up." Polling will continue until either the link comes up, or the timeout is reached. Also added methods for starting and stopping packet f

[PATCH v4 2/7] dts: allow passing parameters into interactive apps

2023-12-18 Thread jspewock
From: Jeremy Spewock Modified interactive applications to allow for the ability to pass parameters into the app on start up. Also modified the way EAL parameters are handled so that the trailing "--" separator is added be default after all EAL parameters. Signed-off-by: Jeremy Spewock --- .../

[PATCH v4 3/7] dts: add optional packet filtering to scapy sniffer

2023-12-18 Thread jspewock
From: Jeremy Spewock Added the options to filter out LLDP and ARP packets when sniffing for packets with scapy. This was done using BPF filters to ensure that the noise these packets provide does not interfere with test cases. Signed-off-by: Jeremy Spewock --- dts/framework/test_suite.py

[PATCH v4 4/7] dts: add pci addresses to EAL parameters

2023-12-18 Thread jspewock
From: Jeremy Spewock Added allow list to the EAL parameters created in DTS to ensure that only the relevant PCI devices are considered when launching DPDK applications. Signed-off-by: Jeremy Spewock --- dts/framework/testbed_model/sut_node.py | 11 +++ 1 file changed, 11 insertions(+)

[PATCH v4 5/7] dts: allow configuring MTU of ports

2023-12-18 Thread jspewock
From: Jeremy Spewock Adds methods in both os_session and linux session to allow for setting MTU of port interfaces in an OS agnostic way. Signed-off-by: Jeremy Spewock --- dts/framework/remote_session/linux_session.py | 8 dts/framework/remote_session/os_session.py| 9 + 2

[PATCH v4 6/7] dts: add scatter to the yaml schema

2023-12-18 Thread jspewock
From: Jeremy Spewock Allow for scatter to be specified in the configuration file. Signed-off-by: Jeremy Spewock --- dts/framework/config/conf_yaml_schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dts/framework/config/conf_yaml_schema.json b/dts/framework/confi

[PATCH v4 7/7] dts: add scatter test suite

2023-12-18 Thread jspewock
From: Jeremy Spewock This test suite provides testing the support of scattered packets by Poll Mode Drivers using testpmd. It incorporates 5 different test cases which test the sending and receiving of packets with lengths that are less than the mbuf data buffer size, the same as the mbuf data bu

[PATCH v5 0/7] dts: Port scatter suite over

2024-01-03 Thread jspewock
From: Jeremy Spewock v5: Addressed comments and made changes to files where appropriate. Notably, added things such as verification to testpmd methods and a flag which hides messages about "link state change events" in testpmd as such messages changed the expected format of the terminal and caus

[PATCH v5 1/7] dts: add startup verification and forwarding modes to testpmd shell

2024-01-03 Thread jspewock
From: Jeremy Spewock Added commonly used methods in testpmd such as starting and stopping packet forwarding, changing foward modes, and verifying link status of ports so that developers can configure testpmd and start forwaring through the provided class rather than sending commands to the testpm

[PATCH v5 2/7] dts: limit EAL parameters to DPDK apps and add parameters to all apps

2024-01-03 Thread jspewock
From: Jeremy Spewock Changed the factory method for creating interactive apps in the SUT Node so that EAL parameters would only be passed into DPDK apps since non-DPDK apps wouldn't be able to process them. Also modified interactive apps to allow for the ability to pass parameters into the app on

[PATCH v5 3/7] dts: add optional packet filtering to scapy sniffer

2024-01-03 Thread jspewock
From: Jeremy Spewock Added the options to filter out LLDP and ARP packets when sniffing for packets with scapy. This was done using BPF filters to ensure that the noise these packets provide does not interfere with test cases. Signed-off-by: Jeremy Spewock --- dts/framework/test_suite.py

[PATCH v5 5/7] dts: allow configuring MTU of ports

2024-01-03 Thread jspewock
From: Jeremy Spewock Adds methods in both os_session and linux session to allow for setting MTU of port interfaces so that suites that require the sending and receiving of packets of a specific size, or the rejection of packets over a certain size, can configure this maximum as needed. Signed-of

[PATCH v5 4/7] dts: add pci addresses to EAL parameters

2024-01-03 Thread jspewock
From: Jeremy Spewock Added allow list to the EAL parameters created in DTS to ensure that only the relevant PCI devices are considered when launching DPDK applications. Signed-off-by: Jeremy Spewock --- dts/framework/testbed_model/sut_node.py | 12 1 file changed, 12 insertions(+)

[PATCH v5 6/7] dts: add scatter to the yaml schema

2024-01-03 Thread jspewock
From: Jeremy Spewock Allow for scatter to be specified in the configuration file. Signed-off-by: Jeremy Spewock --- dts/framework/config/conf_yaml_schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dts/framework/config/conf_yaml_schema.json b/dts/framework/confi

[PATCH v5 7/7] dts: add pmd_buffer_scatter test suite

2024-01-03 Thread jspewock
From: Jeremy Spewock This test suite provides testing of the support of scattered packets by Poll Mode Drivers using testpmd, verifying the ability to receive and transmit scattered multi-segment packets made up of multiple non-contiguous memory buffers. This is tested through 5 different cases i

[PATCH v6 0/7] dts: Port scatter suite over

2024-01-03 Thread jspewock
From: Jeremy Spewock v6: Fixed spelling mistake that caused checkpatch failure. Jeremy Spewock (7): dts: add startup verification and forwarding modes to testpmd shell dts: limit EAL parameters to DPDK apps and add parameters to all apps dts: add optional packet filtering to scapy sniffer

[PATCH v6 1/7] dts: add startup verification and forwarding modes to testpmd shell

2024-01-03 Thread jspewock
From: Jeremy Spewock Added commonly used methods in testpmd such as starting and stopping packet forwarding, changing forward modes, and verifying link status of ports so that developers can configure testpmd and start forwarding through the provided class rather than sending commands to the test

[PATCH v6 2/7] dts: limit EAL parameters to DPDK apps and add parameters to all apps

2024-01-03 Thread jspewock
From: Jeremy Spewock Changed the factory method for creating interactive apps in the SUT Node so that EAL parameters would only be passed into DPDK apps since non-DPDK apps wouldn't be able to process them. Also modified interactive apps to allow for the ability to pass parameters into the app on

[PATCH v6 3/7] dts: add optional packet filtering to scapy sniffer

2024-01-03 Thread jspewock
From: Jeremy Spewock Added the options to filter out LLDP and ARP packets when sniffing for packets with scapy. This was done using BPF filters to ensure that the noise these packets provide does not interfere with test cases. Signed-off-by: Jeremy Spewock --- dts/framework/test_suite.py

[PATCH v6 5/7] dts: allow configuring MTU of ports

2024-01-03 Thread jspewock
From: Jeremy Spewock Adds methods in both os_session and linux session to allow for setting MTU of port interfaces so that suites that require the sending and receiving of packets of a specific size, or the rejection of packets over a certain size, can configure this maximum as needed. Signed-of

[PATCH v6 4/7] dts: add pci addresses to EAL parameters

2024-01-03 Thread jspewock
From: Jeremy Spewock Added allow list to the EAL parameters created in DTS to ensure that only the relevant PCI devices are considered when launching DPDK applications. Signed-off-by: Jeremy Spewock --- dts/framework/testbed_model/sut_node.py | 12 1 file changed, 12 insertions(+)

[PATCH v6 7/7] dts: add pmd_buffer_scatter test suite

2024-01-03 Thread jspewock
From: Jeremy Spewock This test suite provides testing of the support of scattered packets by Poll Mode Drivers using testpmd, verifying the ability to receive and transmit scattered multi-segment packets made up of multiple non-contiguous memory buffers. This is tested through 5 different cases i

[PATCH v6 6/7] dts: add scatter to the yaml schema

2024-01-03 Thread jspewock
From: Jeremy Spewock Allow for scatter to be specified in the configuration file. Signed-off-by: Jeremy Spewock --- dts/framework/config/conf_yaml_schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dts/framework/config/conf_yaml_schema.json b/dts/framework/confi

[PATCH v7 0/7] dts: Port scatter suite over

2024-01-09 Thread jspewock
From: Jeremy Spewock v7: Addressed comments and made appropriate changes. Most changes had to do with grammatical/spelling errors and expanding upon documentation. Also fixed the typing of eal parameters when creating interactive shells through the SUT node. Jeremy Spewock (7): dts: add start

[PATCH v7 1/7] dts: add startup verification and forwarding modes to testpmd shell

2024-01-09 Thread jspewock
From: Jeremy Spewock Added commonly used methods in testpmd such as starting and stopping packet forwarding, changing forward modes, and verifying link status of ports so that developers can configure testpmd and start forwarding through the provided class rather than sending commands to the test

[PATCH v7 2/7] dts: limit EAL parameters to DPDK apps and add parameters to all apps

2024-01-09 Thread jspewock
From: Jeremy Spewock Changed the factory method for creating interactive apps in the SUT Node so that EAL parameters would only be passed into DPDK apps since non-DPDK apps wouldn't be able to process them. Also modified interactive apps to allow for the ability to pass parameters into the app on

[PATCH v7 3/7] dts: add optional packet filtering to scapy sniffer

2024-01-09 Thread jspewock
From: Jeremy Spewock Added the options to filter out LLDP and ARP packets when sniffing for packets with scapy. This was done using BPF filters to ensure that the noise these packets provide does not interfere with test cases. Signed-off-by: Jeremy Spewock --- dts/framework/test_suite.py

[PATCH v7 4/7] dts: add pci addresses to EAL parameters

2024-01-09 Thread jspewock
From: Jeremy Spewock Added allow list to the EAL parameters created in DTS to ensure that only the relevant PCI devices are considered when launching DPDK applications. Signed-off-by: Jeremy Spewock --- dts/framework/testbed_model/sut_node.py | 12 1 file changed, 12 insertions(+)

[PATCH v7 6/7] dts: add scatter to the yaml schema

2024-01-09 Thread jspewock
From: Jeremy Spewock Allow for scatter to be specified in the configuration file. Signed-off-by: Jeremy Spewock --- dts/framework/config/conf_yaml_schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dts/framework/config/conf_yaml_schema.json b/dts/framework/confi

[PATCH v7 5/7] dts: allow configuring MTU of ports

2024-01-09 Thread jspewock
From: Jeremy Spewock Adds methods in both os_session and linux session to allow for setting MTU of port interfaces so that suites that require the sending and receiving of packets of a specific size, or the rejection of packets over a certain size, can configure this maximum as needed. Signed-of

[PATCH v7 7/7] dts: add pmd_buffer_scatter test suite

2024-01-09 Thread jspewock
From: Jeremy Spewock This test suite provides testing of the support of scattered packets by Poll Mode Drivers using testpmd, verifying the ability to receive and transmit scattered multi-segment packets made up of multiple non-contiguous memory buffers. This is tested through 5 different cases i

[PATCH v8 0/7] dts: Port scatter suite over

2024-01-10 Thread jspewock
From: Jeremy Spewock v8: Address comments by making minor docstring adjustments. Jeremy Spewock (7): dts: add startup verification and forwarding modes to testpmd shell dts: limit EAL parameters to DPDK apps and add parameters to all apps dts: add optional packet filtering to scapy sniffe

[PATCH v8 1/7] dts: add startup verification and forwarding modes to testpmd shell

2024-01-10 Thread jspewock
From: Jeremy Spewock Added commonly used methods in testpmd such as starting and stopping packet forwarding, changing forward modes, and verifying link status of ports so that developers can configure testpmd and start forwarding through the provided class rather than sending commands to the test

[PATCH v8 2/7] dts: limit EAL parameters to DPDK apps and add parameters to all apps

2024-01-10 Thread jspewock
From: Jeremy Spewock Changed the factory method for creating interactive apps in the SUT Node so that EAL parameters would only be passed into DPDK apps since non-DPDK apps wouldn't be able to process them. Also modified interactive apps to allow for the ability to pass parameters into the app on

[PATCH v8 3/7] dts: add optional packet filtering to scapy sniffer

2024-01-10 Thread jspewock
From: Jeremy Spewock Added the options to filter out LLDP and ARP packets when sniffing for packets with scapy. This was done using BPF filters to ensure that the noise these packets provide does not interfere with test cases. Signed-off-by: Jeremy Spewock --- dts/framework/test_suite.py

[PATCH v8 5/7] dts: allow configuring MTU of ports

2024-01-10 Thread jspewock
From: Jeremy Spewock Adds methods in both os_session and linux session to allow for setting MTU of port interfaces so that suites that require the sending and receiving of packets of a specific size, or the rejection of packets over a certain size, can configure this maximum as needed. Signed-of

[PATCH v8 4/7] dts: add pci addresses to EAL parameters

2024-01-10 Thread jspewock
From: Jeremy Spewock Added allow list to the EAL parameters created in DTS to ensure that only the relevant PCI devices are considered when launching DPDK applications. Signed-off-by: Jeremy Spewock --- dts/framework/testbed_model/sut_node.py | 12 1 file changed, 12 insertions(+)

[PATCH v8 6/7] dts: add scatter to the yaml schema

2024-01-10 Thread jspewock
From: Jeremy Spewock Allow for scatter to be specified in the configuration file. Signed-off-by: Jeremy Spewock --- dts/framework/config/conf_yaml_schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dts/framework/config/conf_yaml_schema.json b/dts/framework/confi

[PATCH v8 7/7] dts: add pmd_buffer_scatter test suite

2024-01-10 Thread jspewock
From: Jeremy Spewock This test suite provides testing of the support of scattered packets by Poll Mode Drivers using testpmd, verifying the ability to receive and transmit scattered multi-segment packets made up of multiple non-contiguous memory buffers. This is tested through 5 different cases i

[PATCH v2] dts: add Dockerfile

2024-01-11 Thread jspewock
From: Juraj Linkeš The Dockerfile defines development and CI runner images. Signed-off-by: Juraj Linkeš Signed-off-by: Jeremy Spewock --- v2: This verson updates the dockerfile to instead install poetry using pipx due to the version of poetry installed using the package repositories of the di

[PATCH v3] dts: add Dockerfile

2024-01-11 Thread jspewock
From: Juraj Linkeš The Dockerfile defines development and CI runner images. Signed-off-by: Juraj Linkeš Signed-off-by: Jeremy Spewock --- v3: Remove pexpect. v2: This verson updates the dockerfile to instead install poetry using pipx due to the version of poetry installed using the package

[PATCH v4] dts: add Dockerfile

2024-01-16 Thread jspewock
From: Juraj Linkeš The Dockerfile defines development and CI runner images. Signed-off-by: Juraj Linkeš Signed-off-by: Jeremy Spewock --- v4: Remove an example from and updated a comment in the devcontainer.json and added the --no-root flag to the README to comply with the warning message and

[PATCH v2 0/3] Improve interactive shell output gathering and logging

2024-05-01 Thread jspewock
From: Jeremy Spewock This version addresses comments from the last and adds an additional improvement to the logging output that comes from interactive shells. The new way of handling logging allows for not only specification of the host that the command is being sent to like before, but also the

[PATCH v2 1/3] dts: Improve output gathering in interactive shells

2024-05-01 Thread jspewock
From: Jeremy Spewock The current implementation of consuming output from interactive shells relies on being able to find an expected prompt somewhere within the output buffer after sending the command. This is useful in situations where the prompt does not appear in the output itself, but in some

[PATCH v2 2/3] dts: Add missing docstring from XML-RPC server

2024-05-01 Thread jspewock
From: Jeremy Spewock When this XML-RPC server implementation was added, the docstring had to be shortened in order to reduce the chances of this race condition being encountered. Now that this race condition issue is resolved, the full docstring can be restored. Signed-off-by: Jeremy Spewock --

[PATCH v2 3/3] dts: Improve logging for interactive shells

2024-05-01 Thread jspewock
From: Jeremy Spewock 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 ar

[PATCH v1 0/4] Add second scatter test case

2024-05-14 Thread jspewock
From: Jeremy Spewock The current test suite for testing the scatter gather capabilities of a NIC currently does not support Mellanox NICs since these NICs require that you first enable the scattered_rx offload when you start testpmd, but some other PMDs do not. This patch series adds an expansion

[PATCH v1 1/4] dts: improve starting and stopping interactive shells

2024-05-14 Thread jspewock
From: Jeremy Spewock 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 ga

[PATCH v1 2/4] dts: add context manager for interactive shells

2024-05-14 Thread jspewock
From: Jeremy Spewock Interactive shells are managed in a way currently where they are closed and cleaned up at the time of garbage collection. Due to there being no guarantee of when this garbage collection happens in Python, there is no way to consistently know when an application will be closed

[PATCH v1 3/4] dts: add methods for modifying MTU to testpmd shell

2024-05-14 Thread jspewock
From: Jeremy Spewock 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

[PATCH v1 4/4] dts: add test case that utilizes offload to pmd_buffer_scatter

2024-05-14 Thread jspewock
From: Jeremy Spewock Some NICs tested in DPDK allow for the scattering of packets without an offload and others enforce that you enable the scattered_rx offload in testpmd. The current version of the suite for testing support of scattering packets only tests the case where the NIC supports testin

[PATCH v3 0/3] Improve interactive shell output gathering and logging

2024-05-29 Thread jspewock
From: Jeremy Spewock This version addresses the small comments that were on the previous version such as documentation of variable name changes. Jeremy Spewock (3): dts: Improve output gathering in interactive shells dts: Add missing docstring from XML-RPC server dts: Improve logging for i

[PATCH v3 1/3] dts: Improve output gathering in interactive shells

2024-05-29 Thread jspewock
From: Jeremy Spewock The current implementation of consuming output from interactive shells relies on being able to find an expected prompt somewhere within the output buffer after sending the command. This is useful in situations where the prompt does not appear in the output itself, but in some

[PATCH v3 2/3] dts: Add missing docstring from XML-RPC server

2024-05-29 Thread jspewock
From: Jeremy Spewock When this XML-RPC server implementation was added, the docstring had to be shortened in order to reduce the chances of this race condition being encountered. Now that this race condition issue is resolved, the full docstring can be restored. Signed-off-by: Jeremy Spewock --

[PATCH v3 3/3] dts: Improve logging for interactive shells

2024-05-29 Thread jspewock
From: Jeremy Spewock 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 ar

[PATCH v2 0/4] Add second scatter test case

2024-05-30 Thread jspewock
From: Jeremy Spewock This version addresses comments from the last which featured new improvements such as the usage of the Self typehint in the critical interactive shell, modifying the MTU of all ports within the scope of testpmd rather than making a guess as to which should be changed, and som

[PATCH v2 1/4] dts: improve starting and stopping interactive shells

2024-05-30 Thread jspewock
From: Jeremy Spewock 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 ga

[PATCH v2 3/4] dts: add methods for modifying MTU to testpmd shell

2024-05-30 Thread jspewock
From: Jeremy Spewock 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

[PATCH v2 4/4] dts: add test case that utilizes offload to pmd_buffer_scatter

2024-05-30 Thread jspewock
From: Jeremy Spewock Some NICs tested in DPDK allow for the scattering of packets without an offload and others enforce that you enable the scattered_rx offload in testpmd. The current version of the suite for testing support of scattering packets only tests the case where the NIC supports testin

[PATCH v2 2/4] dts: add context manager for interactive shells

2024-05-30 Thread jspewock
From: Jeremy Spewock Interactive shells are managed in a way currently where they are closed and cleaned up at the time of garbage collection. Due to there being no guarantee of when this garbage collection happens in Python, there is no way to consistently know when an application will be closed

[RFC PATCH v1 0/2] dts: replace XML-RPC server

2024-06-05 Thread jspewock
From: Jeremy Spewock This series implements a new way to handle scapy interactions by using an interactive shell for managing the session instead of an XML-RPC server. One thing to note about these changes while reviewing is that I made the choice to use a Python interactive terminal and import

[RFC PATCH v1 1/2] dts: Add interactive shell for managing Scapy

2024-06-05 Thread jspewock
From: Jeremy Spewock This shell can be used to remotely run Scapy commands interactively and provides methods for handling the sending and capturing of packets. depends-on: series-32014 ("Improve interactive shell output gathering and logging") Signed-off-by: Jeremy Spewock --- dts/framework/

[RFC PATCH v1 2/2] dts: Remove XML-RPC server for Scapy TG and instead us ScapyShell

2024-06-05 Thread jspewock
From: Jeremy Spewock Previously all scapy commands were handled using an XML-RPC server that ran on the TGNode. This unnecessarily enforces a minimum Python version of 3.10 on the server that is being used as a traffic generator and complicates the implementation of scapy methods. This patch remo

[PATCH v3 0/4] Add second scatter test case

2024-06-05 Thread jspewock
From: Jeremy Spewock v3: * increasse timeout before retrying starting interactive shells * added the ability to send logging messages from sending commands to interactive shells at the debug level rather than always being at the info level * changed the verification step for the scatter

[PATCH v3 1/4] dts: improve starting and stopping interactive shells

2024-06-05 Thread jspewock
From: Jeremy Spewock 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 ga

[PATCH v3 2/4] dts: add context manager for interactive shells

2024-06-05 Thread jspewock
From: Jeremy Spewock Interactive shells are managed in a way currently where they are closed and cleaned up at the time of garbage collection. Due to there being no guarantee of when this garbage collection happens in Python, there is no way to consistently know when an application will be closed

[PATCH v3 3/4] dts: add methods for modifying MTU to testpmd shell

2024-06-05 Thread jspewock
From: Jeremy Spewock 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

[PATCH v3 4/4] dts: add test case that utilizes offload to pmd_buffer_scatter

2024-06-05 Thread jspewock
From: Jeremy Spewock Some NICs tested in DPDK allow for the scattering of packets without an offload and others enforce that you enable the scattered_rx offload in testpmd. The current version of the suite for testing support of scattering packets only tests the case where the NIC supports testin

[PATCH v4 0/4] Add second scatter test case

2024-06-13 Thread jspewock
From: Jeremy Spewock v4: * comment and formatting adjustments based on feedback on previous version * switch class inheritance order for interactive shells and singe active interactive shells * method decorator for starting and stopping ports in testpmd shell that gets used for the up

[PATCH v4 4/4] dts: add test case that utilizes offload to pmd_buffer_scatter

2024-06-13 Thread jspewock
From: Jeremy Spewock Some NICs tested in DPDK allow for the scattering of packets without an offload and others enforce that you enable the scattered_rx offload in testpmd. The current version of the suite for testing support of scattering packets only tests the case where the NIC supports testin

[PATCH v4 1/4] dts: add context manager for interactive shells

2024-06-13 Thread jspewock
From: Jeremy Spewock Interactive shells are managed in a way currently where they are closed and cleaned up at the time of garbage collection. Due to there being no guarantee of when this garbage collection happens in Python, there is no way to consistently know when an application will be closed

[PATCH v4 3/4] dts: add methods for modifying MTU to testpmd shell

2024-06-13 Thread jspewock
From: Jeremy Spewock 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

[PATCH v4 2/4] dts: improve starting and stopping interactive shells

2024-06-13 Thread jspewock
From: Jeremy Spewock 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 ga

[PATCH v4 0/3] Improve interactive shell output gathering and logging

2024-06-20 Thread jspewock
From: Jeremy Spewock v4: * rebase on top of rc1. * address comments and fix typos in the added docstring example. Jeremy Spewock (3): dts: Improve output gathering in interactive shells dts: Add missing docstring from XML-RPC server dts: Improve logging for interactive shells dts/fra

[PATCH v4 1/3] dts: Improve output gathering in interactive shells

2024-06-20 Thread jspewock
From: Jeremy Spewock The current implementation of consuming output from interactive shells relies on being able to find an expected prompt somewhere within the output buffer after sending the command. This is useful in situations where the prompt does not appear in the output itself, but in some

[PATCH v4 2/3] dts: Add missing docstring from XML-RPC server

2024-06-20 Thread jspewock
From: Jeremy Spewock When this XML-RPC server implementation was added, the docstring had to be shortened in order to reduce the chances of this race condition being encountered. Now that this race condition issue is resolved, the full docstring can be restored. Signed-off-by: Jeremy Spewock --

[PATCH v4 3/3] dts: Improve logging for interactive shells

2024-06-20 Thread jspewock
From: Jeremy Spewock 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 ar

[PATCH v1 0/1] dts: replace XML-RPC server

2024-06-20 Thread jspewock
From: Jeremy Spewock v1: * Documentation fixes based on comments * Use multiple inheritance to merge the two commits together, allowing the scapy traffic generator to handle the implementation of all of the scapy related logic. Jeremy Spewock (1): dts: Remove XML-RPC server for Scapy T

[PATCH v1 1/1] dts: Remove XML-RPC server for Scapy TG and instead use PythonShell

2024-06-20 Thread jspewock
From: Jeremy Spewock Previously all scapy commands were handled using an XML-RPC server that ran on the TGNode. This unnecessarily enforces a minimum Python version of 3.10 on the server that is being used as a traffic generator and complicates the implementation of scapy methods. This patch remo

[PATCH v1 0/4] dts: add dynamic queue configuration test suite

2024-06-25 Thread jspewock
From: Jeremy Spewock This patch ports over a test suite from old DTS that tests the implementation of runtime port queue configuration of PMDs. It also includes necessary framework changes to allow this to happen such as: * Sending multiple packets and not capturing the result * Only adjusting a

[PATCH v1 1/4] dts: add send_packets to test suites and rework packet addressing

2024-06-25 Thread jspewock
From: Jeremy Spewock Currently the only method provided in the test suite class for sending packets sends a single packet and then captures the results. There is, in some cases, a need to send multiple packets at once while not really needing to capture any traffic received back. The method to do

[PATCH v1 2/4] dts: add port queue modification and forwarding stats to testpmd

2024-06-25 Thread jspewock
From: Jeremy Spewock 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 hand

[PATCH v1 3/4] dts: add dynamic queue test suite

2024-06-25 Thread jspewock
From: Jeremy Spewock This patch adds a new test suite that is designed to test the stopping and modification of port queues at runtime. Specifically, there are test cases that display the ports ability to stop some queues but still send and receive traffic on others, as well as the ability to con

<    1   2   3   4   >