Get RSS hash info testΒΆ

Test checks that ethdev writes right rss hash info to the packet

  1. Prepare ethdev_state Ethernet device state for test using nb_rx_queues queues for set up a receive queue

  2. Prepare TEST_ETHDEV_INITIALIZED state

  3. Check maximum number of Rx queues

  4. Prepare desired RSS hash configuration

  5. Prepare TEST_ETHDEV_STARTED state

  6. Establish effective RSS hash configuration

  7. Ensure that interface is UP on Tester side

  8. Transmit and sniff one packet from tst_if to the iut_port

  9. Receive packets on port iut_port

  10. Check that the recieved packet matches the sent

  11. Given the traffic template, anticipate RSS hash value

  12. Check that the packet has RSS offload flag set

  13. Validate RSS hash value available from the mbuf

Parameters:

enable_offload

Toggle for RSS hash offload

nb_rx_queues

The number of RX queues