Get RSS hash info test
Test checks that ethdev writes right rss hash info to the packet
Prepare ethdev_state Ethernet device state for test using nb_rx_queues queues for set up a receive queue
Initialize the Ethernet device to get its capabilities
Check maximum number of Rx queues
Prepare desired RSS hash configuration
Configure, setup Rx/Tx queues, start the Ethernet device and wait for link up
Establish effective RSS hash configuration
Ensure that interface is UP on Tester side
Transmit and sniff one packet from tst_if to the iut_port
Receive packets on port iut_port
Check that the recieved packet matches the sent
Given the traffic template, anticipate RSS hash value
Check that the packet has RSS offload flag set
If
(ol_flags & (1UL << TARPC_RTE_MBUF_F_RX_RSS_HASH)) != 0:Validate RSS hash value available from the mbuf
Roman Zhukov Roman.Zhukov@oktetlabs.ru
Parameters:
nb_rx_queues |
The number of Rx queues |
tmpl |
Traffic template |
enable_offload |
Whether to enable RSS hash offload |