Read xstats in different device statesΒΆ

Examine xstats values in different device state

The test sets device to the given state and reads per-queue packets xstat. If the state is STARTED, the test starts receiving/sending traffic and examine how corresponding xstats change.

  1. Prepare IUT ethdev port iut_port in requested state

  2. Obtain number of all xstats and their names

  3. Check consistency of xstats number and names reporting in stopped state

  4. Looking for xstat ID

  5. Check initial value of xstat

  6. Ensure that interface is UP on Tester side

  7. See if sending packet burst changes the xstat

  8. See if receiving packet burst changes the xstat

  9. Check xstat value is not changed in stopped state

Ivan Ilchenko Ivan.Ilchenko@oktetlabs.ru

Parameters:

ethdev_state

The state of Ethernet device

payload_len

Payload length

template

Traffic template

traffic_direction_rx

Traffic direction