Reset NIC when data flowsΒΆ

Check that NIC can be reset when data is transmitted over it and that data transmission resumes after NIC is reset.

Scenarios: X3-ET021.

  1. If IPv6 is checked, enable keep_addr_on_down setting on the IUT interface to avoid network address disappearance when interface is reset.

  2. Create a pair of connected UDP sockets on IUT and Tester.

  3. Fork new RPC servers on IUT and Tester for sending and receiving data.

  4. Start sending UDP packets from IUT with help of rpc_pattern_sender() and receiving them on Tester with help of rpc_drain_fd().

  5. Start sending UDP packets from Tester with help of rpc_pattern_sender() and receiving them on IUT with help of rpc_drain_fd().

  6. Wait for a while.

  7. Call ioctl (SIOCETHTOOL / ETHTOOL_RESET) with reset flags set according to flags on the IUT interface.

  8. Wait until rpc_pattern_sender() on IUT and rpc_drain_fd() on Tester terminate successfully.

  9. Wait until rpc_pattern_sender() on Tester and rpc_drain_fd() on IUT terminate successfully.

  10. Check that data can be sent and received in both directions over the pair of UDP sockets.

Dmitry Izbitsky Dmitry.Izbitsky@oktetlabs.ru

Parameters:

env

Testing environment:

flags

Ethtool reset flags to check.