Unloading driver when data flows

Check that unloading network driver works fine when data is received and transmitted over an interface.

Scenarios: X3-SYS09, X3-STR13.

  1. Create conns_num pairs of connected UDP sockets on IUT and Tester. Fork additional RPC servers to send data simultaneously in both directions over them.

  2. Save configuration backup.

  3. Start sending and receiving data simultaneously in both directions over each connected socket pair. This should continue until send_time expires.

  4. If unload_once is TRUE, do the following steps once. Otherwise do them until send_time expires.

    • Unload the tested driver module.

    • Wait for a while.

    • Reload the tested driver module.

    • Restore configuration from the backup so that addresses assigned to the IUT interface are restored.

    • Wait for a while.

  5. Wait until sending and receiving data over sockets terminates, check that no unexpected errors occurred.

  6. Check that data can be sent from IUT to Tester and vice versa and received by peer.

Dmitry Izbitsky Dmitry.Izbitsky@oktetlabs.ru

Parameters:

env

Testing environment:

send_time

How long to send/receive data, in seconds.

unload_once

If TRUE, unload and reload the driver once, if FALSE - do it many times in a loop until send_time expires.

conns_num

How many connections should send and receive data.