Check extended statistics retrieval by IDsΒΆ

Verify that xstat names and values could be retrieved by IDs

The test makes sure that extended statistics retrieval by ID is correct

  1. Prepare TEST_ETHDEV_STARTED state

  2. Cook traffic template

  3. Ensure that interface is UP on Tester side

  4. Sent a couple of packets to IUT in order to guarantee at least a handful of non-zero xstat figures

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

  6. Obtain trustworthy xstats for comparison by means of the old API

  7. Find non-zero xstats, remember their indices and IDs

  8. Check that correct number of xstat names could be obtained if neither IDs are specified nor output buffer is provided

  9. Check that the same list of xstat names could be retrieved if no exact IDs are specified

  10. Check that xstat names queried by IDs of non-zero xstats are the same as the corresponding names from the trustworthy list

  11. Check that correct number of xstat values could be obtained if neither IDs are specified nor output buffer is provided

  12. Check that the same list of xstat values could be retrieved if no exact IDs are specified

  13. Check that xstat values queried by IDs of non-zero xstats are the same as the corresponding values from the trustworthy list

Parameters:

template

Traffic template