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.
Initialise the port in order to obtain RSS capabilities
Check if required number of Rx queues is supported
Setup RX configuration to work in RSS mode
Prepare desired RSS hash configuration
Start the Ethernet device
Generate a new RETA randomly
Query the RETA and check that the new RETA was successfully updated. Skip this step if RETA query operation is not supported
Prepare a packet by tmpl to check the RETA updating by sending the packet
Establish effective RSS hash configuration
Calculate the packet hash using the Toeplitz function
Determine the queue index by means of the hash
Ensure that interface is UP on Tester side
Transmit the packet from tst_if
Try to receive the packet on expected_queue Make sure that the packet received matches the packet sent
Restart the port uit_port
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 |