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
Prepare
TEST_ETHDEV_INITIALIZED
stateEnable Tx multi-segment offload if supported
Prepare
TEST_ETHDEV_RX_SETUP_DONE
statePrepare
TEST_ETHDEV_TX_SETUP_DONE
statePrepare
TEST_ETHDEV_STARTED
stateSet up a mempool (or multiple mempool instances)
Ensure that interface is UP on Tester side
Generate packets and send them in bursts
Prepare
TEST_ETHDEV_STOPPED
stateMake 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 |