Check Tx descriptor status correctness
Prove that Tx descriptor status callback readings are consistent
The test is to confirm that Tx descriptor status callback provides accurate readings with respect to certain descriptors in the Tx ring under different circumstances (descriptors added to the Tx queue, descriptors acknowledged by the HW as done) and in case of reserved entries
Prepare
TEST_ETHDEV_RX_SETUP_DONE
stateSetup the second Tx queue with default settings. Do it before the first Tx queue setup to be able to start the device right after the first Tx queue setup to find the highest free threshold possible
Setup the first Tx queue with the highest free threshold possible
Prepare
TEST_ETHDEV_STARTED
stateCheck that the first descriptor is unused
Check that the last usable descriptor is unused
Verify reserved descriptors (if any)
Check that non-existing descriptor status retrieval is rejected
Prepare sufficient mempool
Cook traffic template
Validate and add the packets to the Tx queue on IUT
Check that the first descriptor is either FULL or DONE
If the first descriptor isn't DONE, delay and check if it becomes DONE
Parameters:
template |
Traffic template |