Update the Redirection Table of RSS testΒΆ

Update the Redirection Table of RSS

Make sure that it is possible to update the RSS RETA. Besides, check that after the port restarting, the information about RSS RETA doesn't change.

  1. Initialise the port in order to obtain RSS capabilities

  2. Check if required number of Rx queues is supported

  3. Setup RX configuration to work in RSS mode

  4. Prepare desired RSS hash configuration

  5. Start the Ethernet device

  6. Generate a new RETA randomly

  7. Query the RETA and check that the new RETA was successfully updated. Skip this step if RETA query operation is not supported

  8. Prepare a packet by tmpl to check the RETA updating by sending the packet

  9. Establish effective RSS hash configuration

  10. Calculate the packet hash using the Toeplitz function

  11. Determine the queue index by means of the hash

  12. Ensure that interface is UP on Tester side

  13. Transmit the packet from tst_if

  14. Try to receive the packet on expected_queue Make sure that the packet received matches the packet sent

  15. Restart the port uit_port

  16. Get the current configuration of RSS RETA on port iut_port. Check that retrieved information matches information from reta_conf Skip this step if RETA query operation is not supported

Parameters:

tmpl

The template of packet

nb_rx_queues

The number of RX queues