Prove that reap is done correctly on port stop
Make sure that PMD is able to free all remaining mbufs connected with any of descriptors pending on port stop
The test is to verify that PMD is able to free mbufs involved in transmission in case if port stop occurs
Obtain the source Ethernet address
Adjust the traffic template
Initialize the Ethernet device to get its capabilities
Enable Tx multi-segment offload if supported
Configure the Ethernet device and setup its Rx queues
Setup the Ethernet device Tx queues
Start the Ethernet device and wait for link up
Set up a mempool (or multiple mempool instances)
Ensure that interface is UP on Tester side
Generate packets and send them in bursts
Stop the Ethernet device
Make sure that all the objects within the mempool are free
Parameters:
template |
Traffic template |
multi_mempool |
If |
update_refcnt |
Pktmbuf reference counter toggle used to activate reap operation check with respect to packets which shall not be released upon a Tx burst or port stop |
ring_size_multiplier |
An integer multiplier of Tx ring size used to compute the number of packets |