Test of Rx statistics
Check the correctness of Rx statistics
Initialize EAL
Start the Ethernet device
Prepare tmpl for test
Change tst_if MTU and iut_port MTU to be able to transmit or receive bigger frames if required
Identify destination address: unicast, broadcast, multicast
Enable all-multicast mode if it is multicast destination address
If running in "speed-up" mode, await stats reappearance holding numbers valid for the previous (test) iteration in order to pick those numbers (if any) as initial ones (instead of getting zeroes) to calculate the difference
Get initial Rx statistics
Ensure that interface is UP on Tester side
Transmit and sniff nb_pkts packets from tst_if
Receive packets on iut_port and check that they match the sent ones
Wait statistics update
Check that general Rx statistics are correct
Get extended Rx statistics
Check that extended Rx statistics are correct
Parameters:
tmpl |
Traffic template |
nb_pkts |
The number of packets |
payload_len |
Payload length |