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.
Prepare IUT ethdev port iut_port in requested state
Obtain number of all xstats and their names
Check consistency of xstats number and names reporting in stopped state
Looking for xstat ID
Check initial value of xstat
Ensure that interface is UP on Tester side
See if sending packet burst changes the xstat
See if receiving packet burst changes the xstat
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 |