Test RSS viability

Test RSS viability

Make sure that if RSS is enabled, sent packets are received by the corresponding queue

  1. Prepare ethernet device state for test

  2. Initialise the port in order to obtain RSS capabilities

  3. Enable RSS_HASH offload if it is supported

  4. Check maximum number of Rx queues

  5. Request appropriate RSS configuration that will be applied on device configure stage

  6. Start the Ethernet device

  7. Prepare a packet by tmpl

  8. Get RSS Redirection Table. If the corresponding RPC is not supported, use default Redirection Table

  9. Get RSS hash configuration. If the corresponding RPC is not supported, use previously requested configuration

  10. Calculate packet hash, using Toeplitz function and current hash key

  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. Check RSS hash value if it is available

  16. Check other Rx queues to collect diagnostics

Parameters:

tmpl

The template of packet

nb_rx_queues

The number of RX queues