port_control Test Suite
Port Control Testing Suite.
This test suite serves to show that ports within testpmd support basic configuration functions. Things such as starting a port, stopping a port, and closing a port should all be supported by the device. Additionally, after each of these configuration steps (outside of closing the port) it should still be possible to start the port again and verify that the port is able to forward a large amount of packets (100 are sent in the test cases).
- class TestPortControl
Bases:
TestSuiteDPDK Port Control Testing Suite.
- start_ports() None
Start all ports and send a small number of packets.
- Steps:
Start all ports
Start forwarding in MAC mode
Send 100 generic packets to be captured by the SUT
- Verify:
Packets sent are sniffed on the TG receive port.
- stop_ports() None
Stop all ports, then start all ports, amd then send a small number of packets.
- Steps:
Stop all ports
Start all ports
Start forwarding in MAC mode
Send 100 generic packets to be captured by the SUT
- Verify:
Stopping the testpmd ports brings down their links
Packets sent are sniffed on the TG receive port.
- close_ports() None
Close all the ports via testpmd.
- Steps:
Close all the testpmd ports
- Verify:
Testpmd no longer reports having any ports
- required_capabilities: ClassVar[set[Capability]] = {28}
The capabilities the test case or suite requires in order to be executed.