Test of Tx statistics
Check the correctness of Tx statistics
Initialize EAL, preparing of Rx/Tx setup done Ethernet device state
Prepare mbufs to be sent and pattern to match it by tmpl
Adjust MTU on both ends
Identify destination address: unicast, broadcast, multicast
Calculate packet length and number of bytes to transmit
Although valid figures are expected to become available instantly upon the port start, in rare cases a Tx pause frame may be generated and counted once within a second thus not being considered on the step where the initial figures are collected but being spotted among the final readings; to cope with the issue, wait for a one second
Get initial Tx statistics
Create Ethernet-based CSAP which starts to listen to network immediately
Ensure that interface is UP on Tester side
Validate and send the mbufs to iut_port Make sure that all are sent
Receive packet on tst_if Check that the received packets matches the sent one from iut_port
Check that no extra packets are received on Tester
Check that number of received packets equal to sent
Wait statistics update
Check that general Tx statistics are correct
Get extended Tx statistics
Check that extended Tx statistics are correct
Parameters:
tmpl |
Traffic template |
nb_pkts |
The number of packets |
payload_len |
Payload length |