Test of statistics reset

Check the correctness of statistics reset

  1. Initialize EAL

  2. Start the Ethernet device

  3. Prepare tmpl for test

  4. Change tst_if MTU and iut_port MTU to be able to transmit or receive bigger frames if required

  5. 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

  6. Ensure that interface is UP on Tester side

  7. Transmit and sniff nb_pkts packets from tst_if

  8. Receive packets on iut_port and check that they match the sent ones

  9. Wait statistics update

  10. Check that general statistics are correct

  11. Check that extended statistics are correct

  12. Reset general stats statistics

  13. Check that general statistics are correct

  14. Reset extended stats statistics

  15. Check that extended statistics are correct

Parameters:

tmpl

Traffic template

nb_pkts

The number of packets

payload_len

Payload length