Deferred start TX queue test
Deferred start TX queue and checking that it works properly
Make sure that if we use deferred start on randomly chosen queue, then this queue actually will not receive packets until we do it manually
Check maximum number of Tx queues
Prepare n_txq TX queues and set deffered flag randomly
Probe the feature support on queue number 0
Rollback to
TEST_ETHDEV_CONFIGURED
stateStart the Ethernet device
Ensure that interface is UP on Tester side
Retrieve information about deferred_queue TX queue and make sure that the tx_deferred_start flag is set Ignore this check if tx_queue_info_get function is not supported
Prepare mbuf to be sent and pattern to match it by tmpl
TST: start listening to network
Validate and try to transmit the packet from iut_port from deferred_queue TX queue
Check that iut_port port hasn't transmitted any packets
TST: check that no packets arrived
Start TX queue
TST: continue listening to network
Validate and transmit the packet from deferred_queue Tx queue on iut_port
Receive packet on iut_port Check that the port has received only one packet, and this packet match the packet sent one from iut_port
Check that no extra packets are received on Tester
Stop deferred_queue TX queue
Retrieve information about deferred_queue TX queue and make sure that the tx_deferred_start flag is set after stopping of TX queue Ignore this check if tx_queue_info_get function is not supported
Parameters:
tmpl |
Traffic template |
n_rxq |
The number of TX queues |