.. index:: pair: group; Reset NIC when data flows .. _doxid-group__ethtool-reset__under__traffic: Reset NIC when data flows ========================= .. toctree:: :hidden: Check that NIC can be reset when data is transmitted over it and that data transmission resumes after NIC is reset. Scenarios: X3-ET021. #. If IPv6 is checked, enable **keep_addr_on_down** setting on the IUT interface to avoid network address disappearance when interface is reset. #. Create a pair of connected UDP sockets on IUT and Tester. #. Fork new RPC servers on IUT and Tester for sending and receiving data. #. Start sending UDP packets from IUT with help of **rpc_pattern_sender()** and receiving them on Tester with help of **rpc_drain_fd()**. #. Start sending UDP packets from Tester with help of **rpc_pattern_sender()** and receiving them on IUT with help of **rpc_drain_fd()**. #. Wait for a while. #. Call **ioctl** (``SIOCETHTOOL`` / ``ETHTOOL_RESET``) with reset flags set according to **flags** on the IUT interface. #. Wait until **rpc_pattern_sender()** on IUT and **rpc_drain_fd()** on Tester terminate successfully. #. Wait until **rpc_pattern_sender()** on Tester and **rpc_drain_fd()** on IUT terminate successfully. #. Check that data can be sent and received in both directions over the pair of UDP sockets. Dmitry Izbitsky `Dmitry.Izbitsky@oktetlabs.ru `__ .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - env - Testing environment: * :ref:`env.peer2peer ` * :ref:`env.peer2peer_ipv6 ` * - flags - Ethtool reset flags to check.