Getting interface statistics with ethtool

Check that ethtool shows interface statistics.

Scenarios: X3-ET003.

  1. Run ' ethtool -S iut_if' on IUT. Check that it terminated with zero exit code and did not print anything to stderr.

  2. Save current values of Tx and Rx bytes counters from ethtool output.

  3. Create a pair of connected sockets of type sock_type on IUT and Tester, send some data in both directions between them, receive and check it.

  4. Wait for a while to let statistics counters update.

  5. Again run ' ethtool -S iut_if' on IUT. Check that it terminated with zero exit code and did not print anything to stderr.

  6. Obtain new values of Tx and Rx bytes counters from ethtool output, check that they increased.

Dmitry Izbitsky Dmitry.Izbitsky@oktetlabs.ru

Parameters:

env

Testing environment:

sock_type

Socket type:

  • SOCK_STREAM

  • SOCK_DGRAM